From nobody Wed Aug 23 22:26:03 2023 X-Original-To: dev-commits-ports-main@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 4RWLQg47tkz4rS2l; Wed, 23 Aug 2023 22:26:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RWLQg3Qs7z3QH2; Wed, 23 Aug 2023 22:26:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692829563; 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=wZVoeIdjvn8ELOvfKGO0r0DLI0Ff8OuBdzwyOOe4erk=; b=Artj9bEL/+luYjC7KhJ8alX0xslsuYbAPS2nVeJEotGDWPHoYqsYNbIeCn+8Tvedt88EEY 1hu5z9GbaM2zePmOk5z0FS5OphmkLSKcU098Xq7GyVDtlhjI3AzZ5lwun3hbHKb+qGbMQL GI+oxC6kowJvSrfOvUMxkIvEEk0Oew0MIODCQiWBAN9MwXjzgeLGPzDqksZiSrpsLF9zUB DF9zH+kmt59tRjgSyYlwr6M43STuki0SL2pw2Na+e/VGAI9LCSRcDpnrzLY4k3Zm+lXrpe DcNhZVvN/HLDSJ9PtAf5zudybtB4ofA2hnWB2faKqqwYZXfGhT54SokYiH4W/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692829563; 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=wZVoeIdjvn8ELOvfKGO0r0DLI0Ff8OuBdzwyOOe4erk=; b=mJqnFX48Ci9fLePL5RYwZwnm4CJiqbC5+J0rAdw7WyZpLHFKwh095D+fEPJpweg0vGnddu IDAQ47B9M0TapM9lzOYuxb8M0Zz6FiU799RVluI3cgcRq8lyZ60FxHansKG0OHoj8K81J1 x4UXdp5U/HWiGBGxi3lM4+Uo/o3gJvuWIc+lRzJJi+RurvSSelypSRIwh6a8cDGuLTnDFM EW13ebfWOWZGg0I7YX/bMdVdmSgtmyUmjJgrGUB0G9c1xT5irWFDaeEqmHgNvTAmQjH/Fz 7yfnxeRmVEmUc+FreN4n6v4iiZGjt/lPo/950Kq0coeV2ythK74s0zEUVY2O9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692829563; a=rsa-sha256; cv=none; b=rMWUUjL3EljO5lF1cmh4suWyovr3/s0gqIvFqaxzMoLFB3h4xDM+pd2vXGHlJ0o3dypVBX V4LMxLPjDML6IAyhTUWv4gBYUDRkv/rJ65G3SQtVoDAM0hknjm9lb0GQJcwtahc9ytUB9x v5zfiArGUs+mZVHzMSEJcuR0/m567HLRHbXB2blbnHxK90iPqOuPFdbFj8s0UWWD2HnizP MXCEssTVW5MMZewM0RdLJ6jeaDyW4VXLuuRzmNLZKNRtvR5warOcX4KVo8kgDSV4jGhp2v yKgZa+rxm8+F9AeX4d8jcakw8RMRtnztgvSzKcyiNTu+zTCI8a2lMJuc61GjVA== 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 4RWLQg2PQnz12Zw; Wed, 23 Aug 2023 22:26:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37NMQ3Qh005589; Wed, 23 Aug 2023 22:26:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37NMQ3Bk005586; Wed, 23 Aug 2023 22:26:03 GMT (envelope-from git) Date: Wed, 23 Aug 2023 22:26:03 GMT Message-Id: <202308232226.37NMQ3Bk005586@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: c9e6c6117f6f - main - graphics/darktable: fix build on powerpc64le List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c9e6c6117f6f432c1ef4077c99be29f0076aca17 Auto-Submitted: auto-generated The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=c9e6c6117f6f432c1ef4077c99be29f0076aca17 commit c9e6c6117f6f432c1ef4077c99be29f0076aca17 Author: Piotr Kubaj AuthorDate: 2023-08-23 22:24:16 +0000 Commit: Piotr Kubaj CommitDate: 2023-08-23 22:24:16 +0000 graphics/darktable: fix build on powerpc64le /wrkdirs/usr/ports/graphics/darktable/work/darktable-4.4.2/src/common/iop_profile.c:1273:6: error: 'target_clones' attribute needs GLIBC (2.23 and newer) that exports hardware capability bits --- graphics/darktable/Makefile | 2 +- graphics/darktable/files/patch-src_common_darktable.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/graphics/darktable/Makefile b/graphics/darktable/Makefile index 73b450fd5eec..28dc9292ce1b 100644 --- a/graphics/darktable/Makefile +++ b/graphics/darktable/Makefile @@ -98,7 +98,7 @@ TOOLS_RUN_DEPENDS= exiftool:graphics/p5-Image-ExifTool .include -.if ${ARCH} == aarch64 +.if ${ARCH} == aarch64 || ${ARCH} == powerpc64le CMAKE_ARGS+= -DUSE_OPENCL:BOOL=OFF CXXFLAGS+= -DGDK_DISABLE_DEPRECATED PLIST_SUB+= NO_OPENCL="@comment " diff --git a/graphics/darktable/files/patch-src_common_darktable.h b/graphics/darktable/files/patch-src_common_darktable.h new file mode 100644 index 000000000000..f53e478d8234 --- /dev/null +++ b/graphics/darktable/files/patch-src_common_darktable.h @@ -0,0 +1,11 @@ +--- src/common/darktable.h.orig 2023-08-23 11:50:51 UTC ++++ src/common/darktable.h +@@ -143,7 +143,7 @@ extern "C" { + #if __has_attribute(target_clones) && !defined(_WIN32) && !defined(NATIVE_ARCH) + # if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64) + #define __DT_CLONE_TARGETS__ __attribute__((target_clones("default", "sse2", "sse3", "sse4.1", "sse4.2", "popcnt", "avx", "avx2", "avx512f", "fma4"))) +-# elif defined(__PPC64__) ++# elif defined(__PPC64__) && defined(__GLIBC__) + /* __PPC64__ is the only macro tested for in is_supported_platform.h, other macros would fail there anyway. */ + #define __DT_CLONE_TARGETS__ __attribute__((target_clones("default","cpu=power9"))) + # else