Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399595 - sys-apps/portage: docompress -x leads to inappropriate rename of symlink to symlink.bz2
Summary: sys-apps/portage: docompress -x leads to inappropriate rename of symlink to s...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 397801 402213
  Show dependency tree
 
Reported: 2012-01-21 10:35 UTC by Justin Lecher (RETIRED)
Modified: 2012-02-04 23:30 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 Justin Lecher (RETIRED) gentoo-dev 2012-01-21 10:35:48 UTC
I need a symlink like ln -sf en ${ED}/usr/share/doc/${PF}/html. I am using docompress -x /usr/share/doc/${PF}/en but the symlink gets compressed. Is this a bug?
Comment 1 Zac Medico gentoo-dev 2012-01-21 12:13:23 UTC
Does the following command produce the intended result?

  docompress -x /usr/share/doc/${PF}/html
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2012-01-21 12:40:53 UTC
No, still the symlink gets compressed where as the directory not. Probably we should never compress symlinks.
Comment 3 Zac Medico gentoo-dev 2012-01-21 21:35:35 UTC
This should fix it:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e3ab6f288110602d59c7e8fee8ee8c514c7a4329

As a workaround, you do something like this in pkg_preinst:

  rm -f "${ED}"/usr/share/doc/${PF}/html.* 2>/dev/null
  ln -sf en "${ED}"/usr/share/doc/${PF}/html
Comment 4 Zac Medico gentoo-dev 2012-02-04 23:30:10 UTC
This is fixed in 2.1.10.45 and 2.2.0_alpha85.