On 2021/08/26 12:39, Florian Viehweger wrote:
> Hi,
> 
> I'm in the process of revising my submitted update to profanity to use
> libstrophe instead of libmesode.
> 
> The reason is that libmesode is deprecated upstream and libstrophe
> should be used.
> 
> libstrophe: portcheck, 'make lib-depends-check' and 'make tests' are
> happy.
> I've removed the patch, because libstrophe got LibreSSL support in
> 0.10.0.

libstrophe is not linked to the build in net/Makefile, that needs doing
too.

libmesode is then an orphan and it should probably be removed too.

> profanity: it builds fine and portcheck is happy. However I cannot
> install profanity and 'make lib-depends-check' complains with messages
> added at the end.
> 
> CC current maintainer of (deprecated) libstrophe. I'm happy to take
> mainainership.
> 
> I've added both diffs as attachments to avoid cluttering.
> 
> Any tips what I've done wrong?

> Error: Libraries in packing-lists in the ports tree
>        and libraries from installed packages don't match
> --- /tmp/dep_cache.6piHy1P81/portstree-profanity-0.11.0 Thu Aug 26 12:33:18 
> 2021
> +++ /tmp/dep_cache.6piHy1P81/inst-profanity-0.11.0      Thu Aug 26 12:33:18 
> 2021
> @@ -16,7 +16,7 @@
>  -W iconv.7.0
>  -W intl.7.0
>  -W m.10.1
> --W strophe.2.0
> +-W strophe.3.0
...

Maybe working on a copy of the port rather than the actual one in
/usr/ports/net/libstrophe?

> --- Makefile  23 Feb 2021 19:39:33 -0000      1.20

btw, if you send patches for multiple ports in one mail, it's helpful
to run "cvs diff" from a directory "above" (either /usr/ports or
/usr/ports/net in this case) so that they can all be applied with
one command

>                       --enable-omemo=yes \
>                       --enable-otr=yes
>  
> +post-patch:
> +             ${SUBST_CMD} ${WRKSRC}/configure.ac
> +

it's usually better to keep the targets together at the end, like they
were before.


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/Makefile,v
retrieving revision 1.1262
diff -u -p -r1.1262 Makefile
--- Makefile    24 Jul 2021 21:33:15 -0000      1.1262
+++ Makefile    26 Aug 2021 11:54:13 -0000
@@ -225,6 +225,7 @@
      SUBDIR += libsignal-protocol-c
      SUBDIR += libsmi
      SUBDIR += libst
+     SUBDIR += libstrophe
      SUBDIR += libtorrent
      SUBDIR += libtorrent-rasterbar
      SUBDIR += libunbound
Index: profanity/Makefile
===================================================================
RCS file: /cvs/ports/net/profanity/Makefile,v
retrieving revision 1.20
diff -u -p -r1.20 Makefile
--- profanity/Makefile  23 Feb 2021 19:39:33 -0000      1.20
+++ profanity/Makefile  26 Aug 2021 11:54:13 -0000
@@ -1,15 +1,14 @@
 # $OpenBSD: Makefile,v 1.20 2021/02/23 19:39:33 sthen Exp $
 
 COMMENT =      console based XMPP client
-DISTNAME =     profanity-0.10.0
+DISTNAME =     profanity-0.11.0
 CATEGORIES =   net
-REVISION =     0
 
 HOMEPAGE =     https://profanity-im.github.io/
 
 MAINTAINER =   Florian Viehweger <[email protected]>
 
-SHARED_LIBS +=  profanity                 0.0 # 0.0
+SHARED_LIBS +=  profanity                 1.0 # 0.0
 
 # GPLv3+
 PERMIT_PACKAGE =       Yes
@@ -18,7 +17,7 @@ MASTER_SITES =        https://profanity-im.gith
 
 WANTLIB += assuan c crypto curl curses ereadline expat ffi gcrypt
 WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gpg-error
-WANTLIB += gpgme iconv intl m mesode nghttp2 otr pcre pthread
+WANTLIB += gpgme iconv intl m strophe nghttp2 otr pcre pthread
 WANTLIB += ${MODPY_WANTLIB} signal-protocol-c sqlite3 ssl util z
 
 MODULES +=     lang/python
@@ -27,7 +26,7 @@ LIB_DEPENDS +=        databases/sqlite3 \
                devel/glib2 \
                devel/readline \
                net/curl \
-               net/libmesode \
+               net/libstrophe \
                net/libsignal-protocol-c \
                security/gpgme \
                security/libotr
Index: profanity/distinfo
===================================================================
RCS file: /cvs/ports/net/profanity/distinfo,v
retrieving revision 1.11
diff -u -p -r1.11 distinfo
--- profanity/distinfo  17 Jan 2021 17:08:09 -0000      1.11
+++ profanity/distinfo  26 Aug 2021 11:54:13 -0000
@@ -1,2 +1,2 @@
-SHA256 (profanity-0.10.0.tar.gz) = SgXjJZD57DhDDjNzW9As+hmbJXkitBFmE/I5Eso5/4w=
-SIZE (profanity-0.10.0.tar.gz) = 868180
+SHA256 (profanity-0.11.0.tar.gz) = P8mAmBb2kYbbuGCycYP2zSrvClKn0U4g5O9sOn8PNgY=
+SIZE (profanity-0.11.0.tar.gz) = 887566
Index: profanity/pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/profanity/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -r1.6 PLIST
--- profanity/pkg/PLIST 17 Jan 2021 17:08:09 -0000      1.6
+++ profanity/pkg/PLIST 26 Aug 2021 11:54:13 -0000
@@ -18,6 +18,7 @@ lib/libprofanity.la
 @man man/man1/profanity-bookmark.1
 @man man/man1/profanity-caps.1
 @man man/man1/profanity-carbons.1
+@man man/man1/profanity-changepassword.1
 @man man/man1/profanity-charset.1
 @man man/man1/profanity-clear.1
 @man man/man1/profanity-close.1
@@ -29,6 +30,7 @@ lib/libprofanity.la
 @man man/man1/profanity-correction.1
 @man man/man1/profanity-disco.1
 @man man/man1/profanity-disconnect.1
+@man man/man1/profanity-editor.1
 @man man/man1/profanity-executable.1
 @man man/man1/profanity-export.1
 @man man/man1/profanity-flash.1
@@ -47,6 +49,7 @@ lib/libprofanity.la
 @man man/man1/profanity-log.1
 @man man/man1/profanity-logging.1
 @man man/man1/profanity-mainwin.1
+@man man/man1/profanity-mam.1
 @man man/man1/profanity-msg.1
 @man man/man1/profanity-nick.1
 @man man/man1/profanity-notify.1
@@ -77,6 +80,7 @@ lib/libprofanity.la
 @man man/man1/profanity-script.1
 @man man/man1/profanity-sendfile.1
 @man man/man1/profanity-serversoftware.1
+@man man/man1/profanity-silence.1
 @man man/man1/profanity-slashguard.1
 @man man/man1/profanity-software.1
 @man man/man1/profanity-splash.1
Index: libstrophe/Makefile
===================================================================
RCS file: /cvs/ports/net/libstrophe/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- libstrophe/Makefile 12 Jul 2019 20:48:31 -0000      1.4
+++ libstrophe/Makefile 26 Aug 2021 11:54:13 -0000
@@ -2,16 +2,16 @@
 
 COMMENT =      simple, lightweight XMPP C library
 
-V =            0.9.2
+V =            0.10.1
 DISTNAME =     libstrophe-${V}
 
-SHARED_LIBS =  strophe                 2.0 # 1.0
+SHARED_LIBS =  strophe                 3.0 # 2.0
 
 CATEGORIES =   net devel
 
 HOMEPAGE =     http://strophe.im/libstrophe/
 
-MAINTAINER =   Rafael Sadowski <[email protected]>
+MAINTAINER =   Florian Viehweger <[email protected]>
 
 # Dual licensed: MIT and GPLv3
 PERMIT_PACKAGE =       Yes
@@ -34,6 +34,5 @@ MAKE_FLAGS =          CC="${CC}" CFLAGS="${CFLAG
 
 CONFIGURE_ENV +=       CPPFLAGS="-I${LOCALBASE}/include" \
                        LDFLAGS="-L${LOCALBASE}/lib"
-
 
 .include <bsd.port.mk>
Index: libstrophe/distinfo
===================================================================
RCS file: /cvs/ports/net/libstrophe/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- libstrophe/distinfo 29 Mar 2018 19:56:59 -0000      1.3
+++ libstrophe/distinfo 26 Aug 2021 11:54:13 -0000
@@ -1,2 +1,2 @@
-SHA256 (libstrophe-0.9.2.tar.gz) = eH5qO5K5i2HMToo+cWWTyYZOL+KlWl9JyecOzRfEdNc=
-SIZE (libstrophe-0.9.2.tar.gz) = 500459
+SHA256 (libstrophe-0.10.1.tar.gz) = 
SRjEcCns3qLeq0sPkzbKSouxLCi3KyzsOX2YZkuUx3E=
+SIZE (libstrophe-0.10.1.tar.gz) = 520649
Index: libstrophe/patches/patch-src_tls_openssl_c
===================================================================
RCS file: libstrophe/patches/patch-src_tls_openssl_c
diff -N libstrophe/patches/patch-src_tls_openssl_c
--- libstrophe/patches/patch-src_tls_openssl_c  29 Mar 2018 19:56:59 -0000      
1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,41 +0,0 @@
-$OpenBSD: patch-src_tls_openssl_c,v 1.1 2018/03/29 19:56:59 rsadowski Exp $
-
-Index: src/tls_openssl.c
---- src/tls_openssl.c.orig
-+++ src/tls_openssl.c
-@@ -51,7 +51,7 @@ static void _tls_log_error(xmpp_ctx_t *ctx);
- 
- void tls_initialize(void)
- {
--#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
-     SSL_library_init();
-     SSL_load_error_strings();
- #else
-@@ -66,14 +66,14 @@ void tls_shutdown(void)
-      * openssl after libstrophe finalization. Maybe better leak some fixed
-      * memory rather than cause random crashes of the main program.
-      */
--#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
-     ERR_free_strings();
-     EVP_cleanup();
-     CRYPTO_cleanup_all_ex_data();
--#if OPENSSL_VERSION_NUMBER >= 0x10002000L
-+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER)
-     SSL_COMP_free_compression_methods();
- #endif
--#if OPENSSL_VERSION_NUMBER < 0x10000000L
-+#if OPENSSL_VERSION_NUMBER < 0x10000000L || defined(LIBRESSL_VERSION_NUMBER)
-     ERR_remove_state(0);
- #else
-     ERR_remove_thread_state(NULL);
-@@ -120,7 +120,7 @@ tls_t *tls_new(xmpp_conn_t *conn)
-         /* Trust server's certificate when user sets the flag explicitly. */
-         mode = conn->tls_trust ? SSL_VERIFY_NONE : SSL_VERIFY_PEER;
-         SSL_set_verify(tls->ssl, mode, 0);
--#if OPENSSL_VERSION_NUMBER >= 0x10002000L
-+#if OPENSSL_VERSION_NUMBER >= 0x10002000L || !defined(LIBRESSL_VERSION_NUMBER)
-         /* Hostname verification is supported in OpenSSL 1.0.2 and newer. */
-         X509_VERIFY_PARAM *param = SSL_get0_param(tls->ssl);
- 
Index: libstrophe/pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/libstrophe/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- libstrophe/pkg/PLIST        25 Apr 2016 17:43:39 -0000      1.1.1.1
+++ libstrophe/pkg/PLIST        26 Aug 2021 11:54:13 -0000
@@ -1,6 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2016/04/25 17:43:39 tb Exp $
 include/strophe.h
-lib/libstrophe.a
+@static-lib lib/libstrophe.a
 lib/libstrophe.la
 @lib lib/libstrophe.so.${LIBstrophe_VERSION}
 lib/pkgconfig/libstrophe.pc

Reply via email to