After doing an emerge --sync today, followed by an eselect news read all, I noticed the following bulletin regarding versions of layman from 1.3.0 on:
- Code: Select all
2010-02-28-layman-storage-path-change
Title Layman storage path changed from version 1.3.0 on
Author Sebastian Pipping <sping@gentoo.org>
Posted 2010-02-28
Revision 1
Layman has been using /usr/local/portage/layman to store
overlay checkouts from version 1.2.3 on. As that path
was violating the concept of keeping portage away from
/usr/local the default of this storage location moves to
/var/lib/layman
from version 1.3.0 on. If you have never touched the file
/etc/layman/layman.cfg manually before, you may be tempted to let
tools like etc-update or dispatch-conf blindly accept this new version
of layman.cfg.
As that would hide all your currently installed overlays from layman
it's probably not what you want. Your options are:
A) Moving
1. Move your current content to /var/lib/layman before upgrading.
3. Update PORTDIR_OVERLAY in /var/lib/layman/make.conf accordingly.
2. Make /etc/make.conf source /var/lib/layman/make.conf.
B) A symlink
Put a symlink to your current storage location at /var/lib/layman
before upgrading layman.
C) Configuration
Reject the path change for layman.cfg when running tools like
etc-update or dispatch-conf blindly. Be aware with this way you'll
have to do it for each layman update again.
PS: This news item is a reaction to users having run into this problem
(see bug #306233). Thanks to Volker Hemmann for reporting.
As I hadn't merged layman for a while and my current version was still in the 1.2.* series, I did the following:
1. cp -r /usr/local/portage/layman /var/lib/layman
2. Changed /var/lib/layman/make.conf from:
- Code: Select all
PORTDIR_OVERLAY="
/usr/local/portage/layman/sabayon
/usr/local/portage/layman/kde
$PORTDIR_OVERLAY
"
to:
- Code: Select all
PORTDIR_OVERLAY="
/var/lib/layman/sabayon
/var/lib/layman/kde
$PORTDIR_OVERLAY
"
Of course your contents of /var/lib/layman/make.conf will depend on which overlays you have added. In my case, as you can see, I have the Sabayon overlay and the KDE Testing overlay added.
3. Changed the following line in /etc/make.conf from:
- Code: Select all
source /usr/local/portage/layman/make.conf
to:
- Code: Select all
source /var/lib/layman/make.conf
4. Changed the following line in /etc/layman/layman.cfg from:
- Code: Select all
storage : /usr/local/portage/layman
to:
- Code: Select all
storage : /var/lib/layman
(Actually I don't think Step 4 is necessary because, once you have merged layman-1.3.0 or greater, etc-update or despatch-conf will update /etc/layman/layman.cfg anyway, but I didn't want to take any chances.)
5. emerge -1v =layman-1.3.2-r1
6. etc-proposals
(If you are not familiar with etc-proposals then use etc-update or despatch-conf to update the config files.)
7. layman -S
8. eix-update
9. rm -rf /usr/local/portage/layman

