Building packages

New to SolydXK? This is the place to start.
Please check the other subforums to see if there's a more suitable place for your question.
toothandnail
Posts: 94
Joined: 02 Jun 2013 18:45
Location: Oxfordshire, UK

Building packages

Postby toothandnail » 23 Jul 2013 12:31

One of the things I've always found difficult with Debian based distros is creating my own packages. I'm familiar enough with Slackware and Arch to build things that I need which aren't available from the repositories. With Debian, I find things much more difficult.

So I'm wondering - is there a dummies guide to building packages? In the past I've used checkinstall, but I'm having trouble with it under SolydX - I've not managed to convince it to just produce the package, so I keep getting permission denied errors. Not to mention that I'd like to do the job properly anyway.

As it is, I've a couple of packages I'd like to build, but I'm not getting very far with them....

Paul.

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: Building packages

Postby zerozero » 23 Jul 2013 20:25

it's interesting that checkinstall gives you permission denied (i've used several times without issues)

since i found this >> http://forums.debian.net/viewtopic.php?p=228570 i only use checkinstall when nothing else works; dh-make is so much easier and clean.

and we have a nice project coming up for community packaging 8-)
bliss of ignorance

toothandnail
Posts: 94
Joined: 02 Jun 2013 18:45
Location: Oxfordshire, UK

Re: Building packages

Postby toothandnail » 23 Jul 2013 21:02

zerozero wrote:it's interesting that checkinstall gives you permission denied (i've used several times without issues)
Maybe I'm doing something wrong. Haven't used checkinstall for a long time, don't remember having any problems with it the last time I did (under SalineOS).

Using this command

Code: Select all

checkinstall --install=no --fstrans=yes make install
this is the error I get:

Code: Select all

Installing with make install...

========================= Installation results ===========================
Making install in m4
make[1]: Entering directory `/home/fang/build/synbak/synbak-2.1/m4'
make[2]: Entering directory `/home/fang/build/synbak/synbak-2.1/m4'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/fang/build/synbak/synbak-2.1/m4'
make[1]: Leaving directory `/home/fang/build/synbak/synbak-2.1/m4'
Making install in src
make[1]: Entering directory `/home/fang/build/synbak/synbak-2.1/src'
Making install in method
make[2]: Entering directory `/home/fang/build/synbak/synbak-2.1/src/method'
Making install in dar
make[3]: Entering directory `/home/fang/build/synbak/synbak-2.1/src/method/dar'
make[4]: Entering directory `/home/fang/build/synbak/synbak-2.1/src/method/dar'
make[4]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/usr/share/synbak/method/dar'
/bin/mkdir: cannot create directory `/usr/share/synbak': No such file or directory
make[4]: *** [install-methodDATA] Error 1
make[4]: Leaving directory `/home/fang/build/synbak/synbak-2.1/src/method/dar'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/fang/build/synbak/synbak-2.1/src/method/dar'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/fang/build/synbak/synbak-2.1/src/method'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/fang/build/synbak/synbak-2.1/src'
make: *** [install-recursive] Error 1

****  Installation failed. Aborting package creation.
I thought I had attempts to actually install the software turned off, but it doesn't seem to be working...
since i found this >> http://forums.debian.net/viewtopic.php?p=228570 i only use checkinstall when nothing else works; dh-make is so much easier and clean.
Thanks - I'll take a look at that. I've a couple of things that aren't in any of the Debian repos that I need, so that may give me a better shot at it.
and we have a nice project coming up for community packaging 8-)
:) Sounds interesting. I spent a couple of years building packages for Vector Linux and Zenwalk, and have done a bit of packaging for Arch as well. Even built a few rpm packages for SME server (I run a number of internet gateways for local small business using SME server and SMS for internal file servers).

Thanks for the suggestion. I'll give it a try.

Paul.


Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 11 guests