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

Re: Fwd: Re: [MoM] ampl-netlib-solvers



Hi Andreas,

Thanks for the answer.


On 9/24/20 10:06 AM, Andreas Tille wrote:
Hi Andrei,

On Wed, Sep 23, 2020 at 08:30:56PM +0200, Andrei Rozanski wrote:
Just to check if you got my previous mail.
Thanks for checking.  That's perfectly welcome and in this case very
sensible.  I confirm I've got the mail, checked the result ... and got
distracted and forgot. :-(

The thing is that I was wondering why while the symlink is set inside
the resulting tarball the actual *.a lib was missing.  The answer was
simple - the sequence in the debian/*links file was wrong.

Ok. I have removed the .links file and changed d/rules. (commit fb3ed2f5b9a313134a7abbffe23159b8f6fb4eb6)


Thanks!

Best,

AndreiR


Unfortunately that did not seem to help.  In my opinion we should really
rename that file and this can be done by

     override_dh_install:
	dh_install
	mv ...

Once a user want to link against this library the option is -lamplsolver
and the file that the linker is seeking for is libamplsolver.a.  So I
do not see any point in keeping the original name.

Kind regards and sorry for the delay

      Andreas.
Thanks!
Best
AndreiR

--- Forwarded message ---
From: Andrei Rozanski rozanskide@gmail.com
Date: September 21, 2020 09:56:40
Subject: Re: [MoM] ampl-netlib-solvers
To: debian-med@lists.debian.org

Hi Andreas,


Many thanks for reaching out and sorry for the delay in getting back to you.

I was reading and trying to understand a bit more of the whole process.
I guess some of the steps on packaging are still not clear to me.

I have added d/ampl-netlib-solvers.links as Aaron has kindly suggested
(thanks Aaron!). (commit 1d6f7cabaf956738f7e6b7adafa24e9b53d66746)


Thanks,

Best

AndreiR




On 9/21/20 9:03 AM, Andreas Tille wrote:
Hi Andrei,

is the task to rename the *.a file to lib*.a clear?  Do you have
any problem with this.  (If its just spare time issue at your side
that's fine.  I'm just checking whether you need more help.)

Kind regards

Andreas.

On Wed, Sep 16, 2020 at 06:10:50AM +0200, Andreas Tille wrote:
On Tue, Sep 15, 2020 at 03:51:50PM -0400, Aaron M. Ucko wrote:
Andreas Tille <andreas@an3as.eu> writes:

I: ampl-netlib-solvers: unstripped-static-library
usr/lib/x86_64-linux-gnu/amplsolver.a(asldate.o)
[...]
I have not seen this info before but considering the size of
usr/lib/x86_64-linux-gnu/amplsolver.a I suspect all needed libraries
are statically linked which is what we do not want.
Not necessarily; the library may in fact simply be unstripped.  In
particular, it looks like dh_strip covers static (*.a) libraries only
when their names start with the usual "lib" prefix.  If you specifically
need an unprefixed name, I suppose it would work to install the library
as libamplsolver.a so that dh_strip will see it, and direct dh_link to
establish an unprefixed symlink.  If you're using Debhelper level 13 or
higher, you can do so without touching debian/rules by simply listing

usr/lib/${DEB_HOST_MULTIARCH}/libamplsolver.a
usr/lib/${DEB_HOST_MULTIARCH}/amplsolver.a

in debian/ampl-netlib-solvers.links.
I admit that would have been my next suggestion to name the file lib*.a.
I did not expexted that this might solve the issue that the library
might be unstripped right now.  Thanks a lot for the hint.

Making a shared version of this library might be a good idea regardless.
Definitely.  It will be the next step.

Thanks a lot for your hints

Andreas.

--
http://fam-tille.de


Reply to: