[opensuse-packaging] EOF Error while packagin rkhunter
Hello Mates, i'm trying to package the new rkhunter. But i get: + install -Dm750 /usr/src/packages/SOURCES/rkhunter.cron /usr/src/packages/BUILDROOT/rkhunter-1.3.6-1.x86_64/etc/cron.daily/suse.de- rkhunter /var/tmp/rpm-tmp.UO5maQ: line 69: unexpected EOF while looking for matching Does anyone know why this file is false? -- Sincerely yours Sascha Manns open-slx GmbH openSUSE Member openSUSE Community & Support Agent openSUSE Ambassador Web: http://www.open-slx.de openSUSE Marketing Team Web: http://www.open-slx.com openSUSE Build Service openSUSE Medical Team Web: http://saschamanns.gulli.to Blog: http://saigkill.wordpress.com ClaimID: http://claimid.com/saigkill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 30/11/09 14:29, Sascha 'saigkill' Manns wrote:
Hello Mates,
i'm trying to package the new rkhunter. But i get: + install -Dm750 /usr/src/packages/SOURCES/rkhunter.cron /usr/src/packages/BUILDROOT/rkhunter-1.3.6-1.x86_64/etc/cron.daily/suse.de- rkhunter /var/tmp/rpm-tmp.UO5maQ: line 69: unexpected EOF while looking for matching
Looks like you have a typo in the %install section. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello, On Mon, 30 Nov 2009, Cristian Rodríguez wrote:
On 30/11/09 14:29, Sascha 'saigkill' Manns wrote: [..]
/var/tmp/rpm-tmp.UO5maQ: line 69: unexpected EOF while looking for matching
Looks like you have a typo in the %install section.
Typically a missing/additional ' or " or { or } or messed up escapes of these. Have you changed the 'sed' command? That one can be tricky. If you build locally, have a look at the /var/tmp/build-root/var/tmp/rpm-tmp.<string> shell-script where the error occurs. HTH, -dnh -- "I also need a longer attention sp- Ooh! Feet!" -- Loz Pycock -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Dienstag 01 Dezember 2009 14:25:52 wrote David Haller:
Hello,
On Mon, 30 Nov 2009, Cristian Rodríguez wrote:
On 30/11/09 14:29, Sascha 'saigkill' Manns wrote:
[..]
/var/tmp/rpm-tmp.UO5maQ: line 69: unexpected EOF while looking for matching
Looks like you have a typo in the %install section.
Typically a missing/additional ' or " or { or } or messed up escapes of these.
Have you changed the 'sed' command? That one can be tricky. If you build locally, have a look at the /var/tmp/build-root/var/tmp/rpm-tmp.<string> shell-script where the error occurs.
HTH, -dnh
I've found the Error. My value was: sed "s|^PREFIX*|PREFIX="/usr|g; \ ........sed ----" So the first " opens and the next " closes this. Now i've fixed this. THX. -- Sincerely yours Sascha Manns open-slx GmbH openSUSE Member openSUSE Community & Support Agent openSUSE Ambassador Web: http://www.open-slx.de openSUSE Marketing Team Web: http://www.open-slx.com openSUSE Build Service openSUSE Medical Team Web: http://saschamanns.gulli.to Blog: http://saigkill.wordpress.com ClaimID: http://claimid.com/saigkill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello, On Tue, 01 Dec 2009, Sascha 'saigkill' Manns wrote:
I've found the Error. My value was: sed "s|^PREFIX*|PREFIX="/usr|g; \ ........sed ----" So the first " opens and the next " closes this. Now i've fixed this.
That should maybe be a PREFIX=\"%{_prefix}\" anyway. If you don't need to expand shell-variables inside the sed args, you could use '' for the outer quoting, and plain "" inside. Use multiple -e '...' and -e "..." as needed, if you need to expand inside one command. Or create a sed-script, and apply that with sed -f sedscript targetfile. Using "" as outer quotes is the second-most fragile version (no quotes, only escapes is even worse ;) replace first 'o' with the string '\1': echo 'foo' | sed s/\\\(o\\\)/\\\\1/ echo 'foo' | sed "s/\(o\)/\\\1/" echo 'foo' | sed 's/\(o\)/\\1/' Inside a sed-script, it's like inside '', but you can still use the single quotes. So, stuff like -e 's/$foo/$foo'"'"'s dog/' becomes the simple s/$foo/$foo's dog/; inside the script. Caveat: you don't have access to shell-variables. HTH, -dnh -- Well, of course it worked. You made the ritual blood sacrifice. If you bleed on a machine while working on it, it will work. Unless it doesn't. In which case, you need someone else to bleed on it as well. -- Wayne Pascoe -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Cristian Rodríguez
-
David Haller
-
Sascha 'saigkill' Manns