Opened 14 months ago

Last modified 13 months ago

#67874 assigned update

update mosquitto to 2.0.15 — at Initial Version

Reported by: danh1979 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: haspatch Cc: slewsys (Andrew L. Moore)
Port: mosquitto

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

Code highlighting:

  • net/mosquitto/Portfile

    diff --git a/net/mosquitto/Portfile b/net/mosquitto/Portfile
    index 61e7927e..3bfb6f78 100644
    a b PortSystem 1.0 
    44PortGroup           cmake 1.1
    55
    66name                mosquitto
    7 version             2.0.9
     7version             2.0.15
    88revision            1
    99
    1010categories          net devel
    long_description \ 
    2323homepage            https://mosquitto.org
    2424master_sites        http://mosquitto.org/files/source/
    2525
    26 checksums           rmd160  6925455f51b6c79ebd160aba2f3709864aa5c05d \
    27                     sha256  1b8553ef64a1cf5e4f4cfbe098330ae612adccd3d37f35b2db6f6fab501b01d4 \
    28                     size    757878
     26checksums           rmd160  c669450aff623dd5c9c5e2b6306975139ea95117 \
     27                    sha256  4735b1d32e3f91c7a8896741d88a3022e89730a1ee897946decfa0df27039ac6 \
     28                    size    792632
    2929
    3030depends_build-append \
    31                     path:bin/xsltproc:libxslt
     31                    path:bin/xsltproc:libxslt \
     32                    port:docbook-xsl-nons
    3233
    3334depends_lib         port:c-ares \
     35                    port:libcjson \
    3436                    port:libwebsockets \
    3537                    port:tcp_wrappers \
    3638                    path:lib/libssl.dylib:openssl
    depends_test-append \ 
    4143configure.args-append \
    4244                    -DUSE_LIBWRAP:BOOL=ON \
    4345                    -DWITH_SRV:BOOL=ON \
    44                     -DWITH_WEBSOCKETS:BOOL=ON
     46                    -DWITH_WEBSOCKETS:BOOL=ON \
     47                    -DCMAKE_MODULE_LINKER_FLAGS="-undefined dynamic_lookup" \
    4548
    4649test.run            yes
    4750test.target         -C ${build.dir}/test test

Change History (0)

Note: See TracTickets for help on using tickets.