Mailinglist Archive: opensuse-kernel (48 mails)

< Previous Next >
Re: [opensuse-kernel] kernel packages and build-compare
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kernel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups