make install fails (hardcoded directories)

Bug #625774 reported by Grégoire Sutre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

Due to some hardcoded directories in Makefile.am, attempting to install as non-root in e.g. /opt fails:

./configure --prefix=/opt --with-systraydir=/opt/xdg/autostart -with-icondir=/opt/share/applications --with-cupsfilterdir=/opt/cups/filter --with-cupsbackenddir=/opt/lib/cups/backend --with-mimedir=/opt/mime
make
make install
[...]
/usr/bin/install: cannot create regular file `/usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi': Permission denied
make[1]: *** [install-dist_halpreDATA] Error 1

The attached patch replaces the hardcoded directories in configure.in and Makefile.am. With this patch, installation as non-root in /opt (with only --prefix=/opt) completes without error:

patch < fix-paths.diff
AUTOMAKE='automake --foreign' autoreconf -fvi
./configure --prefix=/opt
make
make install

While the patch permits the installation, it does not fix the hardcoded directories in the source files, hence the installed utilities may not work properly.

Revision history for this message
Grégoire Sutre (gregoire-sutre) wrote :
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.