On Tue, 10 Apr 2012, Jim Cromie wrote:

hi all,

Ive built and installed -rc12 on  fedora & ubuntu boxes, -in_place is
not working.
All uses also had -dir, maybe the combo is problematic.

Not working in what way? I just tried it on a small example (a directory that contained three files) and it worked fine.

the distro version on fedora is working, as is Nicolas Palix's package
for ubuntu.
The "apparent" difference is PCRE support, though that doesnt seem
very pertinent.

Did one come from a fedora package and the other from us? If so, I guess it is a standard problem - the coccinelle build process can't know where other packages with the same name have been installed. On the other hand if both versions came from us, then maybe it is because a lot of things have changed in the make file. Arie will have to look into it, but he may be travelling today.

julia

Also, the /usr/local installation seems to be confused - its reporting -rc7,
which I had installed previously on the fedora box.
IIRC, I saw the same confusion on ubuntu, and deleted
/usr/local/share/coccinelle
to solve that problem.

[jimc@groucho linux-2.6]$ uname -a
Linux groucho.jimc.earth 3.3.0-4.fc16.x86_64 #1 SMP Tue Mar 20
18:05:40 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[jimc@groucho linux-2.6]$

[jimc@groucho linux-2.6]$ which -a spatch
/usr/local/bin/spatch
/usr/bin/spatch

[jimc@groucho linux-2.6]$ /usr/bin/spatch -version
spatch version 1.0.0-rc9 with Python support and with PCRE support

[jimc@groucho linux-2.6]$ /usr/local/bin/spatch -version
spatch version 1.0.0-rc7 with Python support and with Str regexp support

[jimc@groucho linux-2.6]$ /usr/local/bin/spatch.opt -version
spatch version 1.0.0-rc7 with Python support and with Str regexp support

[jimc@groucho coccinelle-1.0.0-rc12]$ ./spatch -version
spatch version 1.0.0-rc12 with Python support and with Str regexp support


jimc@chumly:~/projects/lx/linux-2.6$ uname -a
Linux chumly 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 17:34:21 UTC
2012 i686 i686 i386 GNU/Linux
jimc@chumly:~/projects/lx/linux-2.6$ which -a spatch
/usr/local/bin/spatch
/usr/bin/spatch
jimc@chumly:~/projects/lx/linux-2.6$ spatch -version
spatch version 1.0.0-rc12 with Python support and with Str regexp support
jimc@chumly:~/projects/lx/linux-2.6$ /usr/bin/spatch -version
spatch version 1.0.0-rc12 with Python support and with PCRE support

FWIW, I did NOT try building with PCRE yet.

is this a known problem ?
I also didnt try github version.

tia
Jim
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to