Author |
Message |
01micko

Joined: 11 Oct 2008 Posts: 8787 Location: qld
|
Posted: Fri 09 Jul 2010, 09:35 Post subject:
alien2puppy Subject description: make pets and sfs from debs, tgz, txz 2010-07-09 |
|
Hi folks,
New version, 20101229, handles txz better
With the advent of "Woof - The Puppy Builder" there has been a pack of different Puppy's with different lineages crossbreeding.
Prime examples are Lupu Puppy 5, the Luci development for 5.1 and Barry's Spup Slackpup betas.
One problem.. the actual Puppy repos particular to those 'wooflets' are barish, though the Luci repo is starting to look healthy.. and the tool described here is a small part of that.
alien2puppy is a command line based tool to get a main app and it's dependencies 'merged' into a puppy package, either sfs or pet.
What you do is, plonk the app and all the dependencies in a single working directory, for big apps, do this outside your pupsave. Then you invoke the script in that directory with: Code: | alien2puppy -s Packagename_ver-001 | for an sfs or: Code: | alien2puppy -p Packagename_ver-001 | for a pet.
It's pretty easy, and the script walks you through the various stages and options as you go. It's quite verbose, with just a splash of colour.
I actually wrote it some time ago with a different name, debs2pkg.. Luci followers may have seen it before, even used the script.
Now, this isn't for everybody, you should be comfortable with the Linux command line and filesystem. Also, my coding is pretty rudimentary, so advanced users please cough up any suggestions where improvements could be made.
Notes
* the script is designed to make a small package, so there is an option for stripping, and in the Slackware section, the packages are split into doc, dev and nls.
*Debian/Ubuntu packages are far more simple, but you may find that you have many .debs even for a smallish app. In a way it's a good thing, because you can usually get all doc, dev, nls stuff separately.. consequently, splitting is not enabled for .debs.
*Slackware packages usually include a "doinst.sh" script, similar to Puppy's pinstall.sh script which is executed on installation. I have taken care of this but it may not be perfect.
*there is the chance to pause the script to sort out .desktop files which govern menu entries, and menu icons. In 'dir2pet' you have the option to rebuild the .desktop file to make it Puppy compliant, or you can do it before hand at the pause. The script attempts to discover where the program icon is located.. for KDE apps you may get alot of hits at this stage.
*in the Slackware section, after you make the initial .pet or sfs you are offered the choice to make the dev, doc, nls sfs OR pet if you initially chose '-s' sfs option or pets only if you initially chose the '-p' pet option.
There is a README in the tarball (no it's not a pet, you need to whack it in your $PATH or execute in situ) and there is a '-h' basic help option. As far as a man page goes, well this is it!
don570 has written a neat little tutorial here
______________________________________________________________________
Please enjoy and if you find a bug swat it, or call 000, 999, 911 or some other number than mine.. (er..joking of course, just report it!)
Cheers
 |
Description |
new version 20101229
|

Download |
Filename |
alien2puppy-0.2.tar.gz |
Filesize |
4.27 KB |
Downloaded |
2705 Time(s) |
Description |
|

Download |
Filename |
alien2puppy-0.1.tar.gz |
Filesize |
5.13 KB |
Downloaded |
1932 Time(s) |
Description |
in Spup |
Filesize |
156.11 KB |
Viewed |
7538 Time(s) |

|
_________________ Puppy Linux Blog - contact me for access
Last edited by 01micko on Wed 29 Dec 2010, 00:43; edited 2 times in total
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Sat 17 Jul 2010, 12:33 Post subject:
alien2puppy evalution |
|
Worked great for me. Instructions were clear.
I made Audacity and Abiword pet packages out of
debian packages in only couple of minutes.
Great stuff!!
To compare with old method of making pet packages see
http://www.murga-linux.com/puppy/viewtopic.php?t=55740&start=690
---------------------------------------------------------------------------------------------
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Mon 26 Jul 2010, 15:27 Post subject:
alien2puppy Tutorial Subject description: build audacity package |
|
I wanted to show how easy it was to use alien2puppy
so I wrote a tutorial located here
I used Audacity as the example but lots of other application packages
can be built using this procedure.
EDIT: I wrote another tutorial this time for building Abiword here
____________________________________________________________________
Last edited by don570 on Thu 29 Jul 2010, 19:09; edited 2 times in total
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8787 Location: qld
|
Posted: Mon 26 Jul 2010, 16:16 Post subject:
|
|
Thanks don570
I'll put a link to that in the first post, near where I say that there's no "man" page.
Cheers
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Thu 29 Jul 2010, 13:52 Post subject:
one flaw in alien2puppy |
|
I have discovered one flaw in alien2puppy.
I made the mistake of using a pupsave file that was
very small, therefore there was little space in filesystem for the new
pet package to form.
My recommendation is to make sure that there is at least 20 mb of free
space to let the pet package be created. Unfortunately there
is no warning at terminal so the user can become confused.
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Wed 18 Aug 2010, 20:21 Post subject:
Space priblems probably should be tested for AND warned Subject description: dm570 |
|
dm570 hit an issue where a check in the alien2puppy tool could be improved on
On this space finding, would it be prudent to put a "test" at the beginning of the alien2puppy script to see if there is 20MB, then warn the user?
It it helps make a better user experience, it may be worth considering.
_________________ Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Sat 21 Aug 2010, 14:19 Post subject:
space for pet |
|
Recently I have been building my pets on a partition that has lots of space.
This way I avoid the 'lack of space problem'
I originally had been building in /root which is probably a bad practice.
___________________________________________________
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Thu 11 Apr 2013, 13:43 Post subject:
|
|
I describe how to make Audacity 2.0.4 alpha from nightly build...
http://www.murga-linux.com/puppy/viewtopic.php?p=697808#697808
Just a note... I am finding when constructing SFS packages that
I must move libraries to /usr/lib/ from /usr/lib/i386-linux-gnu
Pet packages don't have this problem.
___________________________________________________________
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Sat 18 May 2013, 13:53 Post subject:
gettext version of alien2puppy 0.2 |
|
I made a gettext version of alien2puppy 0.2
I changed some of the wording slightly and
I put a warning if the folder name has blank spaces.
I included a pot file if that will help the translators.
Instructions: put script 'alien2puppy' in executable path.
__________________________________________
Description |
|

Download |
Filename |
alien2puppy_gettext.tar.gz |
Filesize |
6.11 KB |
Downloaded |
1216 Time(s) |
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 344 Location: Ukraine
|
Posted: Sun 26 May 2013, 17:22 Post subject:
Russian translation |
|
I have made Russian translation.
Run this in terminal to make it work:
Code: | gzip -d ru.mo.gz; cp ru.mo /usr/share/locale/ru/LC_MESSAGES/alien2puppy.mo |
Description |
|

Download |
Filename |
ru.mo.gz |
Filesize |
3.99 KB |
Downloaded |
1108 Time(s) |
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Sat 27 Dec 2014, 14:43 Post subject:
|
|
I put alien2puppy in my right click utility package for convenience.
I'll put Russian mo file inside as well.
_________________________________________
I described how I made audacity 2.1 (daily build) with alien2puppy
http://www.murga-linux.com/puppy/viewtopic.php?p=817377#817377
__________________________________________
I found that I had to remove several libraries that I found in i386 folder
and put these in regular /usr/lib/ folder
_____________________________________
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Sat 27 Dec 2014, 18:59 Post subject:
WOOFCE? |
|
What does it take to have this utility included in future PUPs built via WOOFCE?
_________________ Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Mon 29 Dec 2014, 15:56 Post subject:
|
|
I found that one of the audacity effects crashs when it is used.
Sliding time scale/pitch shift
That is the problem when using the daily build.
..But it works great otherwise.
|
Back to top
|
|
 |
LazY Puppy

Joined: 21 Nov 2014 Posts: 2007 Location: Germany
|
Posted: Wed 31 Dec 2014, 07:19 Post subject:
|
|
Just tried this to check out, if it can handle the i386-linux-gnu directory (which is used in Precise and needs to be turned into a symbolic link). I've tested having alien2puppy extracted to /root/Downloads and executed from this location.
Tested with these files inside of directory, /root/Desktop/Aqualung_0.9-beta11-precise:
aqualung_0.9~beta11-1ubuntu9_i386.deb
libifp4_1.0.0.2-5_i386.deb
libjack-jackd2-0_1.9.8~dfsg.1-1ubuntu2_i386.deb
liblrdf0_0.4.0-5build1_i386.deb
liblua5.1-0_5.1.4-12ubuntu1_i386.deb
libmodplug1_0.8.8.4-1_i386.deb
liboggz2_1.1.1-1_i386.deb
libraptor1_1.4.21-7ubuntu0.1_i386.deb
libwavpack1_4.60.1-2_i386.deb
Command used in a Terminal:
/root/Downloads/alien2puppy -s /root/Desktop/Aqualung_0.9-beta11-precise
Didn't work!
Terminal Output:
Please wait a moment while /root/Desktop/Aqualung_0.9-beta11-precise is populated
The type of files can't be determined
What's wrong here?
---
Edit:
At least it doesn't have any i386-linux-gnu related code, so it obviously can NOT handle new .deb files from multi arch distros like Ubuntu.
PaDS 1.0.4 has the code and so it can do this!
Though, of course that's not the cause for the above mentioned problem...
_________________ RSH
"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0)
No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! 
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5524 Location: Ontario
|
Posted: Wed 31 Dec 2014, 12:40 Post subject:
|
|
Code: | /root/Downloads/alien2puppy -s /root/Desktop/Aqualung_0.9-beta11-precise |
You were supposed to cd into folder then do command....
Code: | alien2puppy -s /root/Desktop/Aqualung_0.9-beta11-precise |
This creates folder 'Aqualung_0.9-beta11-precise' inside the folder containing the debs.
-------------------------------------------------------------------------------
Barry Kauler and 01micko mentioned (in his blog) about half a year ago
that there were problems with libraries in i386-linux-gnu.
Barry K makes a link called i386-linux-gnu , I believe, in some of his
distros. I guess that when they are downloaded , Ubuntu libraries will
be sent to the link's destination ---> /usr/lib/
_________________________________________________
When I use alien2puppy I move all libraries to /usr/lib/ when
the program stops to let the user find the icons.
Audacity doesn't seem to mind.
____________________________________________________
|
Back to top
|
|
 |
|