Mailinglist Archive: opensuse-buildservice (306 mails)
| < Previous | Next > |
[opensuse-buildservice] Permission denied for exec scripts in chroot enviroment.
- From: Jian Lee <lijian.gnu@xxxxxxxxx>
- Date: Wed, 27 Jan 2010 16:30:34 +0800
- Message-id: <201001271630.34441.lijian.gnu@xxxxxxxxx>
hi, everybody
I'm found that obs can not retain the files' permission in chroot build
enviroment.
In my local obs server, the build result of many packages have errors
like following:
----------------------------------------------------------
+ cp -pr examples/autofs examples/LDAP examples/libsmbclient
examples/misc examples/printer-accounting /var/tmp/samba-3.0.33-
root/usr/share/doc/samba-3.0.33
+ cp -pr examples/printing /var/tmp/samba-3.0.33-
root/usr/share/doc/samba-3.0.33
+ exit 0
error: Couldn't exec /usr/src/turbo/SOURCES/filter-requires-samba.sh:
Permission denied
getOutputFrom(): Broken pipe
==========================================================
because the file have not excute permission, the exec will "Permission
denied".
So I added "chmod a+x $BUILD_ROOT/$TOPDIR/SOURCES/*" before chroot in
/usr/lib/obs/server/build/build :
------------------------------------------------
1535 chmod 755 $BUILD_ROOT/.build.command
1536 # Jian Lee: add the exec premission to all files
1537 chmod a+x $BUILD_ROOT/$TOPDIR/SOURCES/*
1538 chroot $BUILD_ROOT su -c /.build.command - $BUILD_USER <
/dev/null && BUILD_SUCCEEDED=true
1539 fi
=========================================
Maybe next version can solve this problem.
Thanks, all
----
Jian Lee [ http://jianlee.ylinux.org ]
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
I'm found that obs can not retain the files' permission in chroot build
enviroment.
In my local obs server, the build result of many packages have errors
like following:
----------------------------------------------------------
+ cp -pr examples/autofs examples/LDAP examples/libsmbclient
examples/misc examples/printer-accounting /var/tmp/samba-3.0.33-
root/usr/share/doc/samba-3.0.33
+ cp -pr examples/printing /var/tmp/samba-3.0.33-
root/usr/share/doc/samba-3.0.33
+ exit 0
error: Couldn't exec /usr/src/turbo/SOURCES/filter-requires-samba.sh:
Permission denied
getOutputFrom(): Broken pipe
==========================================================
because the file have not excute permission, the exec will "Permission
denied".
So I added "chmod a+x $BUILD_ROOT/$TOPDIR/SOURCES/*" before chroot in
/usr/lib/obs/server/build/build :
------------------------------------------------
1535 chmod 755 $BUILD_ROOT/.build.command
1536 # Jian Lee: add the exec premission to all files
1537 chmod a+x $BUILD_ROOT/$TOPDIR/SOURCES/*
1538 chroot $BUILD_ROOT su -c /.build.command - $BUILD_USER <
/dev/null && BUILD_SUCCEEDED=true
1539 fi
=========================================
Maybe next version can solve this problem.
Thanks, all
----
Jian Lee [ http://jianlee.ylinux.org ]
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |