Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61975 - VERSION variable breaks dri build from sources and has screwed content anyway
Summary: VERSION variable breaks dri build from sources and has screwed content anyway
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 63490 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-27 13:58 UTC by Martin Mokrejš
Modified: 2004-10-12 15:07 UTC (History)
1 user (show)

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 Martin Mokrejš 2004-08-27 13:58:11 UTC
$ grep JavaCC /etc/*
/etc/csh.env:setenv VERSION 'JavaCC @PV@'
[cut]


I think some java install stuff is broken. I found this to be cause why I couldn't build dri modules from dri.sf.net on my own (and am not the only one according to google). Unsetting the VERSION variable helps to compile dri modules, but the question is still how did this happen. What is this variable useful for?

The related bugreport is
https://freedesktop.org/bugzilla/show_bug.cgi?id=969 


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Mokrejš 2004-08-27 13:59:48 UTC
Of course bash users are affected too. I did not search whole harddisk space, only /etc/ :

/etc/profile.env:export VERSION='JavaCC @PV@'

So it's in at least 2 files.
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-28 01:48:35 UTC
profile.env is generated from /etc/env.d/
what file contains VERSION there?
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-30 10:46:52 UTC
profile.env is generated from /etc/env.d/
what file contains VERSION there?
Comment 4 Martin Mokrejš 2004-09-03 11:33:02 UTC
$ grep VERSION /etc/env.d/*
/etc/env.d/22javacc:VERSION="JavaCC @PV@"
$ 
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2004-09-04 11:15:40 UTC
hmm, that file should be installed in 
/etc/env.d/java/
and then its not added to profile.env
and from what i can see the ebuild does this

41     dodir /etc/env.d/java
42     insinto /etc/env.d/java
43     newins ${PN}-${PV} 22javacc || die "Missing ${PF}"  

maybe a previous ebuild put it there, and somehow it got left (haven't check previous ebuilds)
Comment 6 Martin Mokrejš 2004-09-05 03:11:31 UTC
Yes, I remember some java ebuild had problems (don't remember details). It's definitely not my fault, I actually don't program in Java so I never played with it more then just installed the package. Could you introduce sanity check into next java ebuild which would check for variable VERSION? If found in that env.d/ file, then the line should be removed automatically. I'm definitely not the only one.
Comment 7 Martin Mokrejš 2004-09-05 03:14:15 UTC
some file dates from /etc/env.d/:
Sep 12  2003 20java
May 11 15:55 22javacc
Comment 8 Thomas Matthijs (RETIRED) gentoo-dev 2004-09-05 04:27:03 UTC
-r3 will remove the file
Comment 9 SpanKY gentoo-dev 2004-10-12 15:07:10 UTC
*** Bug 63490 has been marked as a duplicate of this bug. ***