unexpected EOF

Hi everybody,

I’ve a strange exit with

if  ! -f mozilla/security/coreconf/Linux$(uname -r|sed -e 's/\-.*//'|grep -o "[0-9]\.[0-9]").mk ]; then
ln -s $(pwd)/mozilla/security/coreconf/Linux2.6.mk $(pwd)/mozilla/security/coreconf/Linux$(uname -r|sed -e 's/\-.*//'|grep -o "[0-9]\.[0-9]").mk
fi

This exits with

...]+ case $OSTYPE in
++ uname -r
++ sed -e 's/\-.*//'
++ grep -o '[0-9]\.[0-9]'
+ '' '!' -f mozilla/security/coreconf/Linux2.6.mk ']'
/var/tmp/rpm-tmp.GYDfU8: line 116: unexpected EOF while looking for matching `"'
error: Bad exit status from /var/tmp/rpm-tmp.GYDfU8 (%build)...]

I say strange because after some changes in spec file this error appeared then i don’t have modify this entry.
Anyone has an idea ?

@+
Posophe

Hi,

First, I editted your post replacing the QUOTE tags by CODE tags. This sets to monospaced characters and makes things more readable
The exit output says it all: there’s something wrong with the matching of single and double quotes, check the syntax.

Weird. If I run the script as is in a terminal window, in a testdir, it reports that it cannot create the link since the source does not exist. And it should, since I have no mozilla folder in my testdir, So, the issue is not in the not-matching of quotes. Which makes me wonder if this is the entire script.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

May help to post the entire SPEC file, or link to it, or something.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPYnN2AAoJEF+XTK08PnB5ZlsP/3DGwGuW1Y7Qo5mfGOihFQDu
2xLO9LXmi+zTvUu1IqxBnl9nqGfffffwv5ys6eUsms+dpMerC/Djc+rLmOnLmfcY
pn0MswwwtTXzXh2QT2i6y0VOfFY7g/fcLfnvrJiba5VCHv2eHKyUennhSTi5HwA2
c59Yh+a/eLpYrNnF8xpjoQMqCISd85eRGq674NzjWnTgjh+ZCkvJ0e/4lVIetRa5
6RkABVXfaOofDf67B2nixL2bKStNNQwc9LZDpFCEp0zcXnrY17uqUMjdYvueJdsY
g8oHEydsBNzth1mWlcP6SQPsJZMJbc6QwA2pvR7fDSftCluX2T2iGV09yGWwt0uX
O/6/DgRK9uqQUpuWhEoiIghCZL31vRukbZq1LW/cQIbSNgv52T6fWa4pVw2qZI4V
Mf08xv/SoPyd8UYUqVMociNAXOKJvXE0viWsXrh4NEBMcpR/4xwEsE/sC0YLSO5n
TkqZwX6/j6T6rriBrttIbo6axDZOB6+Szqj4pUg5Ov6r3Pgo3SGKl/9nwzkNUb8p
g/kpZ7b3GckfoLRNPaz+uwz23EHfuDChDz1CP2ND9Ve5708u0hEuihCtQIsZt//E
fL1azeTQPGtkyWRXElKkCAzUBirl4jzvzpYsF6tPFpZ/8vzX4030dOM+Dw13naX/
EW6oFNQtTJkxlMgiS9s8
=+lIA
-----END PGP SIGNATURE-----

Knurpht: it’s normal you don’t have sources
ab: ok i will post it on mozilla pastebin.

Thanks for your help
http://pastebin.mozilla.org/?dl=1522362

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Okay, not sure on this one. If you replace this entire section with
something insanely basic (‘echo hi’) or remove it entirely do things
progress properly? I’m wondering if there could be a double-quote
earlier on that may be interfering, but then again the ‘bash -x’ output
looks just right so this is a longer shot than I think will pan out
well. Hmmmmmmmm…

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPY88DAAoJEF+XTK08PnB5FowQAKZGTU2ivs4nwZFqtjYuZTSX
+Sb1g72MpUioUGYdgLWidHkGgoetRO88B0hhhk5d5Xn+S1XH9CJnOwoMX6BQpC1G
6YRQ7Q10nStIlaZxgVJPA9GZs2IP417+QM++asdgm2HHJ9leMM+zW/6hrsLt0XmI
toD0e1V+iHp3go1I8QfTq4iRxv0s96yYj/t1D/nXBkwRG4gwhq8NaPr9521M2fId
ZGV3aKz/bqH33z7yHTn0EeHGXSRMCvISZXcQNOKqD4UN53HFDXcNWPUcxTg2nmyx
iGngq5QmbBnptoTCshLhsMaSntzvE1I7x9bLav0/2Yynsel9yZ5NEOl1VrFzDIBU
EBzlunWGUgKeI44lllCo/gm+tY/4KOwY5lP+YO63uz9CRkzKYgt5LMB0dEl3E84j
YN68FHo+DV82FCLLyCOguaYA2/cT7jjAFe6boP0aBIsKCJEdD2qpt+ZaRx11hTP1
fOnJzVLgeF7ylyaIygZ06fefOpDZRxbZnMtHEqDgSyMTW1HPPIamD1pDy4S8F9/v
hSMNCxYNcMEPHJ1LcrynrFN3FNL1Y2zRLlWwqB3pztqECqpM+t7EBAe44+dq8EXk
5Yb+s9G8nHBtiVTCeKuiEDQYInpkrAwRE5D/ZDSdR3iV0ULMcR63Ff0ZfhLt3jLG
UMxO0QjKd2riEsB5jY1x
=Ya3j
-----END PGP SIGNATURE-----

Hi,

I have try with uniquely ln everytime with linux(uname blabla) but it can’t work in case of opensuse 11.4. I have perhaps found solution: replace $(pwd) by $pwd seems to be supported
I give some news but it’s seems to me that was i was doing the first time for being functionnal

It doesn’t work. And for reply at your question i don’t know how using echo in that case but perhaps in writing commands with rpm macros and specifications it would work

Ok problem solved latest snapshot of mozilla release solve security problem. Thanks for all replies