new2dir ./waf install = useless PET ?

discuss compiling applications for Puppy
Post Reply
Message
Author
User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

new2dir ./waf install = useless PET ?

#1 Post 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:

Speedyluck
Posts: 49
Joined: Sat 30 Jan 2010, 19:25

#2 Post 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!

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#3 Post by darkcity »

I'm using Polarpup 005 which is like lucid, I have a suspicion that I just need to set parameter of new2dir ?

Speedyluck
Posts: 49
Joined: Sat 30 Jan 2010, 19:25

#4 Post 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.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#5 Post 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 .
Last edited by Karl Godt on Wed 30 May 2012, 09:42, edited 2 times in total.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#6 Post 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.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#7 Post by Karl Godt »

OK, found a typo in my script example :

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

correcting it now .

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#8 Post by darkcity »

new2dir doesn't seem to work with scons either

new2dir scons install

http://www.scons.org/

will try Karl's script

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#9 Post by amigo »

src2pkg handles both waf and scons, plus many others.

Post Reply