Page MenuHomeFreeBSD

Add a stage-qa check to check for the existence of SONAME in .so's.
ClosedPublic

Authored by mat on Aug 9 2016, 10:23 PM.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mat retitled this revision from to Add a stage-qa check to check for the existence of SONAME in .so's..
mat updated this object.
mat edited the test plan for this revision. (Show Details)

This probably needs special handling for ports that bundle libraries purposely with no SONAME. I think the wine and openoffice ports do this.

On the other hand, is this really a pkg bug?

mat edited edge metadata.
  • Incorporate the soname checks in proxydeps.
mat edited edge metadata.
  • Make it an error, it is BAD.

The fact that a .so doesn't have a SONAME is only a warning, because, hey, it may not be important.

On the other hand the fact that something uses a .so from another port without a SONAME is bad as pkg won't keep track of it.

I'm sure @bapt will say that every .so needs to have a SONAME :-)

Only the libraries in the form libbla.so.X needs a soname, otherwise when linked to a binary, the binary will be linked to libbla.so and not the libbla.so.X it should be looking for.
The check should not happen for ports that have the BUNDLE_LIBS=yes knob

This revision was automatically updated to reflect the committed changes.