After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 127885 - post-install of GConf breaks make ...
post-install of GConf breaks make ...
Status: RESOLVED FIXED
Product: GARNOME
Classification: Deprecated
Component: general
unspecified
Other opensolaris
: High blocker
: ---
Assigned To: Jeff Waugh
garnome list
Depends on:
Blocks:
 
 
Reported: 2003-11-25 11:55 UTC by Jonas Jonsson
Modified: 2005-08-15 01:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
How about this patch? Can't test it since I don't have a real sh to test with (549 bytes, patch)
2003-12-15 00:25 UTC, Jens Bech Madsen
none Details | Review

Description Jonas Jonsson 2003-11-25 11:55:02 UTC
gmake[3]: Leaving directory
`/home/jonas/hacking-0.28.1/gnome/GConf/work/main.d/GConf-2.4.0.1'
 ==> Configuring cross-prefix GARNOME compatibility...
if [ -x "`which gconftool-1 > /dev/null`" ]; then \
        echo we have gc1; \
        export GC1=$(dirname `gconftool-1 --get-default-source | cut -d :
-f 3`); \
        echo "xml:readonly:$GC1/gconf.xml.mandatory" >>
/opt/gnome-2.6/etc/gconf/2/path ; \
        echo "xml:readonly:$GC1/gconf.xml.defaults" >>
/opt/gnome-2.6/etc/gconf/2/path ; \
fi
/bin/sh: syntax error at line 1: `(' unexpected
gmake[2]: *** [post-install] Error 2
gmake[2]: Leaving directory `/home/jonas/hacking-0.28.1/gnome/GConf'
gmake[1]: *** [../../gnome/GConf/cookies/main.d/install] Error 2
gmake[1]: Leaving directory `/home/jonas/hacking-0.28.1/gnome/metacity'
gmake: *** [../../gnome/metacity/cookies/main.d/install] Error 2
jonas@brusen:48~/hacking-0.28.1/meta/gnome-desktop>
Comment 1 the_h1ghlander 2003-11-28 08:09:50 UTC
/bin/sh on Solaris is not bash, so the construct using $(`cmd`) won't
work. Change the script to use bash.
Comment 2 Jens Bech Madsen 2003-12-15 00:25:03 UTC
Created attachment 22446 [details] [review]
How about this patch? Can't test it since I don't have a real sh to test with
Comment 3 alexander.winston 2004-01-28 06:48:41 UTC
I'll try running GARNOME with dash overnight. (Dash is the Debian
Almquist Shell, which is a very minimal and POSIX compliant shell that
is "useful for checking that a script uses only POSIX syntax."

Adding the portability keyword.
Comment 4 alexander.winston 2004-01-28 06:56:56 UTC
Actually . . . there was no need for me to compile the whole thing, so
I just copied and pasted the command into dash and it worked just fine
(the output was "/etc/gconf").

Adding the PATCH keyword and upgrading the priority level to high.
Comment 5 alexander.winston 2004-01-28 07:10:58 UTC
Okay, actually(!) . . .

The problem is not the lack of POSIX compliance in the script but the
existence of an extraneous $ at the beginning of the $( thingy,
because bash stumbles as well.

There seem to be three instances of this:


$ grep -rin \$\$\( garnome-0.29.1
garnome-0.29.1/Makefile:18:     @echo "$@ started at $$(date)" >>
$(BUILDLOG)
garnome-0.29.1/Makefile:22:     @echo "$@ completed at $$(date)" >>
$(BUILDLOG)
garnome-0.29.1/platform/GConf/Makefile:26:              export
GC1=$$(dirname `gconftool-1 --get-default-source | cut -d : -f 3`); \


So, which scripting extraordinaire wants to make (pun unintended, I
swear!) a patch?
Comment 6 Malcolm Tredinnick 2004-02-14 10:16:40 UTC
Alex: the double $$ is because 'make' eats one of them. There is no
mystery (or bug) there.

This bug appears to be obsolete, since there is no longer any code
like this in garnome/gnome/GConf/Makefile. However, I am reluctant to
close it myself, since I am not a garnome user. The existing
GConf/Makefile stuff looks highly portable, though (assuming you are
using GNU make).
Comment 7 Malcolm Tredinnick 2004-02-14 10:22:52 UTC
Talked to Jeff. Confirmed this is indeed fixed. Closing.