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

Bug 330097

Summary: app-admin/perl-cleaner-2.2 doesn't work properly when /var/db/pkg is a symlink
Product: Gentoo Linux Reporter: Maciej Grela <thermal>
Component: [OLD] DevelopmentAssignee: Gentoo Perl team <perl>
Status: VERIFIED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes perl-cleaner when /var/db/pkg is a symlink
Fixes perl-cleaner when /var/db/pkg is a symlink

Description Maciej Grela 2010-07-27 17:11:56 UTC
Hi,

The perl-cleaner script doesn't work properly when /var/db/pkg is a symlink (like in the case of my system). The attached trivial patch needs to be applied.

Reproducible: Always
Comment 1 Maciej Grela 2010-07-27 17:13:32 UTC
Created attachment 240351 [details, diff]
Fixes perl-cleaner when /var/db/pkg is a symlink
Comment 2 Maciej Grela 2010-07-27 17:15:45 UTC
Created attachment 240353 [details, diff]
Fixes perl-cleaner when /var/db/pkg is a symlink
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2010-08-02 07:35:10 UTC
- for content in $(find ${PKG_DBDIR} -path "*/-MERGING-*" -prune -o -name CONTENTS -print ) ; do
+ for content in $(find -L ${PKG_DBDIR} -path "*/-MERGING-*" -prune -o -name CONTENTS -print ) ; do

will be in perl-cleaner-2.3
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2010-08-02 14:17:14 UTC
In the tree. Please test.
Thanks
Comment 5 Maciej Grela 2010-08-02 19:22:50 UTC
Works in my case.