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 Fri 28 Nov 2014, 12:00
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
src2pkg-2.9 - build .pets from source code!
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Author Message
amigo

Joined: 02 Apr 2007
Posts: 2279

PostPosted: Mon 26 Aug 2013, 09:46    Post subject:  src2pkg-2.9 - build .pets from source code!  

I've just released a new version of src2pkg. This is a minor version upgrade which mostly fixes a few minor errors when handling files or dirs which have spaces in their names.

You can get an installable *.pet package here:
http://distro.ibiblio.org/amigolinux/download/src2pkg/src2pkg-2.9/src2pkg-2.9-noarch-1.pet

For those who don't know, src2pkg is an 'intelligent' program for creating installable packages from source code or other content. src2pkg can build puppy *.pet packages, *.txz packages for slackware, *.tpkg packages for KISS-Linux, *.tazpkg packages for slitaz, *.deb ackages for debian/ubuntu and their derivatives and *.rpm packages for suse, fedora, etc.

src2pkg is the easiest way to build packages for you system, or for sharing. Many packages can be built without the need for a build recipe or script.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11164
Location: Arizona USA

PostPosted: Mon 26 Aug 2013, 15:39    Post subject:  

I assume this program requires the .dev file to be installed, in order to compile from source code.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 26 Aug 2013, 17:37    Post subject:  

Flash wrote:
I assume this program requires the .dev file to be installed, in order to compile from source code.
Yes Flash, it needs some kind of devx_puppy.sfs .
The x therein does not mean X server, but likely 's for devel oper's .

The quite functional sfs_load by shinobar makes it possible to load any devx you find scattered on your system .

Of course I would recommend the corresponding one for the current puppy one is running, but the ones with same or older glibc version should do it too, as my experiences can tell .
Back to top
View user's profile Send private message Visit poster's website 
Keef


Joined: 20 Dec 2007
Posts: 646
Location: Staffordshire

PostPosted: Sat 23 Nov 2013, 14:24    Post subject:  

amigo,

libsentry fails to compile on Slacko 5.6 and 5.6.1

Code:

# make
./create-defines
Checking truncate argument type... off_t
Checking readlinkat result type... ssize_t
Checking libc version... libc.so.6
Checking glibc subversion... ./create-defines: line 58: strings: command not found
cc -Wall -U_FORTIFY_SOURCE -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPIC -fPIC -D_REENTRANT -DVERSION=\"0.7.2\" -c libsentry.c
libsentry.c:3087:5: error: conflicting types for ‘scandir’
In file included from libsentry.c:52:0:
/usr/include/dirent.h:256:12: note: previous declaration of ‘scandir’ was here
make: *** [libsentry.o] Error 1


Code:

GNU C Library stable release version 2.15, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.7.1.
Compiled on a Linux 3.2.45 system on 2013-09-16.
Available extensions:
   crypt add-on version 2.1 by Michael Glad and others
   GNU Libidn by Simon Josefsson
   Native POSIX Threads Library by Ulrich Drepper et al
   BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


Code:
# gcc -dumpversion
4.7.1


I cheated a bit and found another version of dirent.h to try, and this one worked:
http://cpansearch.perl.org/src/MHX/Convert-Binary-C-0.76/tests/include/include/dirent.h
- it is older, from 2005.

Original dirent.h attached.

(I was quite pleased to win a million euros on ibiblio not so long ago too. Danke)
dirent.h.gz
Description  Slacko original - dummy .gz extension
gz

 Download 
Filename  dirent.h.gz 
Filesize  12.47 KB 
Downloaded  239 Time(s) 
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2279

PostPosted: Sun 24 Nov 2013, 03:21    Post subject:  

"strings: command not found " -this means you are missing 'strings' which is part of the util-linux package. Puppy may have removed this package to use that dreadful busybox instead.

"conflicting types for ‘scandir’ " This means that the devx doesn't include the correct glibc headers to match the kernel version.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1101

PostPosted: Sun 24 Nov 2013, 07:23    Post subject:  

Quote:
"strings: command not found " -this means you are missing 'strings' which is part of the util-linux package.

Slacko still has it, but it's in the devx and it's named strings-GNU.
Quote:
Puppy may have removed this package to use that dreadful busybox instead.

The busybox' one in turn is renamed to strings-BB-NOTUSED.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 646
Location: Staffordshire

PostPosted: Sun 24 Nov 2013, 09:43    Post subject:  

Always seems to be the headers...

'strings' is in binutils of course. At least I think thats where it usually lives.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2279

PostPosted: Sun 24 Nov 2013, 13:06    Post subject:  

Slackware uses a source called bsdstrings which is added to utils-linux.
Here's a quote from the binutils.SlackBuild:
Code:
# Differentiate between BSD strings and GNU strings
( cd $PKG/usr/bin ; mv strings strings-GNU )
Back to top
View user's profile Send private message 
Trobin

Joined: 18 Aug 2005
Posts: 907
Location: BC Canada

PostPosted: Sat 11 Jan 2014, 12:25    Post subject:  

Is src2pkg still available. All I got. from trying the link, is a 404 not found page.

Thank you.

_________________
http://speakpup.blogspot.com
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 1520
Location: Worcestershire, UK

PostPosted: Sat 11 Jan 2014, 12:39    Post subject:  

Trobin wrote:
Is src2pkg still available. All I got. from trying the link, is a 404 not found page.

Thank you.


If you follow the path rather the full link you find it is now:

http://distro.ibiblio.org/amigolinux/download/src2pkg/src2pkg-2.91/src2pkg-2.91-noarch-1.pet

Cheers
peebee

_________________
LxPup-14.10 = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
anikin

Joined: 10 May 2012
Posts: 529

PostPosted: Sun 26 Jan 2014, 10:04    Post subject:  

Hi amigo,

I can't install src2pkg in Raring-5.6.94.
src2pkg.jpg
 Description   
 Filesize   56.7 KB
 Viewed   355 Time(s)

src2pkg.jpg

Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2279

PostPosted: Sun 26 Jan 2014, 14:08    Post subject:  

Can you check to see if the package (src2pkg-helpers) was created at the location it shows? If so, try installing it manually.
Back to top
View user's profile Send private message 
anikin

Joined: 10 May 2012
Posts: 529

PostPosted: Mon 27 Jan 2014, 05:54    Post subject:  

Hi amigo,

Installed successfully as follows: when the installation progressed to the failure point, I opened the location dir - the package was there. Did nothing, closed Rox, installation completed without issues. But, if I don't open the location dir, installation fails. Mystery. Not a big deal, though.

Did a couple test runs - works absolutely great.

BTW, src2pkg, as I discovered accidentally, has its own wiki: http://www.src2pkg.net.

Thank you, very much for this tool.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2279

PostPosted: Mon 27 Jan 2014, 10:34    Post subject:  

"when the installation progressed to the failure point, I opened the location dir - the package was there. Did nothing, closed Rox, installation completed without issues." That wouldn't make sense to anyone else, but I think I see from that what may be going wrong -the pinstall.sh script is not exiting properly. But nobody else has reported such an issue...
Back to top
View user's profile Send private message 
anikin

Joined: 10 May 2012
Posts: 529

PostPosted: Mon 27 Jan 2014, 17:37    Post subject:  

amigo,

I have a question regarding some settings, namely cflags. They are supposed to be set in src2pkg.conf., that's pretty straightforward. I can't find where the 'O level' resides. Exporting my own cflags with O3, Os, doesn't seem to work. I'd like to control those directly.

Thank you in advance.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.0861s ][ Queries: 12 (0.0050s) ][ GZIP on ]