[opensuse-packaging] y2pmbuild questions
I just set up y2pmsh to use y2pmbuild, and immideately ran into problems. It's probably me, but I don't really see the problem. The package I'm trying to build, builds great with both 'build' and 'rpmbuild', but with y2pmbuild I get this; + echo 'I call /usr/sbin/Check...' I call /usr/sbin/Check... + /usr/sbin/Check /etc/profile: line 236: /etc/nntpserver: Permission denied /usr/sbin/Check: line 4: /etc/sysconfig/security: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.64478 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.64478 (%install) And it exists.. Isn't it a bit strange that it works with 'build'? When the build root is set up, these are shown right before it starts the build itself: ldconfig ... compiler:x:1000:100::/home/compiler:/bin/bash adjusting permissions /etc/profile: line 236: /etc/nntpserver: Permission denied /etc/profile.d/lang.sh: line 33: /etc/sysconfig/language: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/windowmanager: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/suseconfig: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/mail: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/proxy: Permission denied drwxr-xr-x+ 8 compiler users 4096 Sep 28 17:03 /home/compiler /etc/profile: line 236: /etc/nntpserver: Permission denied /etc/profile.d/lang.sh: line 33: /etc/sysconfig/language: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/windowmanager: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/suseconfig: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/mail: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/proxy: Permission denied drwxr-xr-x+ 8 compiler users 4096 Sep 28 17:03 /home/compiler Memory limit set to 2707522KB sync ... Any ideas and/or hints, please? I can't find much documentation on this, so I can't say that I *know* my config is alright... -- Anders Norrbring Norrbring Consulting --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Anders Norrbring skrev:
I just set up y2pmsh to use y2pmbuild, and immideately ran into problems. It's probably me, but I don't really see the problem. [8<]
Another big confusion is the architecture builds.. I run natively on x86_64, and would very much like to be able to build for i586 hosts.. So, I tried this: beata:/usr/src/packages # export BUILD_DIST="10.1-i586" beata:/usr/src/packages # y2pmbuild --target=i586 And that results in this run: /usr/src/packages /usr/src/packages /usr/src/packages BuildRequires: krb5 sendmail sendmail-devel aaa_base not in BuildRequires, adding default packages Welcome to the YaST2 Package Manager! This tool is meant for debugging purpose only. root dir set to /iscsi/Archives/SuSE/build.root.10.1-i586 running from system no [...] Packages to install: 121 Packages to keep: 0 Packages to delete: 0 Download size: 121.6 MB Needed Space: 449.3 MB Installing from 'SUSE Linux 10.1', media nr. 1 fetching aaa_skel (18.1 kB) ................................................. ok installing [ 0%] aaa_skel-2006.3.29-5 (x86_64) ............................. ok fetching filesystem (46.2 kB) ............................................... ok installing [ 1%] filesystem-10.1-5 (x86_64) [..etc..] Why does it install a x86_64 environment and build the package for 64bit? I just don't get it. Anders. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Donnerstag, 28. September 2006 23:11 schrieb Anders Norrbring:
Another big confusion is the architecture builds.. I run natively on x86_64, and would very much like to be able to build for i586 hosts.. [...] Why does it install a x86_64 environment and build the package for 64bit? I just don't get it.
linux32 y2pmbuild Detlef --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Detlef Reichelt skrev:
Am Donnerstag, 28. September 2006 23:11 schrieb Anders Norrbring:
Another big confusion is the architecture builds.. I run natively on x86_64, and would very much like to be able to build for i586 hosts.. [...] Why does it install a x86_64 environment and build the package for 64bit? I just don't get it.
linux32 y2pmbuild
Aah.. :) I'll try that.. I thought it was a bit more like 'build' and did it more or less automatically. -- Anders Norrbring Norrbring Consulting
Anders Norrbring skrev:
ldconfig ... compiler:x:1000:100::/home/compiler:/bin/bash adjusting permissions /etc/profile: line 236: /etc/nntpserver: Permission denied /etc/profile.d/lang.sh: line 33: /etc/sysconfig/language: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/windowmanager: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/suseconfig: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/mail: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/proxy: Permission denied drwxr-xr-x+ 8 compiler users 4096 Sep 28 17:03 /home/compiler /etc/profile: line 236: /etc/nntpserver: Permission denied /etc/profile.d/lang.sh: line 33: /etc/sysconfig/language: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/windowmanager: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/suseconfig: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/mail: Permission denied /etc/profile.d/profile.sh: line 13: /etc/sysconfig/proxy: Permission denied drwxr-xr-x+ 8 compiler users 4096 Sep 28 17:03 /home/compiler Memory limit set to 2707522KB sync ...
Shouldn't the files in the build root's /etc/sysconfig be readable by everyone? If so, how do I change the y2pmbuild so it sets the o+r rights on those files when setting up the build root? -- Anders Norrbring Norrbring Consulting
On Friday 29 September 2006 13:54, Anders Norrbring wrote:
Anders Norrbring skrev: [...] Shouldn't the files in the build root's /etc/sysconfig be readable by everyone? If so, how do I change the y2pmbuild so it sets the o+r rights on those files when setting up the build root?
Do you use some restrictive umask maybe? cu Ludwig -- (o_ Ludwig Nussel //\ SUSE LINUX Products GmbH, Development V_/_ http://www.suse.de/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Ludwig Nussel skrev:
On Friday 29 September 2006 13:54, Anders Norrbring wrote:
Anders Norrbring skrev: [...] Shouldn't the files in the build root's /etc/sysconfig be readable by everyone? If so, how do I change the y2pmbuild so it sets the o+r rights on those files when setting up the build root?
Do you use some restrictive umask maybe?
Nope.. I run at defaults all over, so the umask is set to 0022. The only "not-so-standard" about it would be that the build root is located on a mounted iscsi volume, running XFS file system. Not that I think it'd matter? -- Anders Norrbring Norrbring Consulting
participants (3)
-
Anders Norrbring
-
Detlef Reichelt
-
Ludwig Nussel