[MacPorts] #67874: mosquitto: update to 2.0.16 (was: mosquitto: update to 2.0.15)

MacPorts noreply at macports.org
Sat Aug 19 19:37:03 UTC 2023


#67874: mosquitto: update to 2.0.16
------------------------+----------------------
  Reporter:  danh1979   |      Owner:  slewsys
      Type:  update     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.8.1
Resolution:             |   Keywords:  haspatch
      Port:  mosquitto  |
------------------------+----------------------
Description changed by danh1979:

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..5271927c 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.15
> +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  c669450aff623dd5c9c5e2b6306975139ea95117 \
> +                    sha256
> 4735b1d32e3f91c7a8896741d88a3022e89730a1ee897946decfa0df27039ac6 \
> +                    size    792632
>
>  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:

 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)
 +
   }}}
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/67874#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list