Re: One source package and more then 1 deb
On 2004-05-01 Matthijs <matthijs@cacholong.nl> wrote:
> On Sat, 2004-05-01 at 12:03, Andreas Metzler wrote:
> > On 2004-05-01 Matthijs <matthijs@cacholong.nl> wrote:
> > > A libinklevel1*.deb and a libinklevel-dev*.deb. But when i
> > > dpkg-buildpackage dh_installdirs create two directories:
> > > debian/tmp and debian/libinklevel1. When i then look in these two debs
> > > all the files are installed into libinklevel-dev*.deb and nothing in
> > > libinklevel1*.deb
> > > I've this install rule in debian/rules:
> > > $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/usr
> > > So all files are going into debian/tmp and not also going into
> > > libinklevel1.
> > > How can i change this ?
> > [...]
> >
> > You don't. You use dh_install or dh_movefiles to move the files
> > in debian/libinklevel1 or debian/libinklevel-dev respectively after
> > $(MAKE) install.
> I've tried to use dh_install in the install target:
> install: build
> dh_testdir
> dh_testroot
> dh_clean -k
> dh_installdirs
> # Add here commands to install the package into debian/tmp
> $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/usr
> # Install the files in their own packages.
> dh_install -plibinklevel1
> dh_install -plibinklevel-dev
> But this won't work. The libinklevel-dev deb has a all files
debhelper(7):
V2 In this mode, debhelper will consistently use debian/<package> as
the package tree directory for every package that is built.
you are using debhelper compatibility level 1, therefore debhelper
just uses the files in debian/tmp for the first package in
debian/control and ignores debian/<package>.
[...]
> dh_install should get these files and move them into the appropriate
> directories but with my deb dh_install does nothing.
ametzler@downhill:/tmp/libinklevel-0.6.2$ cat debian/libinklevel-dev.install
usr/include/*
ametzler@downhill:/tmp/libinklevel-0.6.2$ ls usr/include/*
ls: usr/include/*: No such file or directory
ametzler@downhill:/tmp/libinklevel-0.6.2$ ls debian/tmp/usr/include/*
debian/tmp/usr/include/inklevel.h
BTW why is the package called libinklevel1 although the soname is
libinklevel.so.2?
cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
Reply to: