[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian Packaging of Shared Library on raspbian wheezy (raspberry pi)



On Wed, Oct 23, 2013 at 1:58 AM, Andrew Bakin wrote:

> 1) Should I be trying to use the build.sh script at all? If not, I need a
> mechanism for copying some files in the deb package (a udev rule). I know I
> can do this in debian/rules - more reading required.

If build.sh is the upstream supported way to install the software to
DESTDIR then yes the debian/rules file should call build.sh. The
default for debhelper's dh_auto_install is to run `make install` for
Makefile based projects, so you will need to add an
override_dh_auto_install target to debian/rules that calls build.sh in
the appropriate way.

How upstream installs files to DESTDIR is out of scope for Debian, as
long as it is relatively sane. Most Makefile based projects use an
install target to install files to DESTDIR and automake is a popular
way to generate the relevant Makefile snippets needed to do that.

> 2) Should I use dh_make -s or dh_make -l (single binary or library)? I used
> -l as you might expect but ran into all sorts of problems with laika-dev
> asking for files in usr/include which I didn't understand.

Please read the library packaging sections of Debian Policy to
understand more about library packaging. You should use -l since this
is a library.

> 3) Also, I have used dh_make --native to stop quilt complaining about
> upstream modifications. I don't understand this part yet so have bypassed
> it. Is this an issue?

Only Debian-specific software like apt or dpkg should use native packaging.

> I originally planned to have the same deb contain some python packages but I
> have decided to split it up so the python stuff gets a package of its own
> which depends on laika-1.0.0. Is this the right way to go?

That sounds like a reasonable option.

Since you appear to be the upstream author of the software you are
packaging, please read our upstream guide:

https://wiki.debian.org/UpstreamGuide

Since you appear to be using the Raspberry Pi, please read our wiki page:

https://wiki.debian.org/RaspberryPi

-- 
bye,
pabs

http://wiki.debian.org/PaulWise


Reply to: