Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131030 - emerge --sync deleting my packages
Summary: emerge --sync deleting my packages
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: AMD64 Linux
: High trivial (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 181949 187293
  Show dependency tree
Reported: 2006-04-23 14:50 UTC by Henk
Modified: 2007-07-08 21:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Henk 2006-04-23 14:50:05 UTC

since I have both amd64 and amd32 systems I decided to change the default package directory from PKGDIR=${PORTDIR}/packages to PKGDIR=${PORTDIR}/packages-64 and PKGDIR=${PORTDIR}/packages-32 as both systems share the same portage tree.  I then ran emerge -eb world on both to fill the packages-directories.

After an emerge --sync however all my packages got deleted.

A warning should be added to make.conf.example that if you change PKGDIR you better should place them outside the portage tree.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-23 14:56:09 UTC
How about setting PORTAGE_RSYNC_EXTRA_OPTS properly - see man make.conf and man rsync. :)
Comment 2 Zac Medico gentoo-dev 2006-04-23 15:18:40 UTC
(In reply to comment #0)
> After an emerge --sync however all my packages got deleted.

Please post the output of `emerge --info`.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2006-04-24 05:03:51 UTC
No need for --info, just the fact that --sync will wipe $PORTDIR by default not being explicitly documented. Just add a note to make.conf.example and the manpage for $DISTDIR and $PKGDIR.
Comment 4 Zac Medico gentoo-dev 2006-09-12 10:04:35 UTC
I with PKGDIR and DISTDIR didn't default to being *inside* the portage tree.  Otherwise, people would probably never think to store anything valuable there.  The --sync docs already say "Note that any changes you have made to the portage tree will be erased".
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2007-01-10 02:39:07 UTC
Can anyone come up with a simple sentence for the docs to describe this?
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-07-01 02:31:04 UTC
(In reply to comment #5)
> Can anyone come up with a simple sentence for the docs to describe this?

Hmmm? Like, if you set non-default PKGDIR inside PORTDIR, make sure that you have adjusted PORTAGE_RSYNC_EXTRA_OPTS to --exclude that directory accordingly? Shrug.
Comment 7 Zac Medico gentoo-dev 2007-07-01 17:10:57 UTC
I've updated the PORTDIR, PKGDIR, and DISTDIR docs.
Comment 8 Zac Medico gentoo-dev 2007-07-08 21:37:31 UTC
This has been released in 2.1.3_rc7.