[opensuse-packaging] script to .spec file eqivalent
Hello, Could the following be turned into a .spec file, if so, could you list the the equivilant of the following script to specfile please. The result would be 2 built rpms. Thanks Glenn # Begin majorv=34 cd /usr/src/ rm -rf linux-2.6.$majorv.$minorv bunzip2 linux-2.6.$majorv.tar.bz2 tar -xvf linux-2.6.$majorv.tar cp -v /boot/config-$(uname -r) /usr/src/linux-2.6.$majorv/.config bunzip2 reiser4-for-2.6.$majorv.patch.bz2 cd /usr/src/linux-2.6.$majorv patch -p1 --dry-run < ../reiser4-for-2.6.$majorv.patch patch -p1 < ../reiser4-for-2.6.$majorv.patch diff .config /usr/src/linux-2.6.$majorv/.config cp -v .config /usr/src/linux-2.6.$majorv/.config make menuconfig make rpm-pkg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, Jun 16, 2010 at 06:50:21AM +0000, doiggl@velocitynet.com.au wrote:
Hello, Could the following be turned into a .spec file, if so, could you list the the equivilant of the following script to specfile please. The result would be 2 built rpms. Thanks Glenn
# Begin majorv=34 cd /usr/src/
rm -rf linux-2.6.$majorv.$minorv bunzip2 linux-2.6.$majorv.tar.bz2 tar -xvf linux-2.6.$majorv.tar
cp -v /boot/config-$(uname -r) /usr/src/linux-2.6.$majorv/.config bunzip2 reiser4-for-2.6.$majorv.patch.bz2
cd /usr/src/linux-2.6.$majorv patch -p1 --dry-run < ../reiser4-for-2.6.$majorv.patch patch -p1 < ../reiser4-for-2.6.$majorv.patch
diff .config /usr/src/linux-2.6.$majorv/.config cp -v .config /usr/src/linux-2.6.$majorv/.config make menuconfig
make rpm-pkg
Do you just want to build a reiserfs filesystem into the kernel? Then you could build just a KMP... Or, branch the kernel-vanilla kernel, add the patch to patches.addon.tar.bz2, add it to "series.conf", checkin. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, 16 Jun 2010 09:13:16 +0200, Marcus Meissner
On Wed, Jun 16, 2010 at 06:50:21AM +0000, doiggl@velocitynet.com.au wrote:
Hello, Could the following be turned into a .spec file, if so, could you list the the equivilant of the following script to specfile please. The result would be 2 built rpms. Thanks Glenn
# Begin majorv=34 cd /usr/src/
rm -rf linux-2.6.$majorv.$minorv bunzip2 linux-2.6.$majorv.tar.bz2 tar -xvf linux-2.6.$majorv.tar
cp -v /boot/config-$(uname -r) /usr/src/linux-2.6.$majorv/.config bunzip2 reiser4-for-2.6.$majorv.patch.bz2
cd /usr/src/linux-2.6.$majorv patch -p1 --dry-run < ../reiser4-for-2.6.$majorv.patch patch -p1 < ../reiser4-for-2.6.$majorv.patch
diff .config /usr/src/linux-2.6.$majorv/.config cp -v .config /usr/src/linux-2.6.$majorv/.config make menuconfig
make rpm-pkg
Do you just want to build a reiserfs filesystem into the kernel? Then you could build just a KMP...
Or, branch the kernel-vanilla kernel, add the patch to patches.addon.tar.bz2, add it to "series.conf", checkin.
Ciao, Marcus
Some info In the past as noted I see this project over here [1] to build a rpm module for reiser4 2.6.31 fs which is older than 2.6.34. There is a reiser4 2.6.34 available now at [2] Is it possible to build a rpm module for reiser4 2.6.34 fs ? If so what bits could be used from [1] and [2] How can the rpm be built module for reiser4 2.6.34 ? Thanks Glenn [1] https://build.opensuse.org/package/files?package=reiser4-kmp&project=drivers%3Afilesystems [2] http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, 16 Jun 2010 09:13:16 +0200, Marcus Meissner
Do you just want to build a reiserfs filesystem into the kernel? Then you could build just a KMP...
Or, branch the kernel-vanilla kernel, add the patch to patches.addon.tar.bz2, add it to "series.conf", checkin.
Ciao, Marcus
I just wanted to build the reiser4 filesystem via the KMP. Is there spec file to do this , or have you got one I could use as a base and change the numbering from 2.6.31 to 2.6.34 to do the compile I note there is a reiser4 for a .31 based kernel over at [1] could that be used ? [1] https://build.opensuse.org/package/files?package=reiser4-kmp&project=drivers%3Afilesystems Thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, 16 Jun 2010 09:13:16 +0200, Marcus Meissner
Do you just want to build a reiserfs filesystem into the kernel? Then you could build just a KMP...
Or, branch the kernel-vanilla kernel, add the patch to patches.addon.tar.bz2, add it to "series.conf", checkin.
Ciao, Marcus
Is it possible to just build the rpm module for reiser4 for KMP using .spec file How is that done considering the file looks like one big patch to me # bzip2 -tv reiser4-for-2.6.34.patch.bz2 reiser4-for-2.6.34.patch.bz2: ok In the past I used a script [1] to do this but that did the whole lot. I wanted single installable module, thought that may be possible. Cheers Glenn [1] # Begin majorv=34 cd /usr/src/ rm -rf linux-2.6.$majorv.$minorv bunzip2 linux-2.6.$majorv.tar.bz2 tar -xvf linux-2.6.$majorv.tar cp -v /boot/config-$(uname -r) /usr/src/linux-2.6.$majorv/.config bunzip2 reiser4-for-2.6.$majorv.patch.bz2 cd /usr/src/linux-2.6.$majorv patch -p1 --dry-run < ../reiser4-for-2.6.$majorv.patch patch -p1 < ../reiser4-for-2.6.$majorv.patch diff .config /usr/src/linux-2.6.$majorv/.config cp -v .config /usr/src/linux-2.6.$majorv/.config make menuconfig make rpm-pkg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 30.6.2010 10:30, doiggl@velocitynet.com.au wrote:
Is it possible to just build the rpm module for reiser4 for KMP using .spec file How is that done considering the file looks like one big patch to me # bzip2 -tv reiser4-for-2.6.34.patch.bz2 reiser4-for-2.6.34.patch.bz2: ok
In the past I used a script [1] to do this but that did the whole lot. I wanted single installable module, thought that may be possible.
I had a quick look at http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6... and it adds a couple of EXPORT_SYMBOL() macros to fs/ and mm/, so you can't build it externally without rebuilding the kernel. Michal -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Looks like I'll discard plan A
Do you just want to build a reiserfs filesystem into the kernel? Then you could build just a KMP...
Looks like use Plan B..... - Or, branch the kernel-vanilla kernel, - add the patch to patches.addon.tar.bz2, - add it to "series.conf",checkin. 1. What steps are needed to branch the kernel-vanilla kernel to I presume a blank project. 2. To create patches.addon.tar.bz2 is this ok- # bunzip2 -v reiser4-for-2.6.34.patch.bz2 reiser4-for-2.6.34.patch.bz2: done # tar -cvf patches.addon.tar reiser4-for-2.6.34.patch # bzip2 -v patches.addon.tar reiser4-for-2.6.34.patch patches.addon.tar: 5.317:1, 1.505 bits/byte, 81.19% saved, 2396160 in, 450702 out. reiser4-for-2.6.34.patch: 5.313:1, 1.506 bits/byte, 81.18% saved, 2394103 in, 450584 out. # bunzip2 -v patches.addon.tar.bz2 patches.addon.tar.bz2: done What does this mean and what does it do -> add it to "series.conf" Have you a .spec file I could use to apply the patch to the kernel and build the new patched kernel Thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, Jul 2, 2010 at 11:25 AM,
Looks like I'll discard plan A
Do you just want to build a reiserfs filesystem into the kernel? Then you could build just a KMP...
Looks like use Plan B..... - Or, branch the kernel-vanilla kernel, - add the patch to patches.addon.tar.bz2, - add it to "series.conf",checkin.
1. What steps are needed to branch the kernel-vanilla kernel to I presume a blank project. 2. To create patches.addon.tar.bz2 is this ok- # bunzip2 -v reiser4-for-2.6.34.patch.bz2 reiser4-for-2.6.34.patch.bz2: done
# tar -cvf patches.addon.tar reiser4-for-2.6.34.patch # bzip2 -v patches.addon.tar reiser4-for-2.6.34.patch patches.addon.tar: 5.317:1, 1.505 bits/byte, 81.19% saved, 2396160 in, 450702 out. reiser4-for-2.6.34.patch: 5.313:1, 1.506 bits/byte, 81.18% saved, 2394103 in, 450584 out. # bunzip2 -v patches.addon.tar.bz2 patches.addon.tar.bz2: done
What does this mean and what does it do -> add it to "series.conf" Have you a .spec file I could use to apply the patch to the kernel and build the new patched kernel Thanks Glenn
From the above it appears I need to branch a full kernel package,
I've been watching this thread slowly move forward because I have a KMP I want to publish from my home directory. It is a patched version of ext4. (It doesn't yet build). My hope was to publish just a higher versioned ext4.kmp by pulling in the ext4 source, patching it and compiling. patch the ext4 code and then compile just the one module. Is that right? Thanks Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo - http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retriev... The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, 2 Jul 2010 11:33:42 -0400, Greg Freemyer
From the above it appears I need to branch a full kernel package, patch the ext4 code and then compile just the one module.
Is that right?
I'd try asking over on opensuse-kernel as you'll reach some of our kernel developers there which might be able to further help you. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, 02 Jul 2010 19:11:24 +0200, Philipp Thomas
On Fri, 2 Jul 2010 11:33:42 -0400, Greg Freemyer
wrote: I'd try asking over on opensuse-kernel as you'll reach some of our kernel developers there which might be able to further help you.
Philipp I coninued the thread at http://lists.opensuse.org/opensuse-kernel/2010-07/msg00002.html Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (6)
-
Cristian Rodríguez
-
doiggl@velocitynet.com.au
-
Greg Freemyer
-
Marcus Meissner
-
Michal Marek
-
Philipp Thomas