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 667659 - echo -e in to make .service file is not portable (OS X)
echo -e in to make .service file is not portable (OS X)
Status: RESOLVED FIXED
Product: dconf
Classification: Core
Component: general
git master
Other Mac OS
: Normal normal
: ---
Assigned To: dconf-maint
dconf-maint
: 720402 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-01-10 21:54 UTC by jessevdk@gmail.com
Modified: 2013-12-13 16:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: stop non-portable use of 'echo -e' (960 bytes, patch)
2012-02-05 20:38 UTC, Allison Karlitskaya (desrt)
committed Details | Review

Description jessevdk@gmail.com 2012-01-10 21:54:04 UTC
dconf uses echo -e to generate the ca.desrt.dconf.service file, however this is not very portable.  The echo utility on OS X for example does not support -e. A possible solution would be to use bash echo builtin instead:

ca.desrt.dconf.service: Makefile
$(AM_V_GEN) bash -c "echo -e '[D-BUS Service]\nName=ca.desrt.dconf\nExec=${libexecdir}/dconf-service'" > $@
Comment 1 Allison Karlitskaya (desrt) 2012-02-05 20:38:49 UTC
Created attachment 206860 [details] [review]
build: stop non-portable use of 'echo -e'

Mac OS echo doesn't like '-e' so avoid using it in our Makefile.
Comment 2 Allison Karlitskaya (desrt) 2012-02-05 20:39:04 UTC
Attachment 206860 [details] pushed as ebc1699 - build: stop non-portable use of 'echo -e'
Comment 3 jessevdk@gmail.com 2012-02-06 10:05:30 UTC
Thanks!
Comment 4 Allison Karlitskaya (desrt) 2013-12-13 16:24:50 UTC
*** Bug 720402 has been marked as a duplicate of this bug. ***