Skip to content

atop: rebuild failed due to systemdinstall using chown root #1211

Closed
wwwutz opened this issue Aug 23, 2019 · 1 comment
Closed

atop: rebuild failed due to systemdinstall using chown root #1211

wwwutz opened this issue Aug 23, 2019 · 1 comment

Comments

@wwwutz
Copy link
Collaborator

wwwutz commented Aug 23, 2019

atop does not build non-root.

[BEE] make systemdinstall DESTDIR=/scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image
if [ ! -d /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/var/log/atop ];                 \
        then    mkdir -p /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/var/log/atop; fi
if [ ! -d /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/bin ];              \
        then    mkdir -p /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/bin; fi
if [ ! -d /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/sbin ];             \
        then mkdir -p /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/sbin; fi
if [ ! -d /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/share/atop ];               \
        then    mkdir -p /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/share/atop; fi       
if [ ! -d /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/share/man/man1 ];           \
        then    mkdir -p /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/share/man/man1;      fi
if [ ! -d /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/share/man/man5 ];           \
        then    mkdir -p /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/share/man/man5;      fi
if [ ! -d /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/share/man/man8 ];           \
        then    mkdir -p /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/share/man/man8;      fi
if [ ! -d /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/etc/cron.d ];           \
        then    mkdir -p /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/etc/cron.d;      fi
if [ ! -d /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/etc/logrotate.d ];              \
        then    mkdir -p /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/etc/logrotate.d; fi
#
cp atop                 /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/bin/atop
chown root              /scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/bin/atop
chown: changing ownership of '/scratch/local2/beehive/atop-2.4.0-0.x86_64/buildroot/atop/atop-2.4.0-0/image/usr/bin/atop': Operation not permitted
make: *** [Makefile:138: genericinstall] Error 1

reference #1037

atop pull 83734c8

see /src/mariux/beehive/fail/atop-2.4.0-0.x86_64.stdout

@wwwutz
Copy link
Collaborator Author

wwwutz commented Sep 19, 2019

fixed by #1267

@wwwutz wwwutz closed this as completed Sep 19, 2019
Sign in to join this conversation on GitHub.
Projects
None yet
Development

No branches or pull requests

1 participant