[opensuse-buildservice] Building kernel on OBS
Hi, I created packages from stock SLES11 src.rpm kernel packages but they won't build out of the box. kernel-source: Builds fine kernel-syms: Fails with ------- + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/home:ciriarte:ha/SLE_11_SP1/b337429349d28af850964c43249cf831-kernel-syms' /usr/src/packages/SOURCES/kernel-syms.spec error: Unable to open /usr/src/packages/SOURCES/kernel-spec-macros: No such file or directory error: Name field must be present in package: (main package) error: Version field must be present in package: (main package) error: Release field must be present in package: (main package) error: Summary field must be present in package: (main package) error: Group field must be present in package: (main package) error: License field must be present in package: (main package) ------- kernel-xen: Fails with ------- + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/home:ciriarte:ha/SLE_11_SP1/8f408e830bec276a845d7d3eb47c8206-kernel-xen' /usr/src/packages/SOURCES/kernel-xen.spec chmod: cannot access `/usr/src/packages/SOURCES/symsets.pl': No such file or directory tar: /usr/src/packages/SOURCES/config.tar.bz2: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: config/i386/xen: Not found in archive tar: Error exit delayed from previous errors error: File /usr/src/packages/SOURCES/linux-2.6.32.tar.bz2: No such file or directory ------- kernel-default: Fails with ---- + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/home:ciriarte:ha/SLE_11_SP1/b7f8b86cc6fd54f2f32c59fc664a0c43-kernel-default' /usr/src/packages/SOURCES/kernel-default.spec chmod: cannot access `/usr/src/packages/SOURCES/symsets.pl': No such file or directory tar: /usr/src/packages/SOURCES/config.tar.bz2: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: config/i386/default: Not found in archive tar: Error exit delayed from previous errors error: File /usr/src/packages/SOURCES/linux-2.6.32.tar.bz2: No such file or directory ---- All the missing files seem to be included in kernel-source, tried to add it as a build requirement but build still fails. Is there any special requirement to build this packages? Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tue, Apr 26, 2011 at 4:03 PM, Ciro Iriarte <cyruspy@gmail.com> wrote:
Hi, I created packages from stock SLES11 src.rpm kernel packages but they won't build out of the box.
kernel-source: Builds fine
kernel-syms: Fails with
I'm not positive this will help, but when building on OBS itself, you have to create links as I understand it. When I do that I've never had any issues. My process is first to branch just the source package from whereever, then create the links via a simple script file. I have this script file I massage as needed:
cat link-kernel-projects #!/bin/sh
#original reference # osc linkpac openSUSE:11.3 kernel-source home:$login # for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do # osc linkpac -C copy home:$login kernel-source home:$login $p # done # Evergreen minimal version for p in kernel-{default,pae,xen}-devel; do osc linkpac -C copy openSUSE:Evergreen:11.1:kernel-2.6.32:Test kernel-source openSUSE:Evergreen:11.1:kernel-2.6.32:Test $p done exit #Evergreen full version for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do osc linkpac -C copy openSUSE:Evergreen:11.1:kernel-2.6.32:Test kernel-source openSUSE:Evergreen:11.1:kernel-2.6.32:Test $p done Greg -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
2011/4/26 Greg Freemyer <greg.freemyer@gmail.com>:
On Tue, Apr 26, 2011 at 4:03 PM, Ciro Iriarte <cyruspy@gmail.com> wrote:
Hi, I created packages from stock SLES11 src.rpm kernel packages but they won't build out of the box.
kernel-source: Builds fine
kernel-syms: Fails with
I'm not positive this will help, but when building on OBS itself, you have to create links as I understand it. When I do that I've never had any issues.
My process is first to branch just the source package from whereever, then create the links via a simple script file.
I have this script file I massage as needed:
cat link-kernel-projects #!/bin/sh
#original reference # osc linkpac openSUSE:11.3 kernel-source home:$login # for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do # osc linkpac -C copy home:$login kernel-source home:$login $p # done
# Evergreen minimal version for p in kernel-{default,pae,xen}-devel; do osc linkpac -C copy openSUSE:Evergreen:11.1:kernel-2.6.32:Test kernel-source openSUSE:Evergreen:11.1:kernel-2.6.32:Test $p done
exit
#Evergreen full version for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do osc linkpac -C copy openSUSE:Evergreen:11.1:kernel-2.6.32:Test kernel-source openSUSE:Evergreen:11.1:kernel-2.6.32:Test $p done
Greg
Thanks for the feedback, added a _link file for kernel-syms, kernel-default and kernel-xen pointing to kernel-source, now it builds fine! Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Ciro Iriarte
-
Greg Freemyer