El 2014-01-23 13:56, Oscar C escribió:
El 2014-01-21 17:35, Matwey V. Kornilov escribió:
21.01.2014 19:05, Oscar C пишет:
El 2014-01-19 17:14, Matwey V. Kornilov escribió:
19.01.2014 20:08, Oscar C пишет:
Looking at this closer, the problem is that the release tag on
the .spec
file is changed automatically on every build by OBS. If
kernel-sun7i and
kernel-sources have different release number, it's impossible to
build a
module for the kernel.
But kernel-$flavor is just a link to kernel-sources. They can not
have different release tags.
Ehm, I'm must be doing something wrong because in my case, they
have
different release tags. These are the tests I've done so far:
- Create package kernel-source. Release tag is 1.1
- Branch kernel-sun7i from kernel-source. Release tag is 2.1
- Create package kernel-source. Release tag is 1.1
- Branch kernel-sun7i from kernel-source. Release tag is 2.1
- Commit some modifications to kernel-source. Release tag is 2.1.
As
soon as I commit the changes, the kernel-sun7i is rebuilt. Release
tag
is then 2.2.
- Create package kernel-source. Release tag is 1.1.
- Commit some modifications to kernel-source. Release tag is 2.1.
- Branch kernel-sun7i from kernel-source. Release tag is 3.1.
All these tests were build in the home:ocurero:arm project. What's
wrong?
Usual work-flow is to branch kernel-source and then link
kernel-$flavor to it. Look at
https://build.opensuse.org/project/show/home:matwey:beaglebone
You have to edit kernel-source package, while kernel-$flavor is just
a namekeeper.
Finally I got i working, yeah! Both kernel-source and kernel-sun7i
have the same release number. I think the poblem was that I branched
the kernel-sun7i before the first built of kernel-source ended ok.
Thanks! :)
While we are at it, I have another question for you. I see you have
built a module named v4l2loopback. I'm also trying to build a similar
module named "dvbloopback"
(http://software.opensuse.org/package/dvbloopback). To work ok, this
module needs a very small patch to dvb-core.ko. Do you know how to
patch a kernel module (dvb-core in this case) from the spec file? I
tried to patch the kernel-source in OBS as if I were in a local build
but it fails:
[ 205s] Patch #0 (dvb-mutex.patch):
[ 205s] + /usr/bin/patch -p0 --fuzz=0
[ 205s] + /usr/bin/cat /home/abuild/rpmbuild/SOURCES/dvb-mutex.patch
[ 205s] Ignoring potentially dangerous file name
/usr/src/linux/drivers/media/dvb/dvb-core/dvbdev.c
[ 205s] can't find file to patch at input line 4
[ 205s] Perhaps you used the wrong -p or --strip option?
[ 205s] The text leading up to this was:
[ 205s] --------------------------
[ 205s] |diff -Nur
/usr/src/linux/drivers/media/dvb/dvb-core/dvbdev.c
/usr/src/linux/drivers/media/dvb/dvb-core/dvbdev.c
[ 205s] |--- /usr/src/linux/drivers/media/dvb/dvb-core/dvbdev.c
[ 205s] |+++ /usr/src/linux/drivers/media/dvb/dvb-core/dvbdev.c
Thanks!
Never mind, I got it working. Hurray!
--
Cheers
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]