makefile impact specfile?
hi i would like to know if the makefile can have an impact on the specfile? i create a specfile step by step BuildRoot: %{_tmppath}/%{name}-%{version} %description spca5xx video for linux (v4l) driver, providing support for webcams and digital cameras based on the spca5xx range of chips manufactured by SunPlus Sonix Z-star Vimicro Conexant Etoms Transvision Mars-Semi Pixart. %prep %setup %build make build --rpms /opt/dvd_suse return /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.56470 + umask 022 + cd /usr/src/packages/BUILD + /bin/rm -rf /var/tmp/spca5xx-20060501 ++ dirname /var/tmp/spca5xx-20060501 + /bin/mkdir -p /var/tmp + /bin/mkdir /var/tmp/spca5xx-20060501 + cd spca5xx-20060501 + make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/packages/BUILD/spca5xx-20060501 CC=cc modules make: *** /lib/modules/2.6.16.13-4-default/build: No such file or directory. Stop. make: *** [default] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.56470 (%build) not sure but with this message, the build don't seem to take the right folder.... thanks
On 2006-05-22 16:43:59 -0400, Marc Collin wrote:
+ make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/packages/BUILD/spca5xx-20060501 CC=cc modules make: *** /lib/modules/2.6.16.13-4-default/build: No such file or directory. Stop. make: *** [default] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.56470 (%build)
BuildRequires: kernel-source missing? darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Le Lundi 22 Mai 2006 16:50, Marcus Rueckert a écrit :
On 2006-05-22 16:43:59 -0400, Marc Collin wrote:
+ make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/packages/BUILD/spca5xx-20060501 CC=cc modules make: *** /lib/modules/2.6.16.13-4-default/build: No such file or directory. Stop. make: *** [default] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.56470 (%build)
BuildRequires: kernel-source missing?
darix
no i have it...... it's not easy to create a specfile...... i hope novell can put some very good example on the web soon... they miss to software under suse..... i know i can install with source..... but if could create rpm it's not the best idea if we need to redistribute it.....
Hi, On Monday, May 22, 2006 at 16:43:59, Marc Collin wrote:
i would like to know if the makefile can have an impact on the specfile?
i create a specfile step by step
[...]
make: *** /lib/modules/2.6.16.13-4-default/build: No such file or directory.
Please, whenever you ask question about RPM specfiles put them somewhere (pastebin.com) so people can actually understand what you are trying to do. Henne -- Henne Vogelsang, Core Services "Rules change. The Game remains the same." - Omar (The Wire)
Le Mardi 23 Mai 2006 04:11, Henne Vogelsang a écrit :
Hi,
On Monday, May 22, 2006 at 16:43:59, Marc Collin wrote:
i would like to know if the makefile can have an impact on the specfile?
i create a specfile step by step
[...]
make: *** /lib/modules/2.6.16.13-4-default/build: No such file or directory.
Please, whenever you ask question about RPM specfiles put them somewhere (pastebin.com) so people can actually understand what you are trying to do.
Henne
Name: spca5xx Summary: spca5xx video for linux (v4l) driver. Version: 20060501 Release: 1 License: GPL Group: System/Kernel Source: http://mxhaard.free.fr/spca50x/Download/spca5xx-20060501.tar.gz URL: http://mxhaard.free.fr/ Packager: Marc Collin <collinm@laboiteaprog.com> BuildRequires: kernel-source BuildRoot: %{_tmppath}/%{name}-%{version} %description spca5xx video for linux (v4l) driver, providing support for webcams and digital cameras based on the spca5xx range of chips manufactured by SunPlus Sonix Z-star Vimicro Conexant Etoms Transvision Mars-Semi Pixart. %prep %setup #%patch %build make i get: build --rpms /opt/dvd_suse + cd spca5xx-20060501 ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.76753 + umask 022 + cd /usr/src/packages/BUILD + /bin/rm -rf /var/tmp/spca5xx-20060501 ++ dirname /var/tmp/spca5xx-20060501 + /bin/mkdir -p /var/tmp + /bin/mkdir /var/tmp/spca5xx-20060501 + cd spca5xx-20060501 + make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/packages/BUILD/spca5xx-20060501 CC=cc modules make: *** /lib/modules/2.6.16.13-4-default/build: No such file or directory. Stop. make: *** [default] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.76753 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.76753 (%build) to install it it's easy..... make make install...... it's more difficult to do it with a spec file.....
On Tue, May 23, 2006 at 09:24:55PM -0400, Marc Collin wrote:
BuildRequires: kernel-source
[SNIP]
+ cd spca5xx-20060501 + make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/packages/BUILD/spca5xx-20060501 CC=cc modules make: *** /lib/modules/2.6.16.13-4-default/build: No such file or directory.
You also need a BuildRequires: on the kernel-syms package. I haven't been following the disucssion of what you're doing or why, but note that the resultant rpm will contain a module built for the specific kernel installed on the build host (in this case kernel-default), which may or may not be the same kernel that's installed on the host that the built rpm is installed on. -- Steve Beattie SUSE Labs, Novell Inc. <sbeattie@suse.de> http://NxNW.org/~steve/
participants (4)
-
Henne Vogelsang
-
Marc Collin
-
Marcus Rueckert
-
Steve Beattie