Menu

#10 Unable to install with `make DESTDIR=... install`

None
closed-fixed
nobody
None
5
2018-02-19
2017-12-27
beachcoder
No

I wanted to create a package for X-CD-Roast 1.18 on the Arch Linux User Repository. This requires that the package is compiled into an installable package for the pacman package manager. Unfortunatelly, it doesn't work, althought it is not a problem to build and run the software as usual.

The steps required to reproduce the problem are the following, after downloading a fresh source tarball and extracting it:

cd xcdroast-1.18
./configure --prefix=/usr
make

Until here, all is fine.
What makepkg, the Arch Linux package compiler, now needs to do is this:

make DESTDIR=/tmp/test install

and this fails, because the Makefile in src wants to mkdir a path "/usr/etc", which is not possible at this point.

It works, when I delete the targets "install-data-local" and "install-data-hook" from Makefile.am, and reconfigure all tools. May you please check out if these targets are really required or modify them to fit the above build steps adequately?

Attached to this issue you find the Makefile.am I modified, which works.

1 Attachments

Discussion

  • Thomas Niederreiter

    Ok, my fault. I did not think on using DESTDIR.

    I am appending a patch for the src/Makefile.am file, which should fix the issue.
    Afterwards to you have to run "aclocal" and "automake" to regenerate the Makefiles.

    I would also recommend to build a package with:
    ./configure --prefix=/usr --sysconfdir=/etc

    Thanks for the hint!

     

    Last edit: Thomas Niederreiter 2017-12-27
  • Thomas Niederreiter

    • status: open --> pending
    • Group: -->
     
  • Thomas Niederreiter

    • status: pending --> closed-fixed
     
  • Thomas Niederreiter

    Fixed with a patch available on www.xcdroast.org

     

Log in to post a comment.

MongoDB Logo MongoDB