I tried to follow this:
https://wiki.centos.org/HowTos/Laptops/Wireless/Broadcom , which 'does'
some similar steps as written in your wl-kmod.spec about patching, but I
couldn't patch this successfully:

wl-kmod-rhel7_1.patch -

Hunk 3 failed at line 2074. For what I can understand from your method, you
do;

 Perform "patching" edits to the src/wl/sys/wl_cfg80211_hybrid.c file.
#  Note: Using this method, as opposed to making a patch, allows
#   the nosrc.rpm to be compiled under various point release kernels.
#  Note: Use [ >][>=] where both >= & > are present
%if "%{kvl}" == "3.10.0"
%if %{kvr} >= 123
#  Apply to EL 7.0 point release and later
#   >  No changes currently needed for EL 7.0 point release
%endif
%if %{kvr} >= 229
#  Apply to EL 7.1 point release and later
%{__sed} -i 's/ >= KERNEL_VERSION(3, 11, 0)/ >= KERNEL_VERSION(3, 10, 0)/'
src/wl/sys/wl_cfg80211_hybrid.c
%{__sed} -i 's/ >= KERNEL_VERSION(3, 15, 0)/ >= KERNEL_VERSION(3, 10, 0)/'
src/wl/sys/wl_cfg80211_hybrid.c
%endif
%if %{kvr} >= 327
#  Apply to EL 7.2 point release and later
%{__sed} -i 's/ < KERNEL_VERSION(3, 18, 0)/ < KERNEL_VERSION(3, 9, 0)/'
src/wl/sys/wl_cfg80211_hybrid.c
%{__sed} -i 's/ >= KERNEL_VERSION(4, 0, 0)/ >= KERNEL_VERSION(3, 10, 0)/'
src/wl/sys/wl_cfg80211_hybrid.c
%endif
%else
echo "This specification file has been written for use with RHEL 7 kernels
only."
false
%endif

My guess is; 1) I'm too noob and I have failed like 10 times (which is very
plausible), or 2) for some reason something in this part fails... I'll try
again removing everything for being sure that I'm not failing in that.

2016-01-23 20:20 GMT-03:00 Diego Farias <dnfar...@uc.cl>:

> I keep doing it keeping .rpmacross in this way:
>
> %_topdir /home/dafh/rpmbuild
> %dist .el7.local
>
> I built and installed... but again;
>
> [root@localhost dafh]# modprobe wl
> insmod: ERROR: could not load module
> /lib/modules/3.10.0-327.4.4.el7.x86_64/kernel/lib/wl.ko: No such file or
> directory
> modprobe: ERROR: Error running install command for wl
> modprobe: ERROR: could not insert 'wl': Operation not permitted
>
> I only have these files named wl.ko:
>
> /usr/lib/modules/3.10.0-327.4.4.el7.x86_64/extra/wl/wl.ko
> /usr/lib/modules/3.10.0-327.el7.x86_64/weak-updates/wl/wl.ko
>
> I don't know what's going on..
>
> 2016-01-23 16:11 GMT-03:00 Diego Farias <dnfar...@uc.cl>:
>
>> I guess I've found something odd... when we do (1):
>>
>>    $ echo -e "%_topdir $(echo $HOME)/rpmbuild\n%dist .el$(lsb_release -s
>> -r|cut -d"." -f1).local" >> ~/.rpmmacros
>>
>> it means that in file .rpmmacros, these two lines should be there (..in
>> my case..):
>>
>> %_topdir /home/dafh/rpmbuild
>> %dist .el7.local
>>
>> but the echo '-e' option 'doesn't work fine' (and I'm curious if that
>> command line (1) should work as it is because in my case I paste the echo
>> $HOME or lsb_release -r|cut .d"." -f1 for getting that work out) and in
>> .rpmmacros I get:
>>
>> -e %_topdir /home/dafh/rpmbuild
>> %dist .el7.local
>>
>> What is the meaning of doing (1)? What is right here? I'm not going to
>> continue until I verify this!
>>
>> Thanks
>>
>> 2016-01-23 15:48 GMT-03:00 Diego Farias <dnfar...@uc.cl>:
>>
>>> Hi Steve, I'm doing what you proposed and I just want to say that at 4)
>>> Install (new) kernel, everything is fine;
>>>
>>> Installing :
>>> kernel-3.10.0-327.4.4.el7.x86_64                             1/1
>>> Error!  Build of psmouse.ko failed for: 3.10.0-327.4.4.el7.x86_64
>>> (x86_64)
>>> Consult the make.log in the build directory
>>> /var/lib/dkms/psmouse/alps-1.3/build/ for more information.
>>>   Verifying  :
>>> kernel-3.10.0-327.4.4.el7.x86_64                             1/1
>>>
>>> Installed:
>>>   kernel.x86_64 0:3.10.0-327.4.4.el7
>>>
>>> About that psmouse, now I know why I don't have touchpad? (I don't know
>>> who I supossed to report this). I'll continue with the list and comment the
>>> installation of kmod-wl after rebooting.
>>>
>>> 2016-01-18 20:51 GMT-03:00 Diego Farias <dnfar...@uc.cl>:
>>>
>>>> Yes, I made a mistake in the last message, but I'm sure I did it
>>>> alright (rpmbuild as non-root wl-kmod...rpm)
>>>> It says that was written the kmod-wl.rpm correctly at rpmbuild/RPMS/
>>>> and then rpm -Uvh kmod-wl.
>>>>
>>>> As a proof of that,
>>>>
>>>> rpm -q kmod-wl
>>>> kmod-wl-6_30_223_271-2.el7.local.x86_64
>>>>
>>>> I guess I'll remove the kernel and try again!
>>>>
>>>> Thanks Steve
>>>>
>>>> 2016-01-18 20:33 GMT-03:00 S.Tindall <s10...@elrepo.org>:
>>>>
>>>>> On Mon, 2016-01-18 at 20:09 -0300, Diego Farias wrote:
>>>>> > Probably I made a stupid mistake in while I was following the
>>>>> > instructions; I tried to build again the package but unsuccessfully:
>>>>> >
>>>>> > [dafh@dhcp121-83 ~]$ rpmbuild --rebuild --define 'packager dafh'
>>>>> > rpmbuild/SOURCES/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
>>>>> > Installing
>>>>> > rpmbuild/SOURCES/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
>>>>> > error:
>>>>> > rpmbuild/SOURCES/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
>>>>> > cannot be installed
>>>>>
>>>>> Slight error.
>>>>>
>>>>> Look at the wl-kmod wiki page at step "5" (simplified below):
>>>>>
>>>>>  http://elrepo.org/tiki/wl-kmod
>>>>>
>>>>>   $ rpmbuild --rebuild --define 'packager  <your-name>' \
>>>>>     /<path-to-nosrc.rpm>/wl-kmod*nosrc.rpm
>>>>>
>>>>> You should "rebuild" the wl-kmod*nosrc.rpm, not the source tarball.
>>>>>
>>>>> You placed the source tarball in ~/rpmbuild/SOURCES/ so that it was
>>>>> available for the srpm rebuild.
>>>>>
>>>>>
>>>>> > I'm going to try the kernel solution. By the way, how am I sure that
>>>>> I
>>>>> > removed kmod-wl?
>>>>>
>>>>> The rpm command will tell you:
>>>>>
>>>>>  $ rpm -q kmod-wl
>>>>>  package kmod-wl is not installed
>>>>>
>>>>> Steve
>>>>>
>>>>> _______________________________________________
>>>>> elrepo mailing list
>>>>> elrepo@lists.elrepo.org
>>>>> http://lists.elrepo.org/mailman/listinfo/elrepo
>>>>>
>>>>
>>>>
>>>
>>
>
_______________________________________________
elrepo mailing list
elrepo@lists.elrepo.org
http://lists.elrepo.org/mailman/listinfo/elrepo

Reply via email to