[opensuse-kernel] kernel packages and build-compare
Hi all :) kernel packages are still unfriendly to build-compare, causing us testers having to download unchanged,large binary packages on update for no reason There are two problems. 1. kernel-default.x86_64: W: file-contains-date-and-time /lib/modules/3.0.0-7-default/kernel/fs/ubifs/ubifs.ko Your file uses __DATE and __TIME__ this causes the package to rebuild when not needed It is just one remaining in the ubifs module. The second issue is somewhere in the pre/post, the nvr variable changes all the time --- /tmp/tmp.9i2CeizOnc 2011-08-04 20:37:46.965592003 +0000 +++ /tmp/tmp.BkE5Rahqtz 2011-08-04 20:37:47.005592003 +0000 @@ -81,7 +81,7 @@ if [ 1 = 1 ]; then /bin/bash -${-/e/} $wm2 --add-kernel 3.0.0-7-default else - nvr=kernel-default-base-3.0.0-7.1 + nvr=kernel-default-base-3.0.0-7.2 rpm -ql $nvr | /bin/bash -${-/e/} $wm2 --add-kernel-modules 3.0.0-7-default fi else Can the kernel version be determined at runtime instead of at compile time so we never get this issue anymore ? applies to KMPs as well. Cheers. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On 6.8.2011 03:55, Cristian Rodríguez wrote:
kernel-default.x86_64: W: file-contains-date-and-time /lib/modules/3.0.0-7-default/kernel/fs/ubifs/ubifs.ko Your file uses __DATE and __TIME__ this causes the package to rebuild when not needed
It is just one remaining in the ubifs module.
Yeah, I missed that one, I'll send a patch.
The second issue is somewhere in the pre/post, the nvr variable changes all the time
--- /tmp/tmp.9i2CeizOnc 2011-08-04 20:37:46.965592003 +0000 +++ /tmp/tmp.BkE5Rahqtz 2011-08-04 20:37:47.005592003 +0000 @@ -81,7 +81,7 @@ if [ 1 = 1 ]; then /bin/bash -${-/e/} $wm2 --add-kernel 3.0.0-7-default else - nvr=kernel-default-base-3.0.0-7.1 + nvr=kernel-default-base-3.0.0-7.2 rpm -ql $nvr | /bin/bash -${-/e/} $wm2 --add-kernel-modules 3.0.0-7-default fi else
Can the kernel version be determined at runtime instead of at compile time so we never get this issue anymore ? applies to KMPs as well.
Does RPM set some env var with the name-version-release string? If not, I'm affraid build-compare will have to work around this. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
Am Montag, 8. August 2011 schrieb Michal Marek:
On 6.8.2011 03:55, Cristian Rodríguez wrote:
kernel-default.x86_64: W: file-contains-date-and-time /lib/modules/3.0.0-7-default/kernel/fs/ubifs/ubifs.ko Your file uses __DATE and __TIME__ this causes the package to rebuild when not needed
It is just one remaining in the ubifs module.
Yeah, I missed that one, I'll send a patch.
The second issue is somewhere in the pre/post, the nvr variable changes all the time
--- /tmp/tmp.9i2CeizOnc 2011-08-04 20:37:46.965592003 +0000 +++ /tmp/tmp.BkE5Rahqtz 2011-08-04 20:37:47.005592003 +0000 @@ -81,7 +81,7 @@
if [ 1 = 1 ]; then
/bin/bash -${-/e/} $wm2 --add-kernel 3.0.0-7-default
else
- nvr=kernel-default-base-3.0.0-7.1 + nvr=kernel-default-base-3.0.0-7.2
rpm -ql $nvr | /bin/bash -${-/e/} $wm2 --add-kernel-modules
3.0.0-7-default
fi
else
Can the kernel version be determined at runtime instead of at compile time so we never get this issue anymore ? applies to KMPs as well.
Does RPM set some env var with the name-version-release string? If not, I'm affraid build-compare will have to work around this.
build-compare is full of work arounds for specific cases. And if it's only this specific string, we can patch it. Testing it will be tough though :) Greetings, Stephan -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On 24/08/11 07:14, Stephan Kulow wrote:
Am Montag, 8. August 2011 schrieb Michal Marek:
On 6.8.2011 03:55, Cristian Rodríguez wrote:
kernel-default.x86_64: W: file-contains-date-and-time /lib/modules/3.0.0-7-default/kernel/fs/ubifs/ubifs.ko Your file uses __DATE and __TIME__ this causes the package to rebuild when not needed
It is just one remaining in the ubifs module.
Yeah, I missed that one, I'll send a patch.
The second issue is somewhere in the pre/post, the nvr variable changes all the time
--- /tmp/tmp.9i2CeizOnc 2011-08-04 20:37:46.965592003 +0000 +++ /tmp/tmp.BkE5Rahqtz 2011-08-04 20:37:47.005592003 +0000 @@ -81,7 +81,7 @@
if [ 1 = 1 ]; then
/bin/bash -${-/e/} $wm2 --add-kernel 3.0.0-7-default
else
- nvr=kernel-default-base-3.0.0-7.1 + nvr=kernel-default-base-3.0.0-7.2
rpm -ql $nvr | /bin/bash -${-/e/} $wm2 --add-kernel-modules
3.0.0-7-default
fi
else
Can the kernel version be determined at runtime instead of at compile time so we never get this issue anymore ? applies to KMPs as well.
Does RPM set some env var with the name-version-release string? If not, I'm affraid build-compare will have to work around this.
build-compare is full of work arounds for specific cases. And if it's only this specific string, we can patch it. Testing it will be tough though :)
Greetings, Stephan
I assume these are pre/post scripts.. I am missing something or you should have access to package's %{version} and %release there as well ? I mean expanding them at runtime and not at compile time... -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On 08/08/11 04:29, Michal Marek wrote:
On 6.8.2011 03:55, Cristian Rodríguez wrote:
kernel-default.x86_64: W: file-contains-date-and-time /lib/modules/3.0.0-7-default/kernel/fs/ubifs/ubifs.ko Your file uses __DATE and __TIME__ this causes the package to rebuild when not needed
It is just one remaining in the ubifs module.
Yeah, I missed that one, I'll send a patch.
The second issue is somewhere in the pre/post, the nvr variable changes all the time
--- /tmp/tmp.9i2CeizOnc 2011-08-04 20:37:46.965592003 +0000 +++ /tmp/tmp.BkE5Rahqtz 2011-08-04 20:37:47.005592003 +0000 @@ -81,7 +81,7 @@ if [ 1 = 1 ]; then /bin/bash -${-/e/} $wm2 --add-kernel 3.0.0-7-default else - nvr=kernel-default-base-3.0.0-7.1 + nvr=kernel-default-base-3.0.0-7.2 rpm -ql $nvr | /bin/bash -${-/e/} $wm2 --add-kernel-modules 3.0.0-7-default fi else
Can the kernel version be determined at runtime instead of at compile time so we never get this issue anymore ? applies to KMPs as well.
Does RPM set some env var with the name-version-release string? If not, I'm affraid build-compare will have to work around this.
Michal
According to max rpm guide. we should have: RPM_PACKAGE_NAME — This environment variable gets its value from the name tag line in the package's spec file. It contains the name of the software being packaged. RPM_PACKAGE_VERSION — The version tag line is the source of this variable's translation. Predictably, this environment variable contains the software's version number. RPM_PACKAGE_RELEASE — This environment variable contains the package's release number. Its value is obtained from the release tag line in the spec file. However I can't find them in the environment on %post :-| -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On 24/08/11 16:51, Cristian Rodríguez wrote:
According to max rpm guide. we should have:
RPM_PACKAGE_NAME — This environment variable gets its value from the name tag line in the package's spec file. It contains the name of the software being packaged.
RPM_PACKAGE_VERSION — The version tag line is the source of this variable's translation. Predictably, this environment variable contains the software's version number.
RPM_PACKAGE_RELEASE — This environment variable contains the package's release number. Its value is obtained from the release tag line in the spec file.
However I can't find them in the environment on %post :-|
They are defined, in %prep, %build , %install , %check just not in pre, post...*sigh* -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (3)
-
Cristian Rodríguez
-
Michal Marek
-
Stephan Kulow