Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479454 - app-portage/layman-2.0.0 - rsync removes metadata/layout.conf
Summary: app-portage/layman-2.0.0 - rsync removes metadata/layout.conf
Status: RESOLVED UPSTREAM
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Brian Dolbec (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-02 03:15 UTC by Guy
Modified: 2013-08-03 17:02 UTC (History)
1 user (show)

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 Guy 2013-08-02 03:15:16 UTC
layman-2.0.0 now provides a message indicating:

emerge -puNDv --with-bdeps=y --keep-going @world
Thu Aug  1 23:03:20 EDT 2013
!!! Repository 'zugaina' is missing masters attribute in '/var/lib/layman/zugaina/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility


For external overlays such as zugaina, layman uses rsync during 'layman -s zugaina'

The current rsync statement used to sync the zugaina overlay is: rsync -rlptDvz --progress --delete --delete-after --timeout=180 --exclude=distfiles/* --exclude=local/* --exclude=packages/* rsync://gentoo.zugaina.org/zugaina-portage/ /var/lib/layman/zugaina

There should probably be an option added: --exclude=metadata/layout.conf


Note that none of the other methods {i.e. git} used for syncing external overlays appear to delete 'metadata/layout.conf'.
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2013-08-02 14:54:03 UTC
The reason rsync deletes the file is because it is not included in the overlay.  That is a bug in the overlay, not layman.  It is due to recent changes in portage that are more strict about those things.

Git does not "SYNC" the directory if you make changes.  It tries to merge the changes made upstream into your checkout.  It is a version control system.  Rsync is a synchronizing file transfer system.

You can add your --exlcude=metadata/layout.conf to layman's /etc/layman/layman.cfg file under rsync_sync_options to fix the problem locally.

You should also report the bug to zugaina about the missing layout.conf file.  Also to any other overlay that it is missing in.
Comment 2 Guy 2013-08-03 16:41:06 UTC
(In reply to Brian Dolbec from comment #1)

> You can add your --exlcude=metadata/layout.conf to layman's
> /etc/layman/layman.cfg file under rsync_sync_options to fix the problem
> locally.
> 
> You should also report the bug to zugaina about the missing layout.conf
> file.  Also to any other overlay that it is missing in.

Thank you for the clarification and advice. I did also email ycarus at zugaina as well.

Your help is much appreciated.
Comment 3 Guy 2013-08-03 17:02:05 UTC
For anyone else who's interested:

In file:
/etc/layman/layman.cfg

under section:
#-----------------------------------------------------------
# Command additional options


I added the line:
rsync_syncopts : --exclude=metadata/layout.conf

The above assumes you've already updated /var/lib/layman/zugaina/metadata/layout.conf with "masters = gentoo".