Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 02:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Compiler GUI and other packaging tools
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 12 [172 Posts]   Goto page: 1, 2, 3, ..., 10, 11, 12 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Tue 28 Apr 2009, 03:20    Post subject:  Compiler GUI and other packaging tools
Subject description: pcompile, src2all, 2petnsfs, dump2pet, 2dirs
 

I made up these scripts for quickly testing new packages - they still need some optimization & cleanup but are working well so far

src2all will convert most src packages to pet and sfs compiled with puppy build environment (t2-486-linux-gnu) with prefix=/usr will post install files from a specified dir and take config options from a specified file

usage:
pcompile - lets you select a source package and add configure options in a gui to be compiled with src2all

src2all /path/to/package.tar.bz2 /pathto/confopts.cfg /pathto/extrasdir
(support for tar.gz, tbz and tar.gz not tested yet)... configures, compiles and packages a source package

2petnsfs - like new2dir but doesn't ask all kinds of unnecessary questions

usage:
2petnsfs make install (like new2dir with no questions - makes 4 pets and an sfs)

2dirs - automatically selects to divide packages into DEV, DOC, NLS and main (like new2dir with no questions - doesn't make pets)

usage:
2dirs make install

dump2pet - like dir2pet without any questions (for when you know there are no dependencies or menu entries to add)

usage:
dump2pet directory
pcompile-0.1.8.pet
Description  This one is a bit more complex and targeted to 4.3+. The others <0.1 were for 4.2.X and prior
pet

 Download 
Filename  pcompile-0.1.8.pet 
Filesize  17.74 KB 
Downloaded  1449 Time(s) 
pcompile-0.06.pet
Description  same as 0.05 but for upupto (ubuntu woof puppy)
pet

 Download 
Filename  pcompile-0.06.pet 
Filesize  3.92 KB 
Downloaded  1377 Time(s) 
pcompile-0.05.pet
Description  puppy version with better config option support - change parameter order for src2all to allow no extras directory
pet

 Download 
Filename  pcompile-0.05.pet 
Filesize  3.92 KB 
Downloaded  1270 Time(s) 
pcompile-0.04.pet
Description  upup edition to go with woof alpha6 - will combine into one gui in later edition for simplicity
pet

 Download 
Filename  pcompile-0.04.pet 
Filesize  3.67 KB 
Downloaded  1181 Time(s) 
pcompile-0.03.pet
Description  added option for post install directory - if you don't use one keep .02 so that you can add your menu entries manually using dir2pet
pet

 Download 
Filename  pcompile-0.03.pet 
Filesize  3.57 KB 
Downloaded  1208 Time(s) 
pcompile-0.02.pet
Description  with new gui compiler and some updates to src2all for adding configure options
pet

 Download 
Filename  pcompile-0.02.pet 
Filesize  3.26 KB 
Downloaded  1184 Time(s) 
2petnsfs-0.01.pet
Description  contains 3 executables src2all, dump2pet and 2petnsfs in /usr/bin
pet

 Download 
Filename  2petnsfs-0.01.pet 
Filesize  2.31 KB 
Downloaded  1366 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Sat 31 Oct 2009, 23:49; edited 7 times in total
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Tue 28 Apr 2009, 04:14    Post subject:  

Exciting stuff Smile
I have posted the link on Barrys developer blog
Ttuuxxx and our other intrepid compilers should find this useful Smile

I was also glad to see that the web desktop (probably in 4.2.1 as the default home page) now has your desktop as the first link for noob Puppys . . .
file:///usr/share/doc/home.htm

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
magerlab

Joined: 08 Jul 2007
Posts: 731

PostPosted: Tue 28 Apr 2009, 04:57    Post subject:  

what devx i need to have to use this pet?
i finally think i must try compile anything myself Very Happy

_________________
skype: desafimager
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Tue 28 Apr 2009, 09:47    Post subject:  

They are just bash scripts so they should work with almost any version of Puppy with the corresponding devx (4.1.2 uses devx_412.sfs ... 4.2 uses devx_420.sfs)... note that you will still need to have any of the dependencies installed to compile a package... but if you can't find it - this should make it easier to build the dependencies as well

Right now I only have it set up to configure with a default puppy config, whereas v0.02 should allow advanced configure options to be passed (via a file called <pkgname>.cfg)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Fri 01 May 2009, 01:04    Post subject:  

updated src2all for adding configure options
added gtkdialog GUI pcompile to select your source tarball and edit your configure options

TODO add a dialog for adding files from a directory to the packages (for adding desktop files, icons, addon packages, dependencies and other miscellaneous files)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Fri 01 May 2009, 23:08    Post subject:  

I added support for a post install directory (mostly for package maintainers) where you can keep menu entries, icons, dependencies and other miscellaneous files

Next on the todo list - support for a file that contains the ./configure options

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Mon 04 May 2009, 02:29    Post subject:  

updated for upup configure options and support for no extras directory - it will run dir2pet vs dump2pet so that you can add menu entries and pet.specs

todo
1. combine the petspecs script with pcompile
1b add dir2pet dialog to the gui and only use dump2pet

this is so that there is no additional user interaction required (want to be able to hit OK and walk away)

2. ??enable python support - need help not sure how to do this since it doesn't use make?? ...

python setup.py install --root=${xNAMEONLY}-${VERONLY}-i486
(should work but this would not strip the garbage)

or use

new2dir python setup.py install
(not really sure if this would work - haven't tried)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Mon 04 May 2009, 02:48    Post subject:  

added several tweaks

configure options are now input via a file vs a string

will run dir2pet if an extras directory is not used
runs dump2pet if an extras directory is used (assumes you put the required files in the dir)

separate versions for puppy and upup

remove files in / for pet installs from sfs

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Stormson5150

Joined: 06 Feb 2009
Posts: 40

PostPosted: Fri 22 May 2009, 17:57    Post subject:  

Will the splitting off part work for pre-compiled binaries? IE: I would like to grab a slackware .tgz, open it up to its own directory, then have a script that will take that directory and split it into the DEV, DOC, NLS and main... Is this capable of that, or can it be made to do so somehow?
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sat 23 May 2009, 03:36    Post subject:  

not at the moment but that's not a bad idea - probably a different program though... the applicable bash script to modify would be new2dir or my modification of it 2petnsfs
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Stormson5150

Joined: 06 Feb 2009
Posts: 40

PostPosted: Sat 23 May 2009, 14:53    Post subject:  

Yes, I agree, it would most likely be an entirely new issue... It would however be a WONDERFUL thing for many people I think (not least of all, myself).. As I stated in my PM to you, as per my understanding you are "the man" when it comes to bash.. so if anyone CAN do it... well here I am asking... Laughing
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Mon 25 May 2009, 17:09    Post subject:  

well - after using woof & looking through the scripts there - I find out that Barry has already done all the hard work for those package formats (debian, ubuntu, arch, slackware, T2... ) I really need to pull that code and adapt amigo's src2pkg script with the bigbass mods to really puppify it
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Fri 19 Jun 2009, 17:45    Post subject:  

Quote:
It would however be a WONDERFUL thing for many people I think (not least of all, myself).. As I stated in my PM to you, as per my understanding you are "the man" when it comes to bash..


I would agree with that, and most importantly he puts his skills into areas where they will be of most use to others who dont have them themselves...yet Very Happy

There has been a resurgence in interest in the 2.6.18.1 kernel. Ttuuxxx has updated Puppy 2.14r with the latest glibc/libraries.

http://www.murga-linux.com/puppy/viewtopic.php?p=317325#317325

How would these automated compilers work with that?

Im trying to sound like I know what Im talking about but I dont. Embarassed

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sat 20 Jun 2009, 10:15    Post subject:  

it makes the 2.X-4.X traditional (non-woof) style .pet ... other than that I can't think of any reason why it shouldn't work. I plan to look at updating it for 5.X
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Wed 01 Jul 2009, 17:19    Post subject: Help with the PCompile  

Using Pcompile 05 on 4.2 Deep Thought.

Trying to compile Pidgin 2.5.8.

I give it the .tar.bz2 file in my Desktop dir in my Root homedir.
I give it the argument string as follows:

--prefix=/usr --sysconfdir=/etc --localstatedir=/var -pipe -fomit-frame-pointer --disable-gtkspell --disable-meanwhile --disable-avahi --disable-dbus --enable-gnutls=yes

I got the pipe and fomit frame pointer args from the Wiki, page at:
http://www.puppylinux.org/wiki/compiling
It also suggested -O2 but somehow the src2all gave a configure error on that argument, so maybe that configure doesn't support -O2...
I got the --prefix=/usr and other default dirs from your "default" line in Pconfig.

Problem is I get:

configure: error: Unrecognized --prefix/usr --- it's like it's losing the = sign for that one.

As a result, configure does not configure, I go through script, complete pet, get 490 byte pet file with nothing.

Question then: Does the "default string" get auto-prepended to what I put in? If not, what have I done wrong? BTW, must include the disables, as those packages are not part of the build I want and are excess bloat.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 12 [172 Posts]   Goto page: 1, 2, 3, ..., 10, 11, 12 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0825s ][ Queries: 13 (0.0064s) ][ GZIP on ]