Pet Packaging 100 & 101 & intro to 200

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#16 Post by technosaurus »

To compile statically against dietlibc

Code: Select all

CC="diet gcc -nostdinc
Last edited by technosaurus on Sun 11 Jul 2010, 17:06, edited 1 time in total.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

jikkypeter
Posts: 1
Joined: Fri 09 Oct 2009, 06:38

this is jikkypeter

#17 Post by jikkypeter »


User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#18 Post by Aitch »

jikkypeter

What is the point of that??

Are you a google spammer? - they don't need you.... :lol:

Aitch :)

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#19 Post by technosaurus »

Here is a fairly simple way to compile other programs that makes them easily configurable as a RoxApp

run ./configure --help
you should see a list that includes --prefix= , --bindir= etc...
you will want to set all of these to /usr/local/apps/$MY_PROGRAM_NAME

here is an example:

Code: Select all

CFLAGS=" -pipe -Os " CXXFLAGS=" -pipe -Os " LDFLAGS=" -Wl,-O2,-s " \
./configure --prefix=/usr/local/apps/abiword --bindir=/usr/local/apps/abiword \
--sysconfdir=/usr/local/apps/abiword --localstatedir=/usr/local/apps/abiword \
--libdir=/usr/local/apps/abiword ....<--more-options>
make
new2dir make install
(Then in /usr/local/apps/$MY_PROGRAM_NAME make a symlink for AppRun to the main executable and a symlink for .DirIcon to any image)

I only recommend this for programs - not libraries
If you want to include additional libraries this way I would recommend first compiling the libraries with ./configure --enable-static --disable-shared before compiling your program (that way only the necessaryparts get included - sometimes only a couple of kb of a multi-MB library)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

phogi
Posts: 15
Joined: Fri 05 Mar 2010, 20:06

#20 Post by phogi »

I'm attempting to follow the directions in the first method. My goal is to implement a driver I found for my synaptics touchpad that is on my laptop. The issue is erratic pointer behavior, and random hangs. Makes it all quite difficult to use (so I just plugged in a usb mouse). But, this driver supposedly will take care of those problems.

I'm running puppy 4.3.1 on a Compaq presario V5000.

So, everything goes fine until I get to the command line step. I type in ./configure, it tells me something like 'no such file.'

I'm assuming that some dependency is not filled for the command line program to work, or the directions I'm following are for a model of command line usage which is no longer in effect.

So, what do I need to do to make it work?

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#21 Post by technosaurus »

there should be a readme file of some kind... sometimes you need to run ./autogen.sh to build ./configure ... others require editing the make files, others now use waf instead - either way, it should be in the documentation - please read it

synaptics is already supported (mine is working) so you shouldn't need to build a "driver" I think jemimah has already built flsynclient, which may work to configure it

kernel drivers have a whole different build process than software - there is a whole category in additional software dedicated to drivers
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#22 Post by chrome307 »

Is it possible to combine 3 pet files eg.

spellcheck_addon.pet
gimme-2.2.3.pet
pan-0.1.3.2.pet

Into a single Pet application?

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#23 Post by technosaurus »

yes just use pet2tgz and then tar -xf to expand them all ... then copy the contents all into 1 tree (in appropriately named folder)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#24 Post by chrome307 »

Thanks for getting back to me regarding this :)

Once I have expanded all the files and place them into a 'single' folder, is my next step to create a 'new' pet file with all the contents?

[UPDATE]

Image

Image

I have created the directory with all the contents, then I used:

Code: Select all

dir2pet Pan.Newsreader-0.132-full
to create a PET file, which it did.

Image


However, after I installed it for testing purposes it failed to open.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#25 Post by technosaurus »

Another tip
If you are running low on space you can download tarballs and expand them at the same time. (chromium's bootstrap tarball is over 800mb)

for .tar.gz (change the "z" as applicable to your compression type)
wget -q -O - <url of tarball> |tar -xz

Bonus tip
here are a couple of flags to (try to) add to CXXFLAGS for C++ based compiles:
-fno-rtti -fno-exceptions
(they don't always both work but can save 5-10% of total compiled size)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
enhu
Posts: 302
Joined: Wed 27 May 2009, 02:13
Contact:

#26 Post by enhu »

where else can i get tra.gz files that fit to puppy besides what was given http://packages.debian.org/source/etch

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#27 Post by technosaurus »

enhu wrote:where else can i get tra.gz files that fit to puppy besides what was given http://packages.debian.org/source/etch
huh?
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#28 Post by technosaurus »

I tracked down a bunch of sites that will produce a tarball of the latest development code directly from version control- over 4000 projects from gnu.org,kernel.org & repo.or.cz (+uclibc,uclibc++,busybox & buildroot) - pretty much all the major projects that support this function.

hopefully this reduces your search time trying to get the latest code.
Attachments
urls.bz2
(28.33 KiB) Downloaded 1656 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
enhu
Posts: 302
Joined: Wed 27 May 2009, 02:13
Contact:

#29 Post by enhu »

cant seem to find tar.gz file in http://packages.debian.org/source/etch

where else can i see some?

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#30 Post by technosaurus »

Etch is no longer supported in the package search - use lenny now (or squeeze or sid)
http://www.debian.org/distrib/packages

or http://t2-project.org/packages/

fallback is still google
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
enhu
Posts: 302
Joined: Wed 27 May 2009, 02:13
Contact:

#31 Post by enhu »

just when you run ./configure then make, how do you know it has dependencies?

becuase i got stuck upon executing make leaving me with > prompt

tonicooperi
Posts: 11
Joined: Thu 09 Dec 2010, 01:25

#32 Post by tonicooperi »

Hello, i would to know how to use the devx_421.sfs, i'm using puppy 5.1.1 and i would like to build some pet just for my fun. How can i use the devx_421.sfs? i've got puppy on a USB stick (4gb)
Thanks in advance

EDIT: i've found the devx for the 511 but still don't know how to use it on my usb stick without making some troubles with my clean install of the normal puppy

gcmartin

How to run an SFS without installing permanently

#33 Post by gcmartin »

tonicooperi wrote:Hello, i would to know how to use the devx_421.sfs, i'm using puppy 5.1.1 and i would like to build some pet just for my fun. How can i use the devx_421.sfs? i've got puppy on a USB stick (4gb)
Thanks in advance

EDIT: i've found the devx for the 511 but still don't know how to use it on my usb stick without making some troubles with my clean install of the normal puppy
This thread post is dated. But, if there is still interest, you might find these worthwhile:I believe these will allow use of an SFS in a non-permanent fashion.

There seems that I remember another package called SFS_Grabber. But, I can't seem to search and find it using forum search.

Hope this helps

SimpleWater
Posts: 94
Joined: Tue 19 Apr 2011, 11:53

#34 Post by SimpleWater »

I think it is a good idea to accompany this tutorial with this one: http://puppylinux.com/development/createpet.htm

The tutorial is decent enough, but the website mentioned, provides more details and mentions how to put a pet directory back into a pet.

also the code below is useless. If you get "no such file or directory" there probably is a directory called "man" somewhere. But no it does not shrink the pet any further

Code: Select all

find ./usr/man/ -type l -name "*.gz" | xargs -r gunzip -f
find ./usr/man/ ! -type l -name "*.gz" | xargs -r gunzip
find . | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#35 Post by technosaurus »

Re: no such file - with those commands you would need to be in the base directory of the pet... still some still won't have it.

Although gzipping the man pages may not shrink the pet, it is still useful for those with limited resources that need to do a full install. ... if RAM and CPU are limited enough to require a full install, chances are that the disk space is limited too. For others, the effect should be completely unnoticable.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply