Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35612 - mozilla-1.6a is wrong versioned
Summary: mozilla-1.6a is wrong versioned
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 09:28 UTC by Georgi Georgiev
Modified: 2003-12-20 19:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2003-12-11 09:28:59 UTC
mozilla-1.6a should in fact be mozilla-1.6_alpha, because as we well know, 1.6a > 1.6 > 1.6_beta > 1.6_alpha, and the mozilla-1.6a in portage is really mozilla-1.6_alpha (there is no mozilla 1.6 out yet).

Related to the problem in question is the fact that I cannot get the meaning of the following code in the mozilla.ebuild:

# handle _rc versions
MY_PV1="${PV/_}"
MY_PV2="${MY_PV1/eta}"

I think something like the following would make more sense:

case $PV in
*_alpha)    MY_PV1="${PV/_alpha/a}" ;;
*_beta)     MY_PV1="${PV/_beta/b}"  ;;
*_rc[0-9]*) MY_PV1="${PV/_rc/rc}"   ;;
*)          MY_PV1="${PV}" ;;
esac
SRC_URI="mirror://mozilla/${PN}/releases/${PN}${MY_PV1}/src/${PN}-source-${MY_PV1}.tar.bz2"

Should these be two separate bugreports?
Comment 1 Georgi Georgiev 2003-12-12 18:05:38 UTC
I got it.
MY_PV1="${PV/_}"
MY_PV2="${MY_PV1/eta}"
is supposed to make _beta -> b
Still, I think it makes more sense to include the cases when we have _alpha and _rc versions, since this is the problem we're facing right now.
Comment 2 Georgi Georgiev 2003-12-17 21:49:59 UTC
Can I get some attention here? There is now a mozilla-1.6b.ebuild, and I'm really curious how people are going to "upgrade" when mozilla-1.6 finally hits portage. It is not too late to remove thouse 1.6a and 1.6b ebuilds and name them properly as 1.6_alpha and 1.6_beta.
Comment 3 Brad Laue (RETIRED) gentoo-dev 2003-12-18 07:53:24 UTC
I'm looking into it. This will be corrected before 1.6 release.
Comment 4 Brad Laue (RETIRED) gentoo-dev 2003-12-20 10:40:53 UTC
Ebuilds renamed, should be fixed. Will deal with the case statement later - do me a favor and file a new bug on it? 

Thanks much
Comment 5 Georgi Georgiev 2003-12-20 19:12:07 UTC
Bug 36213 has been added to the database