[Bug 256078] textproc/libxml2: Update to 2.9.12 - WIP

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 22 May 2021 11:38:02 +0000

            Bug ID: 256078
           Summary: textproc/libxml2: Update to 2.9.12 - WIP
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: http://www.xmlsoft.org/news.html
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: desktop_at_FreeBSD.org
          Reporter: daniel.engberg.lists_at_pyret.net
             Flags: maintainer-feedback?(desktop_at_FreeBSD.org)
          Assignee: desktop_at_FreeBSD.org

Created attachment 225170
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225170&action=edit
Patch for libxml2 (WIP)


I've been hacking on libxml2 a bit including converting it to CMake and would
like some input, there are some differences between current version and the new
version that I'm not sure about on how to handle.

 -- CMAKE --
prefix is expanded
XML2_LIBS="-lxml2 -lz -llzma -pthread   -lm"

 -- Autotools --
XML2_LIBS="-lxml2 -lz  -L/usr/lib -llzma  -L/usr/lib  -lm"

 -- CMAKE --
Libs.private:  -pthread -lz -llzma  -lm

 -- Autotools --
Libs.private:  -lz  -L/usr/lib -llzma -L/usr/lib -lm

Is -L/usr/lib needed? From what I can tell CMake doesn't have a variable for
this, suggestions are welcome. In worst case we can hardcode it.

Current version in ports forces -DPIC cflag, is this needed?

make test passes on 13-STABLE (amd64)

Motivation for moving to CMake is mainly because it's faster and much easier to
debug, I do plan to upstream as many changes as possible but perhaps it's
futile effort?

I'm not sure how to handle py-libxml2 in a sane way. :/

Note for users:

Changes for 2.9.12

Thanks in advance,

You are receiving this mail because:
You are the assignee for the bug.
Received on Sat May 22 2021 - 11:38:02 UTC

Original text of this message