Is it really necessary to replace the spec file generation in tar-up.sh by a perl version called mkspec? I personally learned to hate perl. Additionally to my personal dislikes this introduces the first perl script that is necessary to build our kernel package. Is there any reason why we can't live with a shell version as we did before? Comments? Jan -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Fri, Apr 24, Jan Blunck wrote:
Is it really necessary to replace the spec file generation in tar-up.sh by a perl version called mkspec? I personally learned to hate perl. Additionally to my personal dislikes this introduces the first perl script that is necessary to build our kernel package.
Is there any reason why we can't live with a shell version as we did before?
Besides that mkspec is broken and can't build the Kernel:Vanilla projects anymore since it doesn't honor EXTRAVERSION properly. Can somebody please fix it or revert the merge. Thanks, Jan -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Fri, Apr 24, 2009 at 10:33:53AM +0200, Jan Blunck wrote:
On Fri, Apr 24, Jan Blunck wrote:
Is it really necessary to replace the spec file generation in tar-up.sh by a perl version called mkspec? I personally learned to hate perl. Additionally to my personal dislikes this introduces the first perl script that is necessary to build our kernel package.
Is there any reason why we can't live with a shell version as we did before?
Besides that mkspec is broken and can't build the Kernel:Vanilla projects anymore since it doesn't honor EXTRAVERSION properly.
What do you mean by this? thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Fri, Apr 24, Greg KH wrote:
On Fri, Apr 24, 2009 at 10:33:53AM +0200, Jan Blunck wrote:
On Fri, Apr 24, Jan Blunck wrote:
Is it really necessary to replace the spec file generation in tar-up.sh by a perl version called mkspec? I personally learned to hate perl. Additionally to my personal dislikes this introduces the first perl script that is necessary to build our kernel package.
Is there any reason why we can't live with a shell version as we did before?
Besides that mkspec is broken and can't build the Kernel:Vanilla projects anymore since it doesn't honor EXTRAVERSION properly.
What do you mean by this?
For the kernel build scripts it is important that the packaging reflects the kernel release numbering scheme. Therefore EXTRAVERSION and files like localversion* need to be honored for the naming of the rpm package. So for the linux-next project I want the rpm to be called kernel-default-2.6.28-next-20090107 where the -next-20090107 is coming from the localversion-next file. This is really important for our kernel to support this kind of setups. Otherwise our scripting work is not usable for contributors not interested in building default openSUSE kind of kernel packages. Thanks, Jan -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
Jan Blunck napsal(a):
On Fri, Apr 24, Jan Blunck wrote:
Is it really necessary to replace the spec file generation in tar-up.sh by a perl version called mkspec? I personally learned to hate perl. Additionally to my personal dislikes this introduces the first perl script that is necessary to build our kernel package.
Is there any reason why we can't live with a shell version as we did before?
$ git show 09cf8debcb153c02c366f20e07926dbf9a58f9d9 | diffstat ... b/rpm/mkspec | 187 ++++++++++++++++++++++ b/scripts/tar-up.sh | 330 ++-------------------------------------- $ grep /usr/bin/perl * -l guards mkspec modversions
Besides that mkspec is broken and can't build the Kernel:Vanilla projects anymore since it doesn't honor EXTRAVERSION properly.
You mean that it doesn't paste the -rcX string to the rpm release numbers? That didn't really work anyway. Or what specifically are you missing? Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Mon, Apr 27, Michal Marek wrote:
Jan Blunck napsal(a):
On Fri, Apr 24, Jan Blunck wrote:
Is it really necessary to replace the spec file generation in tar-up.sh by a perl version called mkspec? I personally learned to hate perl. Additionally to my personal dislikes this introduces the first perl script that is necessary to build our kernel package.
Is there any reason why we can't live with a shell version as we did before?
$ git show 09cf8debcb153c02c366f20e07926dbf9a58f9d9 | diffstat ... b/rpm/mkspec | 187 ++++++++++++++++++++++ b/scripts/tar-up.sh | 330 ++--------------------------------------
Just because it is smaller in LOC doesn't make something suck less.
$ grep /usr/bin/perl * -l guards mkspec modversions
Yes, I missed that guards is written in perl as well. modversions is only necessary for the kABI stuff.
Besides that mkspec is broken and can't build the Kernel:Vanilla projects anymore since it doesn't honor EXTRAVERSION properly.
You mean that it doesn't paste the -rcX string to the rpm release numbers? That didn't really work anyway. Or what specifically are you missing?
Exactly: -rcX , -g$SHA1, -next-$TIMESTAMP and so on. There are numerous examples. None of my none-standard Kernel: repositories is building anymore. If you are reimplementing something you can at least make sure that you don't break something useful. And that is totally separate issue from the what-language-I-dont-like discussion. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Mon, Apr 27, 2009 at 10:14:33AM +0200, Jan Blunck wrote:
On Mon, Apr 27, Michal Marek wrote:
Jan Blunck napsal(a):
Besides that mkspec is broken and can't build the Kernel:Vanilla projects anymore since it doesn't honor EXTRAVERSION properly.
You mean that it doesn't paste the -rcX string to the rpm release numbers? That didn't really work anyway. Or what specifically are you missing?
Exactly: -rcX , -g$SHA1, -next-$TIMESTAMP and so on. There are numerous examples. None of my none-standard Kernel: repositories is building anymore. If you are reimplementing something you can at least make sure that you don't break something useful. And that is totally separate issue from the what-language-I-dont-like discussion.
Can you try this one? Note that compute-PATCHVERSION.sh only reads the Makefile, no localversion* files (but it should be easy to extend it). From: Michal Marek <mmarek@suse.cz> Date: Mon, 27 Apr 2009 10:42:32 +0200 Subject: [PATCH] - rpm/kernel-binary.spec.in, rpm/kernel-source.spec.in, rpm/kernel-syms.spec.in, rpm/mkspec: prepend the EXTRAVERSION to the rpm release string (note that this won't have any effect in the openSUSE:* projects). --- kernel-source.changes | 8 ++++++++ rpm/kernel-binary.spec.in | 4 ++++ rpm/kernel-source.spec.in | 6 +++++- rpm/kernel-syms.spec.in | 2 +- rpm/mkspec | 6 +++--- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/kernel-source.changes b/kernel-source.changes index 499736d..60bf440 100644 --- a/kernel-source.changes +++ b/kernel-source.changes @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Mon Apr 27 10:41:20 CEST 2009 - mmarek@suse.cz + +- rpm/kernel-binary.spec.in, rpm/kernel-source.spec.in, + rpm/kernel-syms.spec.in, rpm/mkspec: prepend the EXTRAVERSION to + the rpm release string (note that this won't have any effect in + the openSUSE:* projects). + +------------------------------------------------------------------- Thu Apr 23 23:31:39 CEST 2009 - jeffm@suse.de - Temporarily disabled patches.suse/acpi-dsdt-initrd-v0.9a-2.6.25.patch diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in index 1a8f76b..c4ff1af 100644 --- a/rpm/kernel-binary.spec.in +++ b/rpm/kernel-binary.spec.in @@ -64,7 +64,11 @@ Name: kernel-@FLAVOR@ Summary: @SUMMARY@ Version: @RPMVERSION@ +%if %using_buildservice +Release: @RELEASE@<RELEASE> +%else Release: @RELEASE@ +%endif License: GPL Group: System/Kernel Url: http://www.kernel.org/ diff --git a/rpm/kernel-source.spec.in b/rpm/kernel-source.spec.in index d5dd953..28b7c3e 100644 --- a/rpm/kernel-source.spec.in +++ b/rpm/kernel-source.spec.in @@ -41,7 +41,11 @@ Name: kernel-source@VARIANT@ Summary: The Linux Kernel Sources Version: @RPMVERSION@ -Release: @RELEASE@ +%if %using_buildservice +Release: @RELEASE@<RELEASE> +%else +Release: @RELEASE@ +%endif License: GPL Group: Development/Sources AutoReqProv: off diff --git a/rpm/kernel-syms.spec.in b/rpm/kernel-syms.spec.in index 52aebdc..16bccb9 100644 --- a/rpm/kernel-syms.spec.in +++ b/rpm/kernel-syms.spec.in @@ -31,7 +31,7 @@ Name: kernel-syms@VARIANT@ Summary: Kernel Symbol Versions (modversions) Version: @RPMVERSION@ %if %using_buildservice -Release: @RELEASE@ +Release: @RELEASE@<RELEASE> %else %define kernel_source_release %(LC_ALL=C rpm -q kernel-source%variant-%version --qf "%{RELEASE}" | grep -v 'not installed' || echo 0) Release: %kernel_source_release diff --git a/rpm/mkspec b/rpm/mkspec index 5e51229..511c905 100755 --- a/rpm/mkspec +++ b/rpm/mkspec @@ -26,15 +26,15 @@ my %binary_descriptions = parse_descriptions(); my $patchversion = `$dir/compute-PATCHVERSION.sh`; chomp $patchversion; -my $rpmversion = $patchversion; -$rpmversion =~ s/-.*//g; +my ($rpmversion, $rpmrelease) = split(/-/, $patchversion, 2); +$rpmrelease =~ s/-/_/g; my %macros = ( VARIANT => $variant, SRCVERSION => $srcversion, PATCHVERSION => $patchversion, RPMVERSION => $rpmversion, - RELEASE => 0, + RELEASE => $rpmrelease, ); # binary spec files -- 1.6.0.2 -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Fri, Apr 24, 2009 at 10:29:59AM +0200, Jan Blunck wrote:
Is it really necessary to replace the spec file generation in tar-up.sh by a perl version called mkspec? I personally learned to hate perl. Additionally to my personal dislikes this introduces the first perl script that is necessary to build our kernel package.
Hm, I see lots of perl scripts in our scripts/ directory. What is the problem with using a perl script, you don't have to edit it if you don't want to :) thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Fri, Apr 24, Greg KH wrote:
On Fri, Apr 24, 2009 at 10:29:59AM +0200, Jan Blunck wrote:
Is it really necessary to replace the spec file generation in tar-up.sh by a perl version called mkspec? I personally learned to hate perl. Additionally to my personal dislikes this introduces the first perl script that is necessary to build our kernel package.
Hm, I see lots of perl scripts in our scripts/ directory.
The only perl script that is involved in kernel builds is scripts/guards. The rest is either used by the kABI scripts or are unused.
What is the problem with using a perl script, you don't have to edit it if you don't want to :)
Thats exactly the problem: I have to fix that script because somehow my additions to the kernel build scripts have not been added to the new perl version. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (3)
-
Greg KH
-
Jan Blunck
-
Michal Marek