make install fails (hardcoded directories)
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-
make
make install
[...]
/usr/bin/install: cannot create regular file `/usr/share/
make[1]: *** [install-
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.