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

Bug 399595

Summary: sys-apps/portage: docompress -x leads to inappropriate rename of symlink to symlink.bz2
Product: Portage Development Reporter: Justin Lecher (RETIRED) <jlec>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 397801, 402213    

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.