Page 1 of 1

new2dir ./waf install = useless PET ?

Posted: Mon 14 May 2012, 20:42
by darkcity
hi

i've been compiling some packages from
http://drobilla.net/

including lilv, they are written in Python. So I've been using

new2dir ./waf install

this installs to system but creates useless PETs which only contain broken links. Has anyone else experienced this? Also, can new2dir just compile to dir without installing on system?

:twisted:

Posted: Thu 17 May 2012, 14:52
by Speedyluck
I don't remember where in the blog, Barry has written that on Precise puppy version there is a bug on DevX (missing something) and new2dir don't work all right.
But i don't find the post!

Posted: Thu 17 May 2012, 14:57
by darkcity
I'm using Polarpup 005 which is like lucid, I have a suspicion that I just need to set parameter of new2dir ?

Posted: Sun 20 May 2012, 23:03
by Speedyluck
sorry, i don't know, with lucid 5.2.5 seems allright;
i think is something missed on devx (as in Barry blog post), but i not sure, and i don't believe the new2dir script has changed.

Posted: Sat 26 May 2012, 09:58
by Karl Godt
just run ./waf install and run

Code: Select all

pet_dir="`basename $(pwd)`-i486"

F=`find /usr -mmin -5 |sort -d`

mkdir ../$pet_dir

for i in $F;do

[ -d $i ] && { mkdir -p ../$pet_dir/$i;continue; }

dn=${i%/*}
mkdir -p ../$pet_dir/$dn
cp -ai $i ../$pet_dir/$dn/$i

done
  
this has to be stripped manually and only searches in /usr .

Posted: Wed 30 May 2012, 09:08
by darkcity
thanks for the answer, and especially Karl Godt for the script.

Will check next time I have a go at compiling Python things.

Posted: Wed 30 May 2012, 09:37
by Karl Godt
OK, found a typo in my script example :

started with "pet_dir" and had switched to "petdir" .. :oops:

correcting it now .

Posted: Mon 02 Jul 2012, 17:02
by darkcity
new2dir doesn't seem to work with scons either

new2dir scons install

http://www.scons.org/

will try Karl's script

Posted: Mon 02 Jul 2012, 17:23
by amigo
src2pkg handles both waf and scons, plus many others.