Autotools plugin should support installing via prefix instead of DESTDIR

Bug #1544629 reported by Kyle Fazzari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Status tracked in Trunk
1.x
Fix Released
Wishlist
Kyle Fazzari
Trunk
Fix Released
Wishlist
Kyle Fazzari

Bug Description

Currently the autotools plugin uses an empty prefix with configuring, and called `make install` with DESTDIR in order to place the files into the .snap. However, not every piece of software will work with this. Some (e.g. PHP7) only work if configured to install into the .snap via the prefix and then simply installed without DESTDIR. The autotools plugin should support this via a config option.

Kyle Fazzari (kyrofa)
description: updated
Revision history for this message
Alexander Sack (asac) wrote :

isnt --prefix something you can pass in configflags?

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Yes, but then it still installs with DESTDIR. This doesn't relate to the ability to pass the prefix though. Here's the current install process, with zero modifications:

./configure --prefix=
make
make install DESTDIR=<part install directory>

Using a config flag, the following should also be supported to accomplish the same thing, since some software requires it:

./configure --prefix=<part install directory>
make
make install

Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: New → Triaged
importance: Undecided → Wishlist
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: Triaged → In Progress
assignee: nobody → Kyle Fazzari (kyrofa)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.