Pet building system

discuss compiling applications for Puppy
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#31 Post by zigbert »

mavrothal wrote:Maybe you want to clone the repos and do all the coding locally on your machine.
If it is so simple, I am not smart enough - yet :)
I have been cloning-coding-pulling-merging, but since 'we' don't want heavy /complex pulls it becomes more coding-pulling-merging again and again. YES, there are many benefits! - but I am still struggling.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#32 Post by sc0ttman »

zigbert wrote:
mavrothal wrote:Maybe you want to clone the repos and do all the coding locally on your machine.
If it is so simple, I am not smart enough - yet :)
I have been cloning-coding-pulling-merging, but since 'we' don't want heavy /complex pulls it becomes more coding-pulling-merging again and again. YES, there are many benefits! - but I am still struggling.
There is a git plugin for Geany ... might make things a little easier..?

http://plugins.geany.org/geanyvc.html
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#33 Post by 01micko »

new2dir is no longer a requirement.

dir2pet from the main post is still needed.
Puppy Linux Blog - contact me for access

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#34 Post by mavrothal »

sc0ttman wrote:There is a git plugin for Geany ... might make things a little easier..?

http://plugins.geany.org/geanyvc.html
Do you have a pet/compiled just this plugin? Because the geany-plugins package from the repo needs 70MB in dependencies and adding only geanyvc.so does not work
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#35 Post by 01micko »

mavrothal wrote:
sc0ttman wrote:There is a git plugin for Geany ... might make things a little easier..?

http://plugins.geany.org/geanyvc.html
Do you have a pet/compiled just this plugin? Because the geany-plugins package from the repo needs 70MB in dependencies and adding only geanyvc.so does not work
https://github.com/puppylinux-woof-CE/p ... ny-plugins

:wink:

It's for geany-1.24.1 but it might work, if not just change the version number in the petbuild.

BTW, the geany-plugins.petbuild was generated with the new script mk_petbuild.sh, which will work for generic, sane sources, comes with a 'YMMV' warning. :P
Puppy Linux Blog - contact me for access

User avatar
Uten
Posts: 129
Joined: Tue 29 Jan 2008, 11:00

#36 Post by Uten »

Nice initiative 01mico.

May I suggest that you add the modified dir2pet (and the other modified files ) in the repo and add something like this to the func file:

Code: Select all

OLD_PATH=$PATH

petbuilds_trap_exit() {	
	export PATH=$OLD_PATH
}

trap petbuilds_trap_exit EXIT

petbuilds_bootstrap() {
	# Get this scripts path so we use our modified scripts rather than the
	# original ones
	SDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
	echo "\$SDIR:=$SDIR"
	if [[ $PATH != *$SDIR* ]]; then 
		export PATH=$SDIR:$PATH
		DIR2PET_HASH=$(sha256sum $(which dir2pet)|cut -d' ' -f1)
		
		# Verify that we get access to the corresponding dir2pet otherwise the scripts
		# will fail silently. If dir2pet is modified this check must be updated
		if [ '5598185523147f6286a6b6bef54c3d1c3e727a66fea04396e5f5440ad1bc9017' != "$DIR2PET_HASH" ]; then

			echo "dir2pet ( $(which dir2pet ) ) does not match our sha256sum. Get the corresponding one from ..."
			echo $(sha256sum $(which dir2pet))
			exit 1
		fi		
	fi

} 
petbuilds_bootstrap
I suppose you know of http://slackbuilds.org which almost (needs pkgtools ) works out of the box when using slacko (5.7)

Best regards
Uten

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#37 Post by 01micko »

Thanks Uten for the suggestion 8)

I will probably implement something very similar, except with a more maintainable check for dir2pet

eg:

Code: Select all

DIRTOPET=`which dir2pet`
AGE=$(date +%s -r  $DIRTOPET) # =1413022441 is current verion
if [ "$AGE" -lt  1413022441 ];then
   echo "dir2pet  is built before $(date -r $DIRTOPET) . Get the corresponding one from ..." 
fi
As for slackbuilds, I have a script (work in progress) to convert a slackbuild tarball to a petbuild recipe. It should be ready in a few weeks as I slow development for final exams.

Cheers!
Puppy Linux Blog - contact me for access

User avatar
Uten
Posts: 129
Joined: Tue 29 Jan 2008, 11:00

#38 Post by Uten »

Your code looks sensible, although I have burned my fingers terribly in the past when comparing against a date.

Best wishes with your finals :D

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#39 Post by greengeek »

Jasper wrote:PS I have src2pkg v 3.0 and to make and install the latest version of jwm-976 I use:

Code: Select all

src2pkg -PET http://joewing.net/projects/jwm/snapshots/jwm-976.tar.xz
by running it in a terminal after loading my devx.sfs (devx_precise_5.6.sfs).
Hi Jasper, are you happy with the 976 pet? I am keen to test it to see if it improves my Freeoffice dialog box size on Slacko 5.6 also if you are happy to make the pet available?
cheers

Jasper

#40 Post by Jasper »

Hi greengeek,

Yes, I'm happy with my build of Joe's v. 976, but it may be better to make your own jwm976 pet for Slacko by using the appropriate devx and amigo's src2pkg.

Only today anikin has posted another reference under, Desktop, in the next forum section after this one.

However, whilst I've no idea if it may help (or hinder), upon a request I can certainly add my 976 pet made with and for Precise 5.6 as an edit to this post.

My regards

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#41 Post by greengeek »

Jasper wrote:Yes, I'm happy with my build of Joe's v. 976, but it may be better to make your own jwm976 pet for Slacko by using the appropriate devx and amigo's src2pkg.
Hi Jasper -ahh yes, you are using precise, not slacko as I thought. I was a bit hasty in reading your post and misinterpreted the "5.6" - I will follow anikins directions and cook my own for Slacko 5.6. cheers!

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

petbuilds and utilities source

#42 Post by gyro »

Hi,
I'm posting in this topic since the discussion seems a bit out of place with folk discussing actually using woof-ce.

My expectation is that there should be a git repository where the source of utilities like freememapplet_tray could be stored.
After a pull-request against the source has been accepted, an appropriate "petbuilds" script could be run to produce a ".pet" for a puppy (or group of puppies).
This ".pet" would then become available via PPM for the puppy, and picked up by the next generation of the puppy using woof-ce.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#43 Post by gyro »

Hi 01micko,

I don't get it.
I just forked and cloned the "petbuilds" repository to try the "freememapplet" pet.
I eventually worked out how to build it but the resulting ".pet" was missing a few files, i.e. the icon files and the ".pot".
Is this what it's supposed to do, or am I missing something?

gyro

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#44 Post by 01micko »

Sorry gyro for missing this.
I just forked and cloned the "petbuilds" repository to try the "freememapplet" pet.
I eventually worked out how to build it but the resulting ".pet" was missing a few files, i.e. the icon files and the ".pot".
Is this what it's supposed to do, or am I missing something?
Basically yes, but it is a bug that the .pot file is missing. The system is designed for woof-CE and I don't want to overwrite icons that already exist.

Cheers.
Puppy Linux Blog - contact me for access

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#45 Post by gyro »

01micko wrote:Basically yes, but it is a bug that the .pot file is missing. The system is designed for woof-CE and I don't want to overwrite icons that already exist.
What if they don't already exist?
These icons are fairly vital to freememapplet_tray, have you ever run it when they are not present?
gyro

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#46 Post by 01micko »

gyro wrote:
01micko wrote:Basically yes, but it is a bug that the .pot file is missing. The system is designed for woof-CE and I don't want to overwrite icons that already exist.
What if they don't already exist?
But they do in any woof-CE puppy (almost from the start - 2 years ago).
01micko wrote:The system is designed for woof-CE and I don't want to overwrite icons that already exist.
gyro wrote:These icons are fairly vital to freememapplet_tray, have you ever run it when they are not present?
gyro
Yes I know. If the icons are deleted from woof-CE then I'll change the build script.
Puppy Linux Blog - contact me for access

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

gnome-mplayer.desktop

#47 Post by norgo »

puppylinux-woof-CE/petbuilds
slacko_142

gnome-mplayer.desktop

unfortunately since Slacko 6.3.0 Gnome-mplayer is located in the wrong category.

Gnome-mplayer is located in CATEGORY "Multimedia" SUB-CATEGORY "audiovideo"
but belongs actually in CATEGORY "Multimedia" SUB-CATEGORY "mediaplayer"

So the category of the menu where gnome-mplayer actually belongs is empty.
This has been already complained in Slacko 6.3.0
http://murga-linux.com/puppy/viewtopic.php?p=873753#873753

I changed the category in the *.desktop files from "audiovideo" to "X-Multimedia-mediaplayer"
and the icon path from png to the svg icon.
Attachments
gnome-mplayer.desktop.tar
gnome-mplayer.desktop ( remove tar fake extension )
(2.88 KiB) Downloaded 452 times

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

transmission

#48 Post by norgo »

puppylinux-woof-CE/petbuilds
slacko_142

transmission.petbuild is using DESKTOP=transmission.desktop file

but should use instead DESKTOP=transmission-gtk.desktop

The currently used desktop file contains
Categories=Network;FileTransfer;P2P;GTK;

This leads to several places in menu

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

#49 Post by norgo »

puppylinux-woof-CE/petbuilds
slacko_142

sylpheed.desktop file contains

Categories=GTK;Network;Email;News;

this leads to several places in menu

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

#50 Post by norgo »

puppylinux-woof-CE/petbuilds
slacko_142

leafpad.desktop file contains:

Categories=Viewer;

very strange but this leads to several places in menu

However Leafpad is an editor not a viewer and Category should become corrected by

Categories=X-Document-edit

Post Reply