I tried but it seems libfoo.install and libfoo-dev.install contents doesn't
have any filter effect. Despite of the contents of these files (as pattern:
lib*.so*, full name: libfoo.so.0.1.0 or full path name:
/usr/lib/libfoo.so.0.1.0) debuild always collected all files placed in
libfoo and libfoo-dev directories to build the packages, ignoring both
libfoo.install and libfoo-dev.install.
These .install files are used by debuild? or to perform some copy operation
while modifying the debian/rules Makefile?
The only way I get to work is modifying the debian/rules files by creating
directories and copying files manually.
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
# At beginning al files were copied in debian/tmp
# Add here commands to install the package into debian/tmp
# $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
# Files for libfoo-dev
# Create the directories
mkdir -p $(CURDIR)/debian/libfoo-dev/usr/lib
mkdir -p $(CURDIR)/debian/libfoo-dev/usr/include
# Copy all library files
cp $(CURDIR)/lib/lib*.a $(CURDIR)/debian/libfoo-dev/usr/lib
cp $(CURDIR)/lib/lib*.so.* $(CURDIR)/debian/libfoo-dev/usr/lib
# Copy all header files
cp $(CURDIR)/include/*.h $(CURDIR)/debian/libfoo-dev/usr/include
# Now files for libfoo
# Create the directories
mkdir -p $(CURDIR)/debian/libfoo/usr/lib
# Copy all library files
cp $(CURDIR)/lib/lib*.so.* $(CURDIR)/debian/libfoo-dev/usr/lib
This is a workaround for me but I would like to use the "good" way if exists
to do this instead of that "dirty" copy.
Regards.
2009/10/4 Harry Rickards <[email protected]>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 04/10/09 14:54, Alfonso Ruzafa wrote:
> <snip>
> > But this copies ALL files and directories and the 2 .deb generated
> > packages contains all .so, .a and .h files. Then I found 2 files:
> > libfoo1.install and libfoo-dev.install that are but patterns for files
> > that are to be installed (include) in each package. How can I use this
> > files? It's any automatic way to do this? Do I need modify the
> > debian/rules or the main Makefile or both?
> >
> > Thanks in advance.
> >
>
> Try putting a list of all files you need in libfoo1 in libfoo1.install,
> and all files you need in libfoo-dev in libfoo-dev.install.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iJwEAQECAAYFAkrIqlIACgkQ+9DWHFhEn2/zAQQAnlavQBcC6rmUV0FK8DFLWFdh
> w+g6fH28/Y1V9OYu4VItY8Qi9gO0Q/B1KMXCuJwa6FDuI/sZUXbEY9PygOZZRROo
> 6ENSkSD4b6U4xrqRUoPSP6xs6F0jduaSL2t+/Udz9GhIbYkEIThtne6WJWiInKi2
> adc9wM8B+0i4W8nSe/8=
> =zB8u
> -----END PGP SIGNATURE-----
>
>
> --
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact
> [email protected]
>
>
--
http://www.legadodekain.net