Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507778 - Add a slash to exclude = distfiles in order to prevent local rsync mirrors from excluding the system list
Summary: Add a slash to exclude = distfiles in order to prevent local rsync mirrors fr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-16 03:14 UTC by Jonathan Vasquez (RETIRED)
Modified: 2015-05-23 10:56 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 Jonathan Vasquez (RETIRED) gentoo-dev 2014-04-16 03:14:59 UTC
Hello all,

So I was reading the wiki for setting up my local rsync server and it was working fine until I ran an emerge sync on one of my laptops. I was wondering why emerge --depclean kept saying: "!!! You have no system list".

After doing a bit of research I found the following threads:

http://forums.gentoo.org/viewtopic-t-304191-highlight-system+depclean.html

http://forums.gentoo.org/viewtopic-t-180336-postdays-0-postorder-asc-highlight-exclude-start-25.html#1252549

Basically my exclude line had: exclude = distfiles packages

which actually also excludes the '*packages*' stuff from the /usr/portage directory.

The default information for adding a local rsync mirror is correct in /etc/rsyncd.conf. It's only the information in the wiki that should be updated by adding a slash before or after the distfiles. This will give the proper 'mental' mindset for new users that will naturally follow the previous entry in exclude when adding a new one.

Example a user might assume that because exclude = distfiles
is set like that, that they can just add exclude = distfiles packages
as well, not knowing that the system list will be excluded.

I also know that 'emerge --sync' [/usr/lib/portage/pym/_emerge/actions.py] has hardcoded excludes for /distfiles, /packages, /local. I've attempted to modify this in the rsync/infrastructure wiki but it's a protected file, so I'm opening up this bug here (Didn't know exactly where to put it - in infrastructure or documentation).

https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync#Setting_up_the_server

- jon
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2015-05-23 10:56:19 UTC
The slash was only missing in the 'set up a community mirror' section which is below the 'set up your local rsync server' section, so not sure why that bit you, but it is added now.