Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219615 - USING new slot notation in java-pkg_getjar cause runtime failure if EAPI is not declared to be 1
Summary: USING new slot notation in java-pkg_getjar cause runtime failure if EAPI is n...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 19:17 UTC by Serkan Kaba (RETIRED)
Modified: 2015-10-13 12:44 UTC (History)
0 users

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


Attachments
atunes-1.8.3.ebuild (atunes-1.8.3.ebuild,2.41 KB, text/plain)
2008-04-28 19:18 UTC, Serkan Kaba (RETIRED)
Details
package.env (package.env,465 bytes, text/plain)
2008-04-28 19:19 UTC, Serkan Kaba (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serkan Kaba (RETIRED) gentoo-dev 2008-04-28 19:17:04 UTC
java-pkg_getjar lucene:2.3 lucene-core.jar

This is a valid statement at compile time even if EAPI is not declared to be 1 but the env file entry is not translated into old notation and causes package not found error at runtime.

Reproducible: Always

Steps to Reproduce:
1. don't declare EAPI="1" in the ebuild
2. use slot notation in java-pkg_getjar
3. merge the package and run

Actual Results:  
Fails to run with package not found error.

Expected Results:  
I think this notation should not be allowed (die with error) at compile time at all.
Comment 1 Serkan Kaba (RETIRED) gentoo-dev 2008-04-28 19:18:34 UTC
Created attachment 151262 [details]
atunes-1.8.3.ebuild

Sample ebuild i was working on and hit the issue.
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2008-04-28 19:19:42 UTC
Created attachment 151264 [details]
package.env

package.env file generated.
Comment 3 Patrice Clement gentoo-dev 2015-10-13 12:44:56 UTC
(In reply to Serkan Kaba (RETIRED) from comment #0)
> java-pkg_getjar lucene:2.3 lucene-core.jar
> 
> This is a valid statement at compile time even if EAPI is not declared to be
> 1 but the env file entry is not translated into old notation and causes
> package not found error at runtime.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. don't declare EAPI="1" in the ebuild
> 2. use slot notation in java-pkg_getjar
> 3. merge the package and run
> 
> Actual Results:  
> Fails to run with package not found error.
> 
> Expected Results:  
> I think this notation should not be allowed (die with error) at compile time
> at all.

From what I gather, he hit the bug whilst not declaring an EAPI in his ebuild, which is bad. Fast forward 10 years and many RFCs and GLEPs have been written in the meantime which now forbid developers to commit ebuilds < EAPI version 5, let alone ebuilds with no EAPI declare). There's no way this bug will ever occur, ever again. Closing it.