Le samedi 30 octobre 2004 à 23:40 -0400, Andrew a écrit :
Matias Féliciano wrote:
> Here is the problem :
>
[snip]
> Try to remove a kernel (2.6.9-1.643.mat.1)
> # rpm -e kernel-2.6.9-1.643.mat.1
> error: Failed dependencies:
> kernel = 2.6.9-1.643.mat.1 is needed by (installed)
kernel-module-unicorn-atm-0.8.7-mat.1_2.6.9_1.643.mat.1.i686
What if you do a
rpm -e kernel-2.6.9-1.643.mat.1 kernel-module-unicorn-atm-0.8.7-mat.1_2.6.9_1.643.mat.1
does it still complain?
No.
Seems You don't understand :-)
Sorry if this is cause by my poor English.
>
> # rpm -q --provides kernel-2.6.9-1.649
> kernel = 2.6.9 <===== Why ?
> kernel-drm = 4.3.0
> kernel = 2.6.9-1.649
>
> Can you please remove "Provides: kernel = %{version}" from the kernel
.spec file ?
> Should I file this in bugzilla ?
>
What happens when you remove it from the spec? The Provides: kernel = %{version}
occurs twice (once for up and once for %package smp) Do you want to have
the = %{version} taken off or just the whole Provides?
Can you post your spec for your atm module (or at least the requires and provides?)
See attachment.
Andrew
# base on alsa-drivers.spec of matthias (freshrpms)
# "uname -r" output of the kernel to build for, the running one
# if none was specified with "--define 'kernel <uname -r>'"
%{!?kernel: %{expand: %%define kernel %(uname -r)}}
%define kversion %(echo %{kernel} | sed -e s/smp// -)
%define krelver %(echo %{kversion} | tr -s '-' '_')
Summary: unicorn drivers
Name: unicorn
Version: 0.8.7
Release: mat.1
License: Proprietary
Group: System Environment/Base
Source0: A1012-A1006-A904-A888-0.8.7.tgz
Patch0: fix.patch
URL:
http://www.bewan.fr/
ExclusiveArch: i686
ExclusiveOS: Linux
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: kernel = %{kversion}
BuildRequires: gcc >= 3.4
BuildRequires: make
%description -n unicorn
Driver for the ST UNICORN PCI ADSL modem chip.
You may also recompile for a given kernel version and arch with :
--define "kernel <uname -r output>"
(for example "kernel 2.4.20-9")
%package -n kernel-module-unicorn-atm
Summary: unicorn atm driver
Group: System Environment/Base
Release: %{release}_%{krelver}
Requires: kernel = %{kversion}
Prereq: /sbin/depmod
%description -n kernel-module-unicorn-atm
Driver for the ST UNICORN PCI ADSL modem chip.
atm driver for pppoatm (unicorn_pci_atm.ko).
%package -n kernel-module-unicorn-eth
Summary: unicorn atm driver
Group: System Environment/Base
Release: %{release}_%{krelver}
Requires: kernel = %{kversion}
Prereq: /sbin/depmod
%description -n kernel-module-unicorn-eth
Driver for the ST UNICORN PCI ADSL modem chip.
eth driver for pppoeth (unicorn_pci_eth.ko).
%prep
%setup -n %{name}
%patch0 -p1 -b .fix
%build
cd libm
make
cd ../unicorn_pci
KERNEL_SOURCES=/lib/modules/%{kversion}/build make modules
%install
%{__rm} -r -f %{buildroot}
%{__install} -m 744 -D unicorn_pci/unicorn_pci_atm.ko
%{buildroot}/lib/modules/%{kversion}/kernel/extra/unicorn_pci_atm.ko
%{__install} -m 744 -D unicorn_pci/unicorn_pci_eth.ko
%{buildroot}/lib/modules/%{kversion}/kernel/extra/unicorn_pci_eth.ko
%post -n kernel-module-unicorn-atm
/sbin/depmod -a -F /boot/System.map-%{kernel} %{kernel} >/dev/null 2>&1 || :
%preun -n kernel-module-unicorn-eth
/sbin/depmod -a -F /boot/System.map-%{kernel} %{kernel} >/dev/null 2>&1 || :
%clean
%{__rm} -rf %{buildroot}
%files -n kernel-module-unicorn-atm
%defattr(-, root, root, 0755)
/lib/modules/%{kernel}/kernel/extra/unicorn_pci_atm.ko
%files -n kernel-module-unicorn-eth
%defattr(-, root, root, 0755)
/lib/modules/%{kernel}/kernel/extra/unicorn_pci_eth.ko
%changelog
* Sat Oct 30 2004 Féliciano Matias <feliciano.matias(a)free.fr> 0.8.7-1.mat.1
- initial package.