Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433685 - dev-java/icedtea-7.2.3.1: invalid docompress call
Summary: dev-java/icedtea-7.2.3.1: invalid docompress call
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-01 21:08 UTC by Ulrich Müller
Modified: 2012-09-28 10:43 UTC (History)
2 users (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 Ulrich Müller gentoo-dev 2012-09-01 21:08:02 UTC
When installing icedtea-7.2.3.1, the following warning appears:

    prepcompress: ignoring nonexistent path '/usr/share/doc/icedtea7'

The reason is that /usr/share/doc/icedtea7 is a symlink, but controllable compression can only operate on regular files or directories. The bad path is added to the list by the
    docompress -x /usr/share/doc/${PN}${SLOT}
command in src_install.

However, I wonder what is intended here?
- If the files under /usr/share/doc/${PF} (the symlink's target) should not be
  compressed, then this path should be used as the argument for docompress -x.
- If the intention is that only the symlink should be left alone, then the call
  to docompress could be removed altogether. Compression will ignore symlinks
  anyway.
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2012-09-26 10:00:25 UTC
This is a workaround for compressed symlinks in Portage up to 2.1.11.45 IIRC. Probably should be dropped now if recent Portage warns about it.
Comment 2 Ulrich Müller gentoo-dev 2012-09-27 08:51:08 UTC
(In reply to comment #1)
> This is a workaround for compressed symlinks in Portage up to 2.1.11.45
> IIRC.

Hm, if it was intended as a workaround, I wonder how it could ever have had any effect. prepcompress always ignored symlinks:
<http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=blame;f=bin/misc-functions.sh;h=986264ed8de3f237ed8b1b81c07f19db211dd828;hb=d0089063c457ef2adc7b01e7296c4988edb709a6>
The warning is emitted from within the "for" loop in lines 100 and following, and the relevant condition testing for regular file or directory (line 103) has never been changed.

> Probably should be dropped now if recent Portage warns about it.

Please do.
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2012-09-28 10:43:48 UTC
bug 405327 it was and was fixed in Portage 2.1.10.49, apparently it worked for Andrew. Andrew was also the one to notice bug 405327.

Dropped now. Thanks for the report.