LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-03-2007, 09:47 AM   #1
daniel.santos
LQ Newbie
 
Registered: Jun 2006
Location: Dallas, TX, USA
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
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.
 
Old 03-07-2007, 05:08 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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
 
Old 03-12-2007, 10:51 AM   #3
Pentagrammer
LQ Newbie
 
Registered: Mar 2007
Location: St.Petersburg,RUSSIA
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
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.
 
Old 03-13-2007, 12:56 AM   #4
daniel.santos
LQ Newbie
 
Registered: Jun 2006
Location: Dallas, TX, USA
Distribution: Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"emerge par2cmdline" fails.. oldsko0l Linux - Software 0 11-03-2006 04:33 AM
trouble with gentoo "emerge" mrlankey0486 Linux - Software 2 08-29-2006 07:11 AM
Error with evolution after "emerge -u world" PGDubbin Linux - Software 4 01-28-2005 08:41 AM
What does "Syntax error in parameters or arguments" mean with Evolution mr_matti Linux - Software 3 10-26-2004 02:19 PM
Gentoo problem with mirrors when running "emerge system" Snerkel Linux - Distributions 2 10-18-2004 01:46 PM


All times are GMT -5. The time now is 07:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration