Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 439140

Summary: dev-java/icedtea: Use meaningful names for distfiles
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Component: [OLD] JavaAssignee: Andrew John Hughes <gnu_andrew>
Status: RESOLVED FIXED    
Severity: enhancement CC: caster, java, kripton, nikoli, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: icedtea-7.2.3.3.ebuild.patch

Description Arfrever Frehtes Taifersar Arahesis 2012-10-21 10:11:18 UTC
Created attachment 327038 [details, diff]
icedtea-7.2.3.3.ebuild.patch

Currently the following files would be stored in ${DISTDIR} for dev-java/icedtea-7.2.3.3:

  icedtea-2.3.3.tar.gz
  jamvm-0972452d441544f7dd29c55d64f1ce3a5db90d82.tar.gz
  03f54ef33914.tar.gz
  301e79a966b4.tar.gz
  5ec94d162f05.tar.gz
  9a95d714d136.tar.gz
  a567bcb7f589.tar.gz
  d2d0a106917c.tar.gz
  ec73c6927fb7.tar.gz
  f45296ac69be.tar.gz

When checking ${DISTDIR}, it is useful to be able to calculate package name from given file name. I suggest to use SRC_URI arrows to rename these files to more meaningful names:

  icedtea-7.2.3.3.tar.gz
  icedtea-7.2.3.3-cacao-a567bcb7f589.tar.gz
  icedtea-7.2.3.3-corba-9a95d714d136.tar.gz
  icedtea-7.2.3.3-hotspot-d2d0a106917c.tar.gz
  icedtea-7.2.3.3-jamvm-0972452d441544f7dd29c55d64f1ce3a5db90d82.tar.gz
  icedtea-7.2.3.3-jaxp-f45296ac69be.tar.gz
  icedtea-7.2.3.3-jaxws-03f54ef33914.tar.gz
  icedtea-7.2.3.3-jdk-5ec94d162f05.tar.gz
  icedtea-7.2.3.3-langtools-ec73c6927fb7.tar.gz
  icedtea-7.2.3.3-openjdk-301e79a966b4.tar.gz

I attach the patch.
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2013-02-20 07:39:04 UTC
The only tarball that is guaranteed to be new with each release is the icedtea one itself. All others may and actually often are used across releases.

Also "useful" is awfully vague. Please be clear about what you want to do, why you want to map a distfile (by it's filename!) to a package including it's version.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2013-03-20 20:34:44 UTC
I want to be able to use 'ls icedtea*' in ${DISTDIR} and 'rm icedtea-7.2.3.6*' (example older version).
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2014-02-22 16:23:21 UTC
Andrew did pick this up and it's in tree.