Control: retitle -1 libi2util-dev: Please build libI2util.a with -fPIC
Control: reassign -1 libi2util-dev 1.2-2

Hi Raoul,

Thanks for your quick response.

On 09/15/2016 09:31 AM, Raoul Borenius wrote:
> Hi Balint,
> On Sun, Sep 11, 2016 at 12:46:28PM +0200, Balint Reczey wrote:
>> Source: bwctl
>> Version: 1.5.4+dfsg1-1
>> Severity: important
>> User:
>> Usertags: pie-bindnow-20160906
>> Justification: FTBFS on amd64 with extra hardening
>> Hi,
>> During a rebuild of all packages in sid, your package failed to build on
>> amd64 with patched GCC and dpkg.
>> The rebuild tested if packages are ready for a transition
>> enabling PIE and bindnow for amd64.
>> For more information about the changes to sid's dpkg and GCC please
>> visit:
>> Relevant part (hopefully):
>> ...
>> checking whether optreset is declared... no
>> checking whether fseeko is declared... yes
>> checking for library containing I2AddrByNode... no
>> configure: error: Couldn't find I2util library
> The reason for this seems to be that the I2util library wasn't
> built with 'PIC' (I2util only ships a static library).

Indeed, updated bug to reflect that. Thanks for the triaging!

> I'll rebuild I2util as soon as there is a policy change for
> static libraries.

Changing the Policy takes quite a long time and current one
also allows exceptions:

 10.2 Libraries
... (paragraph about shared libs)

As to the static libraries, the common case is not to have relocatable
code, since there is no benefit, unless in specific cases; therefore the
static version must not be compiled with the -fPIC flag. Any exception
to this rule should be discussed on the mailing list, and the reasons for compiling with the
-fPIC flag must be recorded in the file README.Debian. [86]

In other words, if both a shared and a static library is being built,
each source unit (*.c, for example, for C files) will need to be
compiled twice, for the normal case.

I have already asked for many exceptions on d-d:

If you agree with the proposed change please add i2util to the list and
maybe support the request. It would be nice to see at least one positive
answer to call it a discussion. :-)

I would really love to make the transition happen before the freeze
and asking for exception allowed by the current policy is the most
straightforward way to help that.


Reply via email to