From nobody Fri Jan 10 13:21:23 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YV2Ng4cTlz5kK5n; Fri, 10 Jan 2025 13:21:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YV2Ng2rTCz4j6C; Fri, 10 Jan 2025 13:21:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736515283; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tSzTdMdLhSUz5Ym9UVqG+14/ZvhVk3l/wq8Bp831qrk=; b=KCzz5T/5CqWCgNj8KbCBev1qmGDzo9EinNKLnNVHfrkSjFOmcjss7QwFssMT+ViPQK4UV7 tvY7v2nCLRUgHnCqA7n2dkLOQ6udrcaE/oHE1sO0u2RcZoyyFgUmFt5/h+sS4HSw0kN+Ag kNo/AsKEAKuCzuVaBiJQC34fvOYNv7DntIqDJbNXoiGgQXRiq7oS8fLtdjtUaqlLef4owD tvjHU2MBssUiQ/8TbymH/6SLSuezZjvQ+80j5LlU5GQcG5SEHtXcr0xpmyEWgfxjSbQGlh O4keR+ENf/ZNFSahr2REEyf/MIrAbodBp1L1Dv6xjQch2n2qz/pYhVAIvSTf4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736515283; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tSzTdMdLhSUz5Ym9UVqG+14/ZvhVk3l/wq8Bp831qrk=; b=bacrf9l528CK93ERzZSaGGhktdITN9ZD1mnrWeOj9nl/IPZW/KBeVsg5RDLLYkeodcLicD fGtYqWi0atN7506ZYJt1VndMw5mu59QxEi1iWA4DnxROfSWNd+jVHEtEC3hElWuNp4g9iL Ae5hSlnqsaETzo3MY3d+bC7ISdLYhPAJI7tY7rSGHplGlMVA4GHqjkfSYwjXdjpkx12G/Y T9+TjG/B/l7U9p+6cn6YZpTCTLpp3tePNDiENenJ3dSAHndiowN4MHJdZtQ61FrOiHhtHT FBIJpjTl5eykfGyrXlbzqN/WqCA1pa25vhNVYEmPIdfQWQIrAge/5l1gZgFQWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736515283; a=rsa-sha256; cv=none; b=FJrG8+OcvVCzuxtOgx5jqyo+DrARAiol0PbzJcneULABjvubn401FDKCKMaVt+nGKYsr7V sz7Sinfs6XJKqMe9awkN3lZ/d2A03aIq5pKXN4RwaykSKNLXMkvN/u7nJ3gYlp/fbEXAOg /7ZFHIPx99528IbJdUbP2NzToNureGCBnZ/jldBP4ZDxh9bBZ0AWBAdz5C/PFwtdQUIffV KZHO+yMIegi6RIuxKgONOOf1h2tWrrd3JKr4lP4RklDlN00ZBokAgWFk/PaDxIaTN0U20y Ga7dZvbx9bfsTqr+qdSzUKgQKfpj9u25fewGxINxoeHSjY2v1n5IxN87eBLksg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YV2Ng2C7rz1Cgc; Fri, 10 Jan 2025 13:21:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50ADLNO5063547; Fri, 10 Jan 2025 13:21:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50ADLNUe063544; Fri, 10 Jan 2025 13:21:23 GMT (envelope-from git) Date: Fri, 10 Jan 2025 13:21:23 GMT Message-Id: <202501101321.50ADLNUe063544@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Olivier Certner Subject: git: 0009322d2223 - main - devel/libkiwix: Update 13.1.0 =?utf-8?Q?=E2=86=92?= 14.0.0 again List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0009322d2223e315dfde0563a367c694cae92d91 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/ports/commit/?id=0009322d2223e315dfde0563a367c694cae92d91 commit 0009322d2223e315dfde0563a367c694cae92d91 Author: Olivier Certner AuthorDate: 2025-01-08 15:36:02 +0000 Commit: Olivier Certner CommitDate: 2025-01-10 13:19:35 +0000 devel/libkiwix: Update 13.1.0 → 14.0.0 again Now that devel/libkiwix13 has been created and www/kiwix-tools changed to depend on it, fixing the latter's build and avoiding a bump of PORTEPOCH here, we can reapply the update. This commit is different than the initial update's one, as local patches here match what was upstreamed in the meantime (see https://github.com/kiwix/libkiwix/pull/1173). Selected list of changes: - Support of IPv6 - Better public IP configuration/detection - Fix API errors in catalog searches if Xapian keyword in used - Improve welcome page download buttons - Better handling of external (non-HTTP) links - Fix book illustration size on welcome page to 48x48 pixels - Remove "Multiple Languages" in language filter - Stop transforming tags casing - ZIM file size consistently advertised in MiB - Add accesskeys - Add OpenSearch to head of pages See also: https://github.com/kiwix/libkiwix/releases/tag/14.0.0 This is a maintainer update (olce.freebsd.ports@certner.fr). PR: 282559 Reported by: wenheping2000@hotmail.com Reviewed by: jrm Fixes: dafb538b3fd6 ("devel/libkiwix: Update to 14.0.0") MFH: 2025Q1 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48397 --- devel/libkiwix/Makefile | 2 +- devel/libkiwix/distinfo | 6 +-- devel/libkiwix/files/patch-meson.build | 46 +++++++++++++++++++--- .../files/patch-src_tools_networkTools.cpp | 13 ++++++ devel/libkiwix/pkg-plist | 3 +- 5 files changed, 60 insertions(+), 10 deletions(-) diff --git a/devel/libkiwix/Makefile b/devel/libkiwix/Makefile index c962752a54c8..b842c0fc406f 100644 --- a/devel/libkiwix/Makefile +++ b/devel/libkiwix/Makefile @@ -1,5 +1,5 @@ PORTNAME= libkiwix -DISTVERSION= 13.1.0 +DISTVERSION= 14.0.0 CATEGORIES= devel MAINTAINER= olce.freebsd.ports@certner.fr diff --git a/devel/libkiwix/distinfo b/devel/libkiwix/distinfo index 7a1264477c3c..38996a83e9f7 100644 --- a/devel/libkiwix/distinfo +++ b/devel/libkiwix/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1716196790 -SHA256 (kiwix-libkiwix-13.1.0_GH0.tar.gz) = 04d93f66b939f937df2c941af517966128d4c9872b707f9ed192177fe51364d3 -SIZE (kiwix-libkiwix-13.1.0_GH0.tar.gz) = 1136812 +TIMESTAMP = 1736502491 +SHA256 (kiwix-libkiwix-14.0.0_GH0.tar.gz) = dae329ebc08ff510daa50b42de71366bf063813e29bf1c09cc49335d90f32094 +SIZE (kiwix-libkiwix-14.0.0_GH0.tar.gz) = 1149884 SHA256 (kainjow-Mustache-v4.1_GH0.tar.gz) = acd66359feb4318b421f9574cfc5a511133a77d916d0b13c7caa3783c0bfe167 SIZE (kainjow-Mustache-v4.1_GH0.tar.gz) = 98905 diff --git a/devel/libkiwix/files/patch-meson.build b/devel/libkiwix/files/patch-meson.build index eb9c07cc45fe..d8e45a01b520 100644 --- a/devel/libkiwix/files/patch-meson.build +++ b/devel/libkiwix/files/patch-meson.build @@ -1,16 +1,52 @@ ---- meson.build.orig 2023-09-09 03:15:43 UTC +Has been upstreamed via https://github.com/kiwix/libkiwix/pull/1173 and will be +included in next release (14.1.0), so remove this patch at next update. + +--- meson.build.orig 2024-10-09 17:18:52 UTC +++ meson.build -@@ -7,12 +7,7 @@ compiler = meson.get_compiler('cpp') +@@ -4,14 +4,40 @@ compiler = meson.get_compiler('cpp') + default_options : ['c_std=c11', 'cpp_std=c++17', 'werror=true']) + compiler = meson.get_compiler('cpp') +- static_deps = get_option('static-linkage') or get_option('default_library') == 'static' ++extra_libs = [] -# See https://github.com/kiwix/libkiwix/issues/371 -if ['arm', 'mips', 'm68k', 'ppc', 'sh4'].contains(host_machine.cpu_family()) - extra_libs = ['-latomic'] -else - extra_libs = [] --endif -+extra_libs = [] ++# Atomics as compiled by GCC or clang can lead to external references to ++# functions depending on the type size and the platform. LLVM provides them in ++# 'libcompiler_rt', which clang normally automatically links in, while GNU ++# provides them in 'libatomic', which GCC *does not* link in automatically (but ++# this is probably going to change, see ++# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358). Regardless of the setup ++# of the compiler driver itself (GCC or clang), we can thus assume that if some ++# atomic references can't be resolved, then 'libatomic' is missing. ++atomics_program = ''' ++#include ++#include ++ ++using namespace std; ++ ++int main() { ++ volatile atomic_bool a_b = true; ++ volatile atomic_ullong a_ull = -1; ++ // Next two lines are to cover atomic from 'httplib.h'. ++ volatile atomic a_u32 = -1; ++ volatile atomic a_u64 = -1; ++ ++ return atomic_load(&a_b) == false && atomic_load(&a_ull) == 0 && ++ atomic_load(&a_u32) == 0 && atomic_load(&a_u64) == 0; ++} ++''' ++if not compiler.links(atomics_program, ++ name: 'compiler driver readily supports atomics') ++ libatomic = compiler.find_library('atomic') ++ compiler.links(atomics_program, name: 'atomics work with libatomic', ++ dependencies: libatomic, required: true) ++ extra_libs += ['-latomic'] + endif if (compiler.get_id() == 'gcc' and build_machine.system() == 'linux') or host_machine.system() == 'freebsd' - # C++ std::thread is implemented using pthread on linux by gcc diff --git a/devel/libkiwix/files/patch-src_tools_networkTools.cpp b/devel/libkiwix/files/patch-src_tools_networkTools.cpp new file mode 100644 index 000000000000..6439ba836743 --- /dev/null +++ b/devel/libkiwix/files/patch-src_tools_networkTools.cpp @@ -0,0 +1,13 @@ +Has been upstreamed via https://github.com/kiwix/libkiwix/pull/1173 and will be +included in next release (14.1.0), so remove this patch at next update. + +--- src/tools/networkTools.cpp.orig 2024-10-09 17:18:52 UTC ++++ src/tools/networkTools.cpp +@@ -42,6 +42,7 @@ + #include + #include + #include ++#include + #include + #include + #endif diff --git a/devel/libkiwix/pkg-plist b/devel/libkiwix/pkg-plist index 7b2d35d0d068..8164ce90e062 100644 --- a/devel/libkiwix/pkg-plist +++ b/devel/libkiwix/pkg-plist @@ -4,6 +4,7 @@ include/kiwix/book.h include/kiwix/bookmark.h include/kiwix/common.h include/kiwix/downloader.h +include/kiwix/i18n.h include/kiwix/kiwix_config.h include/kiwix/kiwixserve.h include/kiwix/library.h @@ -16,6 +17,6 @@ include/kiwix/version.h lib/libkiwix.so lib/libkiwix.so.%%PORTMAJ%% lib/libkiwix.so.%%PORTVERSION%% -libdata/pkgconfig/kiwix.pc +libdata/pkgconfig/libkiwix.pc share/man/man1/kiwix-compile-i18n.1.gz share/man/man1/kiwix-compile-resources.1.gz