Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300647 - app-portage/autounmask-0.27 should create /etc/portage if it does not exists
Summary: app-portage/autounmask-0.27 should create /etc/portage if it does not exists
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 398935
Blocks:
  Show dependency tree
 
Reported: 2010-01-12 00:34 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2012-03-05 08:14 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 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-12 00:34:41 UTC
/etc/portage is a trivial basic system directory; autounmask should create it if required. Or use mkdir -p for subdirs it tries to create.

uranus / # autounmask -p =app-emulation/xen-3.2.1

 autounmask version 0.27 (using PortageXS-0.02.09 and portage-2.1.6.13)

 * Using repository: /usr/portage

 * Using package.keywords file: /etc/portage/package.keywords
 * Using package.unmask file: /etc/portage/package.unmask
 * Using package.use file: /etc/portage/package.use
Cannot write to file: /etc/portage/package.keywords at /usr/bin/autounmask line 185.
uranus / # cd /etc/portagexs/
uranus portagexs # ls
categories  certs  init.d
uranus portagexs # cd ..
uranus etc # mkdir portage
uranus etc # autounmask -p =app-emulation/xen-3.2.1

 autounmask version 0.27 (using PortageXS-0.02.09 and portage-2.1.6.13)

 * Using repository: /usr/portage

 * Using package.keywords file: /etc/portage/package.keywords
 * Using package.unmask file: /etc/portage/package.unmask
 * Using package.use file: /etc/portage/package.use

 * Unmasking app-emulation/xen-3.2.1 and its dependencies.. this might take a while..

 * Added '=app-emulation/xen-3.2.1 ~amd64' to /etc/portage/package.keywords
 * Added '=sys-kernel/xen-sources-2.6.31-r10 ~amd64' to /etc/portage/package.keywords
 * Added '=sys-kernel/xen-sources-2.6.31-r10' to /etc/portage/package.unmask
 * Added '=sys-kernel/xen-sources-2.6.29-r4 ~amd64' to /etc/portage/package.keywords
 * Added '=sys-kernel/xen-sources-2.6.29-r4' to /etc/portage/package.unmask
 * Added '=sys-kernel/xen-sources-2.6.18-r12 ~amd64' to /etc/portage/package.keywords
 * Added '=sys-kernel/xen-sources-2.6.18-r11 ~amd64' to /etc/portage/package.keywords
 * Added '=app-emulation/xen-tools-3.2.1 ~amd64' to /etc/portage/package.keywords
 * Restoring files.
 * done!

uranus etc #
Comment 1 James Broadhead 2010-08-16 02:50:04 UTC
It should also convert systems that have package.* files into directories - as autounmask makes a complete mess of single-file setups. (also, directories are easier to maintain, and should be promoted over files)
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2012-03-05 06:09:30 UTC
Why won't fix ?
Comment 3 DEMAINE Benoît-Pierre, aka DoubleHP 2012-03-05 06:10:15 UTC
James, as this bug is closed, you need to create a new bug for your querry.
Comment 4 Pacho Ramos gentoo-dev 2012-03-05 08:14:27 UTC
Because autounmask was dropped (look at the bug this once depends on ;))