[opensuse-packaging] make install fails with 'cannot create regular file `/sbin/lilo': Permission denied
I'm trying to update lilo to version 23.2, but I keep getting this error: cp lilo $DESTDIR/sbin/lilo cp: cannot create regular file `/sbin/lilo': Permission denied make[1]: *** [install] Error 1 make[1]: Leaving directory `/usr/src/packages/BUILD/lilo-23.2/lilo-23.2/src' make: *** [install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.MMYvgO (%install) What's going wrong here? -- Per Jessen, Zürich (16.1°C) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, 2011-09-23 at 13:25 +0200, Per Jessen wrote:
I'm trying to update lilo to version 23.2, but I keep getting this error:
cp lilo $DESTDIR/sbin/lilo cp: cannot create regular file `/sbin/lilo': Permission denied make[1]: *** [install] Error 1 make[1]: Leaving directory `/usr/src/packages/BUILD/lilo-23.2/lilo-23.2/src' make: *** [install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.MMYvgO (%install)
DESTDIR is not specified in the .spec file. Is this a cp command directly in the .spec file? Then you should use %buildroot instead of DESTDIR Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Dimstar / Dominique Leuenberger wrote:
On Fri, 2011-09-23 at 13:25 +0200, Per Jessen wrote:
I'm trying to update lilo to version 23.2, but I keep getting this error:
cp lilo $DESTDIR/sbin/lilo cp: cannot create regular file `/sbin/lilo': Permission denied make[1]: *** [install] Error 1 make[1]: Leaving directory `/usr/src/packages/BUILD/lilo-23.2/lilo-23.2/src' make: *** [install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.MMYvgO (%install)
DESTDIR is not specified in the .spec file.
Thanks, that makes sense. (looks like it was changed from ROOT to DESTDIR).
Is this a cp command directly in the .spec file? Then you should use %buildroot instead of DESTDIR
Mo, the cp happens as part of the install target in the Makefile. -- Per Jessen, Zürich (19.4°C) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Dimstar / Dominique Leuenberger
-
Per Jessen