[Bug 567086] Review Request: VXL - C++ Libraries for Computer Vision Research and Implementation

bugzilla at redhat.com bugzilla at redhat.com
Sun Sep 19 11:06:57 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=567086

--- Comment #16 from Mario Ceresa <mrceresa at gmail.com> 2010-09-19 07:06:55 EDT ---
Created attachment 448282
  --> https://bugzilla.redhat.com/attachment.cgi?id=448282
Fix soname problem

Hello Thomas, hello Peter,
I noticed that the new spec generates a lot of new libraries with improper
soname. Instead of fixing them manually (they are 78!!) I tried a little bit of
bash magic, which I include in the attached script.

The idea is that it generate a fixing bash command for each wrong lib detected,
something like:

echo SET_TARGET_PROPERTIES(vcsl PROPERTIES ${VXL_LIBRARY_PROPERTIES}) >>
vxl-1.13.0/core/vcsl/CMakeLists.txt

Actually I found my magic to be a bit rusty, so sometimes it outputs a wrong
version:

echo SET_TARGET_PROPERTIES(${vgl_sources}) PROPERTIES
${VXL_LIBRARY_PROPERTIES}) >> vxl-1.13.0/core/vgl/CMakeLists.txt

where the target is "${vgl_sources}" instead of "vgl".
It happens because the awk regex in 

awk '/ADD_LIBRARY\([^$]+/ {print $2}'

matchs correctly ADD_LIBRARY( vgl ${vgl_sources}) but not ADD_LIBRARY(vgl
${vgl_sources}) (notice the extra space after "add_library(" )

If you have any idea on how to go on from this, we might finish the package
soon!

Thanks and regards

Mario

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list