LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Solution: Gentoo - emerge --sync fails with "syntax error" (https://www.linuxquestions.org/questions/linux-software-2/solution-gentoo-emerge-sync-fails-with-syntax-error-534186/)

daniel.santos 03-03-2007 09:47 AM

Solution: Gentoo - emerge --sync fails with "syntax error"
 
I'm just posting this because google didn't turn up anything on it (aside from the emerge source code :) )

Problem:
Code:

/root# emerge --verbose --sync
>>> Starting rsync with rsync://141.219.155.230/gentoo-portage...
>>> Checking server timestamp ...
rsync: --filter=H_**/files/digest-*: unknown option
rsync error: syntax or usage error (code 1) at main.c(1013)

!!! Rsync has reported that there is a syntax error. Please ensure
!!! that your SYNC statement is proper.
!!! SYNC=rsync://rsync.namerica.gentoo.org/gentoo-portage

Soulution:
rsync was out of date. I did an emerge on rsync and everything was happy.

stress_junkie 03-07-2007 05:08 PM

Maybe --verbose is supposed to follow --sync. This page has the following example.
http://www.gentoo.org/doc/en/handboo...?part=1&chap=6
Quote:

# emerge --sync --quiet

Pentagrammer 03-12-2007 10:51 AM

Quote:

Originally Posted by daniel.santos
I'm just posting this because google didn't turn up anything on it (aside from the emerge source code :) )

Problem:
Code:

/root# emerge --verbose --sync
>>> Starting rsync with rsync://141.219.155.230/gentoo-portage...
>>> Checking server timestamp ...
rsync: --filter=H_**/files/digest-*: unknown option
rsync error: syntax or usage error (code 1) at main.c(1013)

!!! Rsync has reported that there is a syntax error. Please ensure
!!! that your SYNC statement is proper.
!!! SYNC=rsync://rsync.namerica.gentoo.org/gentoo-portage

Soulution:
rsync was out of date. I did an emerge on rsync and everything was happy.


Hmmm, get the same situation after emerge --sync with new profile 2006.1/server/ on old server with 2005.0 make.profile.

Trouble was solved after following actions:
1. emerge --oneshot sys-libs/ncurses
2. emerge rsync
3. etc-update

Thats all. Success.

daniel.santos 03-13-2007 12:56 AM

Quote:

Originally Posted by stress_junkie
Maybe --verbose is supposed to follow --sync. This page has the following example.
http://www.gentoo.org/doc/en/handboo...?part=1&chap=6

naw, any descent app shouldn't care about what order the options are in. Also, if they are using the standard getopts function (or even command for shell scripts), you can put any number of no-arg options after a single dash. getopts doesn't support the long form options however (i.e., --option-name)... hmm, actually, that's on HP-UX, Linux stuff is always far superior.

This problem was clearly caused by a compatibility issue with an older version of rsync and a newer version of portage. Unfortunately, I don't feel like reporting it as a dependency bug -- researching it, reproducing it and then dealing with the pain in the ass "RTFM-ers" that often troll bug databases, closing bugs for stupid reasons and bitching if you re-open them. Sadly, there are times when it just doesn't feel worth the effort.

All I care about is, that if somebody else has that problem, Google can give them a solution.


All times are GMT -5. The time now is 08:25 AM.