Opened 9 months ago

Closed 8 months ago

#67950 closed enhancement (fixed)

libgpg-error: add a static lib to the installation

Reported by: barracuda156 Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: haspatch Cc:
Port: libgpg-error

Description

Is it possible to install both dynamic and static libs?

Change History (7)

comment:1 Changed 9 months ago by Schamschula (Marius Schamschula)

Yes: --enable-static. It is disabled by default.

comment:2 in reply to:  1 Changed 9 months ago by barracuda156

Replying to Schamschula:

Yes: --enable-static. It is disabled by default.

Is if fine to enable it by default or make a non-default variant? Instead of locally hacking the port.

comment:3 Changed 9 months ago by Schamschula (Marius Schamschula)

I would prefer a non-default variant.

Static libraries should only be used for bootstrapping within MacPorts.

comment:4 in reply to:  3 Changed 9 months ago by barracuda156

Replying to Schamschula:

I would prefer a non-default variant.

I just thought that this will make it impossible to depend on it for another port. Still better than nothing, of course.

Static libraries should only be used for bootstrapping within MacPorts.

Numerous ports in fact install both.

Last edited 9 months ago by barracuda156 (previous) (diff)

comment:5 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

It has been a de-facto standard in MacPorts ports since forever to install static libraries as well, when possible, although I don't know who actually needs static libraries. (In cmake, it's not typically possible without some workarounds, but this software use autotools where it's typically easy, as shown in the PR.) We don't hide static libraries in a variant because that makes it impossible for it to be used as a dependency.

If you think this practice should be changed, please gain consensus about that on the mailing list first. We should be consistent about this across the ports collection.

comment:6 Changed 8 months ago by Schamschula (Marius Schamschula)

I stand corrected.

comment:7 Changed 8 months ago by herbygillot (Herby Gillot)

Resolution: fixed
Status: assignedclosed

In 9352521cfca366b2a4b4ac6cb76d66dd34b804a9/macports-ports (master):

libgpg-error: additionally build static libs

Fixes: #67950

Note: See TracTickets for help on using tickets.