|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Quote:
I've built a few, but the first step is to see if someone else hasn't built it, so search here; http://software.opensuse.org/search? If you grab an existing kmp src rpm to look at and see where your going wrong. Not sure what desktop your using in Gnome you can right click and extract to see all the files. Also things are a little different in 11.2, so when you searching for compat-wireless, have a search for au0282 in Factory and grab the au0828-2-12.1.src.rpm one and look at the spec file. -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default up 14 days 18:49, 2 users, load average: 2.00, 2.05, 2.07 GPU GeForce 8600 GTS Silent - Driver Version: 190.18 |
|
|||
|
broumbroum23, where is your spec-file?
I built kmp package successfully on openSUSE 11.1 but it failed on Factory. |
|
||||
|
thank you malcolm, google did not found any rpm, or at least I was not able to catch it up.
So compat-wireless is already available in openSUSE Update... Kent I might try again if the error could be found. HTML Code:
# # norootforbuild
# Name: compat-wireless
# BuildRequires: %kernel_module_package_buildreqs
# License: GPL
# Group: System/Kernel
# Summary: Linux Wireless compatibility package
# Version: 2.6.30
# Release: 0
# Source0: %name-%version.tar.bz2
# BuildRoot: %{_tmppath}/%{name}-%{version}-build
# %kernel_module_package -x debug -x trace
# %description
# Compat-wireless was designed to allow you to install the latest
# bleeding edge Linux wireless drivers on older kernels. Sometimes you
# don't want to run bleeding edge wireless and but compat-wireless gives
# you no other option, that's where the compat-wireless stable snapshots
# come in.
#
# This package allows you install the 2.6.30 Linux wireless
# drivers on kernels >= 2.6.27.
#
# For more information please see:
#
# http://wireless.kernel.org/en/users/Download
# http://wireless.kernel.org/en/users/Download/stable
# %prep
# %setup
# set -- *
# mkdir source
# mv "$@" source/
# mkdir obj
# %build
# for flavor in %flavors_to_build; do
# rm -rf obj/$flavor
# cp -r source obj/$flavor
# make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor
# done
# %install
# export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
# export INSTALL_MOD_DIR=updates
# for flavor in %flavors_to_build; do
# make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
# done
# %changelog
Today I did manage to build my own java project for .deb within the OBS, how an amazing thing to dig... but really a terrific service from SUSE !! Thks EDIT : compat-wireless build was "expansion error - nothing provides %kernel_module_package_buildreqs" from opensuse 11.1 oss and failed for the mentioned reason with Factory. |
|
||||
|
from the drivers:wireless area I found the spec.
Added this to the line # BuildRequires: kernel-source kernel-syms module-init-tools %kernel_module_package_buildreqs |
|
|||
|
I use %kernel_module_package_buildreq (w/o s at the end).
My package is here. |
|
||||
|
Now, now... here's my definite line :
Code:
BuildRequires : %kernel_module_package_buildreqs # kernel-source kernel-syms module-init-tools and OSS runs without macro and uncommenting the next line : Code:
BuildRequires : # kernel_module_package_buildreqs kernel-source kernel-syms module-init-tools Code:
Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2 make: Leaving directory `/usr/src/linux-2.6.31-rc6-3-obj/i386/default' error: Bad exit status from /var/tmp/rpm-tmp.22550 (%build) |
|
||||
|
Quote:
But you haven't defined any %flavors_to_build?? Have a look at my spec file for an au0828 here; http://www.nopaste.com/p/aj1PG4kOG -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default up 20:49, 2 users, load average: 3.76, 3.00, 2.47 GPU GeForce 8600 GTS Silent - Driver Version: 190.18 |
|
||||
|
Then it looks like this :
https://build.opensuse.org/project/s...3Abroumbroum23 Code:
# norootforbuild
Name: compat-wireless
BuildRequires: %kernel_module_package_buildreqs
# kernel-source kernel-syms module-init-tools
License: GPL
Group: System/Kernel
Summary: Linux Wireless compatibility package
Version: 2.6.30
Release: 1
Source0: %name-%version.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kernel_module_package -x debug -x trace
%description
Compat-wireless was designed to allow you to install the latest
bleeding edge Linux wireless drivers on older kernels. Sometimes you
don't want to run bleeding edge wireless and but compat-wireless gives
you no other option, that's where the compat-wireless stable snapshots
come in.
This package allows you install the 2.6.30 Linux wireless
drivers on kernels >= 2.6.27.
For more information please see:
http://wireless.kernel.org/en/users/Download
http://wireless.kernel.org/en/users/Download/stable
%prep
%setup
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
# Set build to default kernel
%if 0%{?suse_version} == 1120
export flavors to build=desktop pae default
%else
export flavors to build=default pae
%endif
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r source obj/$flavor
make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor
done
%install
%if 0%{?suse_version} == 1120
export flavor=desktop pae default
%else
export flavor=default pae
%endif
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
done
%changelog
BTW Im wondering how to do the same with debian package, how to define and find the uname -r in the debian/control and debian/dsc file. |
|
||||
|
I missed the macro
Code:
%if 0%{?suse_version} == 1120
%suse_kernel_module_package -x desktop pae default
%else
%suse_kernel_module_package -x default pae
%endif
hope this helps. building's been scheduled... |
![]() |
|
| Bookmarks |
| Tags |
| build, kernel, modules, package, wireless |
| Thread Tools | |
| Display Modes | |
|
|