Skip to contentSkip to conversation

The tzdata package and a bug with tzdata-dbg

DISCUSSION Holger Freyther 3 participants 7 messages Mar 18, 2008 – Mar 19, 2008

lore
Share & tools
lore
#0 lore raw

Hey,

there are not many consumers of the tzdata package but there is one issue you might have when updating:
Both tzdata and tzdata-dbg are providing tzdata and at least my version of ipkg preferred tzdata-dbg over tzdata. The result is that you don't have the standard zoneinfo information for cities like New_York.

You want to get rid of tzdata-dbg and you want to get tzdata in this case, I have no idea how to do this in ipk terms. An Replace in tzdata for "tzdata-dbg" is not enough. I think tzdata-dbg should stop providing tzdata and at one point be removed. I have a fix in the OpenMoko OE tree and will do one for OE.dev now.

z.

PS: Do we have a policy for such kind of bugs?

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Holger Freyther schreef:

| Hey,
|
| there are not many consumers of the tzdata package but there is one

issue you
| might have when updating:
| Both tzdata and tzdata-dbg are providing tzdata and at least my
version of
| ipkg preferred tzdata-dbg over tzdata. The result is that you don't
have the
| standard zoneinfo information for cities like New_York.

If the depchains aren't broken you also end up with $libc-dbg, libgcc-dbg etc, if this were a library package. See
http://dominion.thruhere.net/koen/cms/the-testlab-strikes-again for details on that.

| You want to get rid of tzdata-dbg and you want to get tzdata in this case, I
| have no idea how to do this in ipk terms. An Replace in tzdata | for "tzdata-dbg" is not enough.

Change RPROVIDES = "foo" to RPROVIDES_${PN} and bump PR. Every R* variable works on _every_ package, while most people want it to work on ${PN}.

| I think tzdata-dbg should stop providing
| tzdata and at one point be removed. I have a fix in the OpenMoko OE tree and

| will do one for OE.dev now.
|
|
| z.
|
| PS: Do we have a policy for such kind of bugs?

Yes: Change RPROVIDES = "foo" to RPROVIDES_<package> and bump PR.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFH4ELyMkyGM64RGpERApMGAJ9f0bNStvl7fDODzrinVbd10p3VxACfUYl/ x75cApE+Vx9mzzmHQDSXJPI=
=XCkZ
-----END PGP SIGNATURE-----

#2 lore raw

On Tuesday 18 March 2008 23:32:18 Koen Kooi wrote:
Hey Koen,
thanks for the fast answer

Quoted 1 line

Yes: Change RPROVIDES = "foo" to RPROVIDES_<package> and bump PR.

Yes, this part is obvious. Now to the hard part tzdata-dbg has no content, now that the RPROVIDES are different the tzdata-dbg package will be gone. The tricky question is:

ipkg update
ipkg upgrade

tzdata-dbg should be gone, tzdata should be installed. How to achieve this? My attempt was to have an empty tzdata-dbg package that is not providing tzdata anymore, so on update ipkg should try to install tzdata again....

z.

#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Holger Freyther schreef:

| On Tuesday 18 March 2008 23:32:18 Koen Kooi wrote:
| Hey Koen,
| thanks for the fast answer
|
|
|> Yes: Change RPROVIDES = "foo" to RPROVIDES_<package> and bump PR.
| Yes, this part is obvious. Now to the hard part tzdata-dbg has no

content, now
| that the RPROVIDES are different the tzdata-dbg package will be gone.

It won't, unless you removed this from bitbake.conf:

ALLOW_EMPTY_${PN}-dbg = "1"

| The
| tricky question is:
|
| 	ipkg update
| 	ipkg upgrade

opkg ;)

|
|
| tzdata-dbg should be gone, tzdata should be installed. How to achieve

this? My
| attempt was to have an empty tzdata-dbg package that is not providing tzdata
| anymore, so on update ipkg should try to install tzdata again....

That should work with opkg. But in your case (OM), bump PR on eds-dbus to make sure tzdata gets pulled in.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFH4PGBMkyGM64RGpERAgpUAJ9nDVIXVXSJnHr3iWJw4de8RrLVPwCgkAX1 scmEducy/7eUqpLJkCn7Zdo=
=Xw9a
-----END PGP SIGNATURE-----

#5 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrea Adami schreef:

| Holger, Koen,
|
| talking about tzdata, the file /etc/localtime is missing.
|
| I'd suggest you to look at the gentoo-ebuild here for some tips

(pkg_config):
|
| http://www.gentoo-portage.com/AJAX/Ebuild/62372/View

It's intentional, since ipkg (which was/is the de-facto standard in OE) lacks a way to do interactive configure that works well with installer GUI. So we decided: leave it to the user.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFH4QWEMkyGM64RGpERAivyAKCt+CZjFO9SoMDWVJ3ZHz2y5gKHIQCfQkaC 0nlMdWLPZhFeIWGVfCY0px8=
=QJOG
-----END PGP SIGNATURE-----

#6 lore raw
In reply to Koen Kooi
Quoted 3 lines · On Wednesday 19 March 2008 11:57:05 Koen Kooi wrote:

It won't, unless you removed this from bitbake.conf:

ALLOW_EMPTY_${PN}-dbg = "1"

eeek, thank you! I hope you merged it the right way. :)

z.