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 Wed 22 Nov 2017, 11:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Pet building system
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 6 [79 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
zigbert


Joined: 29 Mar 2006
Posts: 6508
Location: Valåmoen, Norway

PostPosted: Sun 19 Oct 2014, 15:55    Post subject:  

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 Smile
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.

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2548
Location: UK

PostPosted: Sun 19 Oct 2014, 16:43    Post subject:  

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 Smile
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

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8659
Location: qld

PostPosted: Sun 19 Oct 2014, 21:14    Post subject:  

new2dir is no longer a requirement.

dir2pet from the main post is still needed.

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 2909

PostPosted: Mon 20 Oct 2014, 01:08    Post subject:  

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

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8659
Location: qld

PostPosted: Mon 20 Oct 2014, 04:51    Post subject:  

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/petbuilds/tree/master/builds/geany-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. Razz

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
Uten


Joined: 29 Jan 2008
Posts: 109

PostPosted: Wed 22 Oct 2014, 23:00    Post subject:  

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:
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
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8659
Location: qld

PostPosted: Fri 24 Oct 2014, 21:01    Post subject:  

Thanks Uten for the suggestion Cool

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

eg:
Code:

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
Back to top
View user's profile Send private message Visit poster's website 
Uten


Joined: 29 Jan 2008
Posts: 109

PostPosted: Sun 26 Oct 2014, 17:53    Post subject:  

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

Best wishes with your finals Very Happy
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4716
Location: Republic of Novo Zelande

PostPosted: Sat 20 Dec 2014, 16:47    Post subject:  

Jasper wrote:
PS I have src2pkg v 3.0 and to make and install the latest version of jwm-976 I use:
Code:
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
Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Sat 20 Dec 2014, 18:03    Post subject:  

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
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4716
Location: Republic of Novo Zelande

PostPosted: Sun 21 Dec 2014, 04:56    Post subject:  

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!
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1406
Location: Brisbane, Australia

PostPosted: Fri 09 Oct 2015, 10:28    Post subject: petbuilds and utilities source  

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
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1406
Location: Brisbane, Australia

PostPosted: Fri 09 Oct 2015, 11:43    Post subject:  

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
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8659
Location: qld

PostPosted: Wed 28 Oct 2015, 03:58    Post subject:  

Sorry gyro for missing this.

Quote:
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
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 1406
Location: Brisbane, Australia

PostPosted: Wed 28 Oct 2015, 10:31    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 6 [79 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
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.0566s ][ Queries: 12 (0.0047s) ][ GZIP on ]