Created attachment 223565 [details] Patch for expat2 Update expat to 2.3.0 Make static library optional and not enabled by default Compile and tested on FreeBSD 13.0-RC1 (amd64) (make, make check-plist, make test) Poudriere testport OK 12.2-RELEASE (amd64) Poudriere testport OK 11.4-RELEASE (amd64)
We should do a exp-run on this to avoid unnecessary breakage
Moin moin Thanks for the patch -- IMO the STATIC option and thereby the library could be dropped completely. mfg Toibas
Moin moin desktop@ would like to ask for an exp-run of the attached patch. mfg Tobias
Exp-run looks fine
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d06d7188f31e5df646b41f7a8abf9a9cfd74578b commit d06d7188f31e5df646b41f7a8abf9a9cfd74578b Author: Daniel Engberg <daniel.engberg.lists@pyret.net> AuthorDate: 2021-04-14 17:36:21 +0000 Commit: Tobias C. Berner <tcberner@FreeBSD.org> CommitDate: 2021-04-14 17:38:18 +0000 textproc/expat: update to 2.3.0 - Move static libraries behind an option STATIC. This will likely be dropped completely in the next update. PR: 254543 Exp-run by: antoine textproc/expat2/Makefile | 11 +++++++---- textproc/expat2/distinfo | 6 +++--- textproc/expat2/pkg-plist | 8 ++++++-- 3 files changed, 16 insertions(+), 9 deletions(-)
Committed, thanks for the patch and the exp-run. mfg Tobias
Is there some specific reason WHY the STATIC LIBRARY option has been dropped? Like a security hole ... or something else? Thanks.
It's optional, just use the STATIC option if you need it.
(In reply to Daniel Engberg from comment #8) Yes, I have already done that, I have built 'textproc/expat2' with STATIC enabled to build 'sysutils/mstflint' as STATIC port. That is the reason I ask because WHY the default switched to disable STATIC. Regards, vermaden
The short answer is because the tree utilizes shared libraries by default and builds fine without it, currently it's not possible to satisfy all possible options in consumers.
(In reply to Daniel Engberg from comment #10) Sure, just checking. Maybe its a potential candidate for 'flavor' with STATIC enabled?