site  contact  subhomenews

vercmp failure fix

May 11, 2013 — BarryK
Broomdodger discovered a problem with deps for 'phantomjs' in Precise pup. The problem was a version comparison in /usr/local/petget/dependencies.sh, like this:

if vercmp 2.2.1 ge 2.2~2011week36; then echo 'greater'; fi

The intention is that 2.2.1 is greater than 2.2, however that is not what vercmp thinks.

I have worked around this by modifying support/debdb2pupdb.bac in Woof to remove any '~' character and anything past it.
Of course, that means we won't be able to distinguish between say "2.2~2011week36" and "2.2~2011week37", but I'll live with that, as it is a very unlikely scenario.

I haven't actually tested this change. I have compiled debdb2pupdb.bac for x86 and ARM, next have to do a Precise build from ./0setup, to make sure it works as intended.

Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/5f029050af

Comments

Test post
Username: Jades
'Jades' has registered.

mhwaveedit + ladspa
Username: don570
" I compiled mhwaveedit in latest precise beta so that ladspa effects can be applied in the program. It's available if you want to include it. It is stripped and a useful configuration file is added. http://www1.datafilehost.com/d/e707ad7f and here is the locales http://www1.datafilehost.com/d/b95b7b9d


Tags: woof