arpwatch 2.1a15: Run do_install under fakeroot because the Makefile
authorJamie Lenehan <lenehan@twibble.org>
Thu, 25 Jan 2007 06:17:54 +0000 (06:17 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Thu, 25 Jan 2007 06:17:54 +0000 (06:17 +0000)
attempts to set the ownership of the installed files (install
-o/-g):
| NOTE: make install DESTDIR=/home/lenehan/devel/oe/build/titan-glibc-25/tmp/work/arpwatch-2.1a15-r1/image
| /usr/bin/install -c -m 555 -o bin -g bin arpwatch /home/lenehan/devel/oe/build/titan-glibc-25/tmp/work/arpwatch-2.1a15-r1/image/usr/sbin
| /usr/bin/install: cannot change ownership of /home/lenehan/devel/oe/build/titan-glibc-25/tmp/work/arpwatch-2.1a15-r1/image/usr/sbin/arpwatch': Operation not permitted
| make: *** [install] Error 1
| FATAL: oe_runmake failed
This worked on my old build host running Fedora Core 4 because the -g
and -o options are ignored there when install is run by a normal
user. The above error is on a ubunutu 6.10 host which obviously
doesn't ignore those options.

packages/arpwatch/arpwatch_2.1a15.bb

index 74e667c..758c3c8 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www-nrg.ee.lbl.gov/"
 SECTION = "network"
 LICENSE = "BSD"
 RRECOMMENDS = "arpwatch-data"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.ee.lbl.gov/arpwatch-${PV}.tar.gz \
            file://05debian_fhs.patch;patch=1 \
@@ -21,7 +21,7 @@ PACKAGES =+ "arpwatch-data"
 
 FILES_arpwatch-data = "${datadir}/arpwatch/ethercodes.dat"
 
-do_install() {
+fakeroot do_install() {
         install -d ${D}${bindir} ${D}${sbindir} ${D}${mandir}/man8 \
                 ${D}${sysconfdir}/default \
                 ${D}${sysconfdir}/init.d \