emerge-webrsync does not work on macos.
First, Mac OS X doesn't have GNU date and so
`date -d "-$attempts day"` doesn't work. It should be
branched by $USERLAND variable. Second, Mac OS X
doesn't have wget but curl, so it should check curl
in addition to wget. Third, Mac OS X doesn't have root
group and so chown -R root:root fails with error.
(chown -R 0:0 works -- it is interpreted as root:wheel
on MacOS X though)
I'll attach a patch to fix them.
Created attachment 35907 [details, diff]
Using fetchcommand="$(/usr/lib/portage/bin/portageq FETCHCOMMAND)" instead is a better solution imo, considering it's the user's defined fetcher.
Would require a few tweaks of course, but it's a cleaner (and simpler to maintain) solution imo.
covered by the sync refactoring which will obsolete `emerge-webrsync`.
*** Bug 57879 has been marked as a duplicate of this bug. ***
Created attachment 36576 [details, diff]
please take this patch for a spin- it's basically usata's patch, only modified
to use FETCHCOMMAND's usual distdir/file/uri .
It'll be pushed into cvs in the near future, so please test it (both bsd and
*** Bug 56775 has been marked as a duplicate of this bug. ***
Created attachment 36632 [details, diff]
Adjusted the last patch to curl
The last patch doesn't work (missing $DISTDIR in several places).
Please use this patch instead.
FETCHCOMMAND="/usr/bin/curl ..." didn't work properly when
the first attempt had failed because curl saved "Not found" page as
portage-20040801.tar.bz2. I added ugly hack to use file
in order to check portage-YYYYMMDD.tar.bz2 is bzip2 compressed
file. I'm not happy with it but emerge-webrsync aborts without it.
Hmm. I did miss a couple of things, didn't I? :-/
Couple of tweaks here and there, but your additions will end up in pre14.
Created attachment 36652 [details, diff]
wget is broken with diff2; this is a revised version of diff2 that is
happy with both wget and curl.
Released in pre17 iirc.