Mailinglist Archive: opensuse-kernel (87 mails)

< Previous Next >
Re: [opensuse-kernel] combine shell script and .spec file into one .spec file to do the whole job.
  • From: <doiggl@xxxxxxxxxxxxxxxxxx>
  • Date: Fri, 13 Aug 2010 02:28:28 +1000
  • Message-id: <c5405722426b5d90e004b916b7797fae@xxxxxxxxxxxxxxxxxxxxxxx>
On Thu, 12 Aug 2010 23:55:06 +1000, <doiggl@xxxxxxxxxxxxxxxxxx> wrote:
On Wed, 11 Aug 2010 14:07:13 -0400, Jeff Mahoney <jeffm@xxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/09/2010 10:43 AM, doiggl@xxxxxxxxxxxxxxxxxx wrote:
Hello,
I need help to combine this shell script [1] and .spec file [2]into
one
.spec file to do the whole job and run from obs.

What are you trying to do here? Why can't you just add the reiser4
patch
to patches.addon?

- -Jeff

Thanks I did not know how the easiest method to accomplish this. So far
I've done this


# cat patches.addon/series
patches.addon/reiser4-for-2.6.34.patch
# tar -cvf patches.addon.tar patches.addon
patches.addon/
patches.addon/series
patches.addon/reiser4-for-2.6.34.patch
#
# bzip2 -v patches.addon.tar
patches.addon.tar: 5.341:1, 1.498 bits/byte, 81.28% saved, 2406400
in,
450569 out.
# ll patches.addon.tar.bz2
-rw-r--r-- 1 root root 450569 Aug 12 23:16 patches.addon.tar.bz2

- The project is at

https://build.opensuse.org/package/files?package=reiser4&project=home%3Adoiggl
- Im using this spec file

https://build.opensuse.org/package/view_file?file=reiser4.spec&package=reiser4&project=home%3Adoiggl


Hello
The default setup line is incorrect here.
%prep
%setup -q

Result:
+ rm -rf kernel-2.6.35.1
+ /usr/bin/bzip2 -dc /usr/src/packages/SOURCES/linux-2.6.35.1.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd kernel-2.6.35.1
/var/tmp/rpm-tmp.Bw6eha: line 32: cd: kernel-2.6.35.1: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Bw6eha (%prep)

The top level directory of linux-2.6.35.1.tar.bz2 is
linux-2.6.35.1/

How can I change the setup -q line so it does 'cd linux-2.6.35.1' and not
'cd kernel-2.6.35.1'

project files ->
https://build.opensuse.org/package/files?package=reiser4&project=home%3Adoiggl
spec file
->https://build.opensuse.org/package/view_file?file=reiser4.spec&package=reiser4&project=home%3Adoiggl
last log ->
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=reiser4&project=home%3Adoiggl&repository=openSUSE_11.3

Thanks Glenn



--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kernel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups