[Debian-med-packaging] FW4SPL package

Flavien Bridault fbridault at ircad.fr
Fri Nov 25 11:29:02 UTC 2016



*Flavien BRIDAULT*
Ingénieur de Recherche

fbridault at ircad.fr

*IRCAD France*
1, place de l'Hôpital - 67091 Strasbourg Cedex - FRANCE

http://www.ircad.fr/ <http://www.ircad.fr/>


Le 23/11/2016 à 18:36, Andreas Tille a écrit :
> Hi Flavien,
> 
> On Wed, Nov 23, 2016 at 03:08:58PM +0100, Andreas Tille wrote:
>>> 5. Depending on your answer on the previous points, can I push my
>>> modifications on camp and fw4spl repos ?
>>
>> Yes, please do in any case.  May be my answers would be even better. :-)
> 
> I noticed you did so for camp.  I checked it and pushed some minor
> changes.  Please git pull.
> 
> The only remaining issue is that the package does not respect
> multiarch[1].  I think it would be a good thing to do.  I also recommend
> to use d-shlibs to make sure the library files are right in place and
> the control information is correct.  While it is some work to get
> d-shlibs correctly in the first place it is quite helpful in the long
> run.  Usual examples are quite helpful.  Here is a random one:
> 
>    gbp clone https://anonscm.debian.org/git/debian-med/libdisorder.git
> 
> Feel free to either ignore the hint for d-shlibs or ask me for help if
> you have som trouble with it.

Ok, I tried to support multiarch and I have a working version, but it
doesn't use d-shlibs. I'm trying now to switch to d-shlibmove, which
looked quite simple at first glimpse. I removed the two .install files,
added shlibs depends in control, and added the following in rules:

override_dh_install:
	dh_install
	d-shlibmove \
		--commit --multiarch --exclude-a --exclude-la \
		--movedev debian/tmp/usr/include/* usr/include \
		debian/tmp/usr/lib/*.so

However, the package fails, apparently because of the --movedev arguments:

make[1]: Entering directory '/home/flav/dev/camp'
dh_install
d-shlibmove \
        --commit --multiarch --exclude-a --exclude-la \
        --movedev debian/tmp/usr/include/* usr/include \
        debian/tmp/usr/lib/*.so
Library package automatic movement utility
/usr/bin/d-shlibmove: [usr/include] is not a valid shared library file name
debian/rules:9: recipe for target 'override_dh_install' failed

Hopelessly I didn't managed to find a similar error in a web search...
If I remove the --movedev argument, which doesn't seem to be a good idea
anyway the d-shlibmove command succeed but then I end up with a conflict
failure few steps later:

dh_install
d-shlibmove \
        --commit --multiarch --exclude-a --exclude-la \
        debian/tmp/usr/lib/*.so
Library package automatic movement utility
set -e
install -d -m 755 debian/libcamp0.7-dev/usr/lib/x86_64-linux-gnu
install -d -m 755 debian/libcamp0.7/usr/lib/x86_64-linux-gnu
mv debian/tmp/usr/lib/libcamp.so
debian/libcamp0.7-dev/usr/lib/x86_64-linux-gnu
mv /home/flav/dev/camp/debian/tmp/usr/lib/libcamp.so.0.7
debian/libcamp0.7/usr/lib/x86_64-linux-gnu
mv /home/flav/dev/camp/debian/tmp/usr/lib/libcamp.so.0.7.1.5
debian/libcamp0.7/usr/lib/x86_64-linux-gnu
PKGDEV=libcamp0.7-dev
PKGSHL=libcamp0.7
E: line [Conflicts:.*libcamp-dev] not found in debian/control section
for libcamp0.7-dev
Error occurred, aborting
debian/rules:9: recipe for target 'override_dh_install' failed

Do you have any idea ? I joined a diff to this email, I can also push
the faulty commit if necessary.

Thanks a lot for your time.

> 
> Kind regards and thanks for your work on this
> 
>       Andreas.
> 
> [1] https://wiki.debian.org/MultiArch/Hints
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: camp_shlibs.diff
Type: text/x-patch
Size: 1844 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20161125/a759f4a1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20161125/a759f4a1/attachment.sig>


More information about the Debian-med-packaging mailing list