Subject: mk/wrapper turns multiplication * into shell glob
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/20/2006 20:59:24
Check this out:
Originally outputted to console:
gcc ... "-DVENDOR_RELEASE=(((7) * 10000000) + ((0) * 100000) + ((0) * 1000) + 0)" ...
(Notice the quotes around it.)
work.log shows:
(arg-source) push: -DVENDOR_RELEASE=(((7) * 10000000) + ((0) * 100000) + ((0) * 1000) + 0)
...
(logic) pop: -DVENDOR_RELEASE=(((7) * 10000000) + ((0) * 100000) + ((0) * 1000) + 0)
(logic) to: -DVENDOR_RELEASE=(((7) * 10000000) + ((0) * 100000) + ((0) * 1000) + 0)
(logic) push: -DVENDOR_RELEASE=(((7) * 10000000) + ((0) * 100000) + ((0) * 1000) + 0)
...
(cmd-sink) pop: -DVENDOR_RELEASE=(((7) * 10000000) + ((0) * 100000) + ((0) * 1000) + 0)
...
<.> /home/packages/tmp-pkgsrc/wip/xorg-server/work.glacier/.gcc/bin/gcc
-DHAVE_CONFIG_H -I. -I../include -I../Xprint
-I/home/packages/tmp-pkgsrc/wip/xorg-server
/work.glacier/.buildlink/include -DHAVE_DIX_CONFIG_H -DXFree86Server
-DXFree86LOADER "-DVENDOR_STRING=\"The X.Org Foundation\""
"-DVENDOR_RELEASE=(((7) BuiltInAtoms CHANGES Makefile Makefile.am
Makefile.in atom.c atom.lo buildatoms colormap.c colormap.lo cursor.c
cursor.lo devices.c devices.lo dispatch.c dispatch.h dispatch.lo
dixfonts.c dixfonts.lo dixutils.c dixutils.lo events.c events.lo
extension.c extension.lo ffs.c ffs.lo gc.c gc.lo globals.c globals.lo
glyphcurs.c glyphcurs.lo grabs.c grabs.lo initatoms.c initatoms.lo main.c
main.c.orif main.c.orig main.loT pixmap.c privates.c property.c resource.c
swaprep.c swapreq.c tables.c window.c xpstubs.c 10000000) + ((0)
BuiltInAtoms CHANGES Makefile Makefile.am
...
(and so on)
Makefile.am and Makefile.in starts with in AM_CFLAGS:
-DVENDOR_RELEASE="@VENDOR_RELEASE@"
Makefile has:
-DVENDOR_RELEASE="(((7) * 10000000) + ((0) * 100000) + ((0) * 1000) + 0)"
The final quotes add around it (shown at top of this email) was done by
libtool.
Where can the mk/wrapper framework be improved to not modify stuff in
quotes?
I can send-pr this if needed.
Jeremy C. Reed
echo '9,J8HD,fDGG8B@?:536FC5=8@I;C5?@H5B0D@5GBIELD54DL>@8L?:5GDEJ8LDG1' |\
sed ss,s50EBsg | tr 0-M 'p.wBt SgiIlxmLhan:o,erDsduv/cyP'