Re: undefined symbol: REP_CACHE_DB_SQL
From: Alexander Skwar <alexanders.mailinglists+nospam_at_gmail.com>
Date: Wed, 4 Aug 2010 21:23:50 +0200
Hi.
2010/8/4 Daniel Shahaf <d.s_at_daniel.shahaf.name>
> No. Â That file is auto-generated from libsvn_fs_fs/*.sql (IIRC, by
Hm. I ran transform_sql.py manually like so:
cd build
or
or
or
In all these cases, the generated "foo.*" file is fine.
Ah!
--($ ~/Source/subversion-1.6.12/build)-- grep -r transform_sql ..
It's *NOT* the Python .py file which is run, but the .sh Shell
And it's this script, which doesn't work!
--($ ~/Source/subversion-1.6.12/build)-- /bin/sh -x ./transform_sql.sh
What you can see here, is that varname is already wrong!
From the sh file:
varname=`basename $1 | tr "[a-z]" "[A-Z]" | tr "-" "_" | tr "." "_"`
Okay. It's using "tr", which is:
And now pay attention:
--($ ~/Source/subversion-1.6.12/build)--
--($ ~/Source/subversion-1.6.12/build)-- basename $E
--($ ~/Source/subversion-1.6.12/build)-- basename $E | tr "[a-z]" "[A-Z]"
And now I use GNU tr:
--($ ~/Source/subversion-1.6.12/build)-- basename $E | gtr "[a-z]" "[A-Z]"
Hmmmm.....
It's not a GNUism. If I use /usr/bin/tr instead of /usr/xpg6/bin/tr or
Seeing that "tr" doesn't always work the same way, maybe it would
--($ ~/Source/subversion-1.6.12/build)-- date | sed 'y/[a-z]/[A-Z]/'
-> sed didn't work
--($ ~/Source/subversion-1.6.12/build)-- date | /usr/bin/awk '{print
-> awk also didn't work
But perl works.
--($ ~/Source/subversion-1.6.12/build)-- date | perl -pe 'tr/a-z/A-Z/; '
And it would allow to combine the seperate tr commands, eg.:
varname=`basename $1 | perl -pe 'tr/a-z/A-Z/; tr/-/_/; tr/./_/;'`
Does it make sense to file this as a bug?
cheers,
Alexander
-- ↯   Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/%c2   ↯ ↯ Chat (Jabber/Google Talk) ↣ a.skwar_at_gmail.com , AIM: alexws77 ↯Received on 2010-08-04 21:24:51 CEST |
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.