Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406749 - portage-2.1.10.49 unmerge leaves orphan files behind
Summary: portage-2.1.10.49 unmerge leaves orphan files behind
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on: 382199
Blocks: 409383
  Show dependency tree
 
Reported: 2012-03-03 10:06 UTC by Ulrich Müller
Modified: 2012-03-23 01:16 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 Ulrich Müller gentoo-dev 2012-03-03 10:06:35 UTC
When unmerging app-dicts/aspell-es-0.50.2, portage-2.1.10.49 fails to unmerge a file named español.alias and leaves it behind as an orphan.

# emerge -C -v app-dicts/aspell-es
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

 app-dicts/aspell-es
    selected: 0.50.2 
   protected: none 
     omitted: none 

All selected packages: app-dicts/aspell-es-0.50.2

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in:  5 4 3 2 1 
>>> Unmerging app-dicts/aspell-es-0.50.2...
No package files given... Grabbing a set.
<<<          obj /usr/share/doc/aspell-es-0.50.2/info.xz
<<<          obj /usr/share/doc/aspell-es-0.50.2/README.xz
<<<          obj /usr/lib64/aspell-0.60/spanish.alias
<<<          obj /usr/lib64/aspell-0.60/esponol.alias
--- !found   obj /usr/lib64/aspell-0.60/español.alias
<<<          obj /usr/lib64/aspell-0.60/es.rws
<<<          obj /usr/lib64/aspell-0.60/es.multi
<<<          obj /usr/lib64/aspell-0.60/es.dat
<<<          dir /usr/share/doc/aspell-es-0.50.2
--- !empty   dir /usr/share/doc
--- !empty   dir /usr/share
--- !empty   dir /usr/lib64/aspell-0.60
--- !empty   dir /usr/lib64
--- !empty   dir /usr

 * GNU info directory index is up-to-date.
# ls /usr/lib64/aspell-0.60/esp*
/usr/lib64/aspell-0.60/español.alias
# cd /usr/lib64/aspell-0.60; ls esp* | hexdump -C
00000000  65 73 70 61 f1 6f 6c 2e  61 6c 69 61 73 0a        |español.alias.|
0000000e

This is with LANG=de_DE.ISO-8859-1 as locale setting. Unmerging aspell-es on another system that still had portage-2.1.10.11 (and same locale settings) succeeded without problems. Therefore marking this as regression.
Comment 1 Zac Medico gentoo-dev 2012-03-03 10:12:44 UTC
This is expected as a result of migration to UTF-8 encoding for all locales, as mentioned in bug 382199, comment #8.
Comment 2 Ulrich Müller gentoo-dev 2012-03-03 10:57:37 UTC
Maybe both translations (utf-8 and user's locale) could be tried when unmerging files with non-ascii characters?
Comment 3 Zac Medico gentoo-dev 2012-03-03 11:06:39 UTC
It's probably not worth the trouble, given that it's only a transitional issue.
Comment 4 Ulrich Müller gentoo-dev 2012-03-03 17:46:39 UTC
(In reply to comment #3)
> It's probably not worth the trouble, given that it's only a transitional
> issue.

Indeed, and probably there are only few packages affected. So feel free to close this bug.

BTW, when I reinstall the package, portage now renames mentioned file to espa\ufffdol.alias. Maybe it would be more consequent to abort the merge in case a bad filename is encountered, instead of installing files with such garbled names?
Comment 5 Zac Medico gentoo-dev 2012-03-04 07:02:52 UTC
Well, it seems a little harsh to abort. We could add a layout.conf setting to indicate that ebuilds from a given repo should abort if they install file names that aren't valid UTF-8. A QA Notice could be triggered when it's not configured to abort.
Comment 6 Ulrich Müller gentoo-dev 2012-03-04 11:38:02 UTC
layout.conf looks like overkill, but I think a QA notice would be appropriate.
Comment 8 Zac Medico gentoo-dev 2012-03-18 00:20:49 UTC
This QA Notice is in 2.2.0_alpha91, but I'll leave this bug open until it's in an unmasked release.
Comment 9 Zac Medico gentoo-dev 2012-03-23 01:16:33 UTC
This is fixed in 2.1.10.50.