[MacPorts] #67874: mosquitto: update to 2.0.20 (was: mosquitto: update to 2.0.16)
MacPorts
noreply at macports.org
Sun Dec 8 23:34:28 UTC 2024
#67874: mosquitto: update to 2.0.20
------------------------+----------------------
Reporter: danh1979 | Owner: slewsys
Type: update | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords: haspatch
Port: mosquitto |
------------------------+----------------------
Changes (by danh1979):
* version: 2.8.1 => 2.10.5
Old description:
> This was tested on Ventura 13.5 on M2 Pro by creating my own local
> Portfile and installing it from source. After some Internet-search-aided
> debugging, I found that I needed to:
> - add libcjson dependency
> - deal with missing symbols via the extra linker flag
> - deal with an xslt error by installing docbook XSL
>
> {{{
> #!div style="font-size: 80%"
> Code highlighting:
> {{{#!diff
> diff --git a/net/mosquitto/Portfile b/net/mosquitto/Portfile
> index 61e7927e..750e462f 100644
> --- a/net/mosquitto/Portfile
> +++ b/net/mosquitto/Portfile
> @@ -4,8 +4,8 @@ PortSystem 1.0
> PortGroup cmake 1.1
>
> name mosquitto
> -version 2.0.9
> -revision 1
> +version 2.0.16
> +revision 0
>
> categories net devel
> platforms darwin
> @@ -21,16 +21,18 @@ long_description \
> both C and C++ client libraries.
>
> homepage https://mosquitto.org
> -master_sites http://mosquitto.org/files/source/
> +master_sites ${homepage}/files/source/
>
> -checksums rmd160 6925455f51b6c79ebd160aba2f3709864aa5c05d \
> - sha256
> 1b8553ef64a1cf5e4f4cfbe098330ae612adccd3d37f35b2db6f6fab501b01d4 \
> - size 757878
> +checksums rmd160 1f0e5e1a1e700a06af52509fd132702ef7d04a1c \
> + sha256
> 638db9e43e89d243ea98d10d66e76ff376131217780decd01abaffacc66d8035 \
> + size 795906
>
> depends_build-append \
> - path:bin/xsltproc:libxslt
> + path:bin/xsltproc:libxslt \
> + port:docbook-xsl-nons
>
> depends_lib port:c-ares \
> + port:libcjson \
> port:libwebsockets \
> port:tcp_wrappers \
> path:lib/libssl.dylib:openssl
> @@ -38,6 +40,8 @@ depends_lib port:c-ares \
> depends_test-append \
> port:python27
>
> +patchfiles CMAKE_MODULE_LINKER_FLAGS.patch
> +
> configure.args-append \
> -DUSE_LIBWRAP:BOOL=ON \
> -DWITH_SRV:BOOL=ON \
> diff --git a/net/mosquitto/files/CMAKE_MODULE_LINKER_FLAGS.patch
> b/net/mosquitto/files/CMAKE_MODULE_LINKER_FLAGS.patch
> new file mode 100644
> index 00000000..ec3044ea
> --- /dev/null
> +++ b/net/mosquitto/files/CMAKE_MODULE_LINKER_FLAGS.patch
> @@ -0,0 +1,12 @@
> +--- CMakeLists.txt.orig 2023-08-03 23:00:17
> ++++ CMakeLists.txt 2023-08-03 23:00:13
> +@@ -20,7 +20,7 @@
> + endif (WIN32)
> +
> + if(APPLE)
> +- set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS
> "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS} -undefined dynamic_lookup")
> ++ set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}
> -undefined dynamic_lookup")
> + endif(APPLE)
> +
> + include(GNUInstallDirs)
> +
> }}}
> }}}
New description:
After some Internet-search-aided debugging, I found that I needed to:
- add libcjson dependency
- deal with missing symbols via the extra linker flag
- deal with an xslt error by installing docbook XSL
I tested a previous version of my patch to update to 2.0.16 on Ventura
13.5 on M2 Pro by creating my own local Portfile and installing it from
source.
Recently tested update to 2.0.20 on Sonoma 14.7.1 M2 Pro.
Github merge request to follow
--
--
Ticket URL: <https://trac.macports.org/ticket/67874#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list