From nobody Wed Jul 20 17:10:51 2022 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 4Lp2K73QHkz4WSnH; Wed, 20 Jul 2022 17:10:51 +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 4Lp2K72wfjz44pr; Wed, 20 Jul 2022 17:10:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658337051; 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=7kki8U0G9M53Z3AxJZZ2O4IVZZtdUW8MYAJwfg3/BQg=; b=YKday7b8TNwb3nnkBRno0Ib0SwdRmXAQdcfZIo3g+EaWqyLsJUb1aeYkXna7apjPu6SHYu z8ZoMNXhYyzy1HaMCHvshdm54+6s9/YyZavTueRcIUa8iBp+fG2uEdSf+XKK2ZFqcdCTU0 x3HLd98JAiq1/FB1VFsiN4PyGAG1Wf7hhu6OWiUqP5ljyoFmJXKw0v2uXYJqa9XfHjr9lq pvGQBRANyEsjNwJ+5qYLOztX2fC6xj/0BGIUzFhZpf6x6LcolpP0MTyW3oyiS8/H8rKdg/ NNp8uxqX7bUZIGFNNCx1PF24YLbgwuL/HK3B+wXxyXs65bWuXUYN/m4X6IHjzw== 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 4Lp2K7204Pz15Y9; Wed, 20 Jul 2022 17:10:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26KHAp8u031214; Wed, 20 Jul 2022 17:10:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26KHApuA031213; Wed, 20 Jul 2022 17:10:51 GMT (envelope-from git) Date: Wed, 20 Jul 2022 17:10:51 GMT Message-Id: <202207201710.26KHApuA031213@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 9f17ff970a75 - main - audio/dexed: Fix build on armv7, arm64 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: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9f17ff970a755a8b6ba2388f9caf959ac8c46427 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658337051; 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=7kki8U0G9M53Z3AxJZZ2O4IVZZtdUW8MYAJwfg3/BQg=; b=nAlcjOvIW8fwlrQwg928gt2vuS/VOtXBS73UB9o9DJBYZkj0A+M4+h3FbcWLvisPaL8J+m KHXGmgB5IVOlNExzTiQzK7hfJ3nYE9gR30cwJ18YfBVjwuby0ZbnTl6L2xt15oPLBKV59r E7aJv/O/dxdzDdUh2NAvHjXt5sNN1uHRv76fZMbRlg9RmW7IZR4hiTvhXC9Icnv4MG+ZGN zE2S2F1ZZ7+C34pM39kUG3L4ZrDIrJpJSDNvaiYIJCDFwMRHRRJ44Cd5q5dYLNSS5PT8B0 ZO0B8V8/wj0kI/CZbc+j2fsmCqRQfujvU0xIo2RtMyAobsKRjvHuMI/h+6KgGg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658337051; a=rsa-sha256; cv=none; b=mwVPsz238W0n5ubXsTqGI2tLAym0mNDaKQN9nXauFIH0TyvLhFhtXtMZ+xMaII7AvYfeou L4qKdlUwkrEE7vjwRhJwk0wtopECZuatVpHaJqmPCYBNS06scojGMlWYnSCd1UUZlhlDI6 hq2F+RyRPZPLYgzTu3IFOjgmu1SxumesG+MzV2wArVKwezHnHIRfyzKlgYVIgc6pWfc/vE /z2TKzCnv9/j24FkyR63OpZK8JLiXQ9xcDDQWAnVyWksQtAPrfUU508KUe7s4uRKAHohSJ fzd6qq7jYxgRlOzw6EewwYG78E7+vGL2XKFpU5hc9k+uRrb/pGkRKtjkIbpqhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=9f17ff970a755a8b6ba2388f9caf959ac8c46427 commit 9f17ff970a755a8b6ba2388f9caf959ac8c46427 Author: Robert Clausecker AuthorDate: 2022-07-20 17:10:00 +0000 Commit: Yuri Victorovich CommitDate: 2022-07-20 17:10:00 +0000 audio/dexed: Fix build on armv7, arm64 PR: 265342 --- audio/dexed/Makefile | 4 +--- audio/dexed/files/patch-CMakeLists.txt | 12 +++++++++++ audio/dexed/files/patch-Source_PluginData.cpp | 26 ++++++++++++++++++++++++ audio/dexed/files/patch-Source_PluginProcessor.h | 13 ++++++++++++ 4 files changed, 52 insertions(+), 3 deletions(-) diff --git a/audio/dexed/Makefile b/audio/dexed/Makefile index 3bc019179bd1..9321a2f48517 100644 --- a/audio/dexed/Makefile +++ b/audio/dexed/Makefile @@ -2,7 +2,7 @@ PORTNAME= dexed DISTVERSIONPREFIX= v DISTVERSION= 0.9.6-16 DISTVERSIONSUFFIX= -g1df9a58 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= audio PKGNAMESUFFIX= -synth @@ -12,8 +12,6 @@ COMMENT= DX7 FM multi plaform/multi format plugin LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_aarch64= fails to compile due to a seemingly clang issue: https://github.com/llvm/llvm-project/issues/55604 - BUILD_DEPENDS= libX11>0:x11/libX11 \ libXcursor>0:x11/libXcursor \ libXinerama>0:x11/libXinerama \ diff --git a/audio/dexed/files/patch-CMakeLists.txt b/audio/dexed/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..8e696b6a6e6b --- /dev/null +++ b/audio/dexed/files/patch-CMakeLists.txt @@ -0,0 +1,12 @@ +- from Bug 265342 - audio/dexed: fix build on armv7 arm64 + +--- CMakeLists.txt.orig 2022-07-20 04:50:04 UTC ++++ CMakeLists.txt +@@ -52,7 +52,6 @@ target_compile_options(${PROJECT_NAME} PUBLIC + ) + elseif(UNIX AND NOT APPLE) + target_compile_options(${PROJECT_NAME} PUBLIC +- -Werror + -Wno-deprecated-declarations + -Wno-unused-value + ) diff --git a/audio/dexed/files/patch-Source_PluginData.cpp b/audio/dexed/files/patch-Source_PluginData.cpp new file mode 100644 index 000000000000..978d97954d32 --- /dev/null +++ b/audio/dexed/files/patch-Source_PluginData.cpp @@ -0,0 +1,26 @@ +- from Bug 265342 - audio/dexed: fix build on armv7 arm64 + +--- Source/PluginData.cpp.orig 2022-07-20 04:30:35 UTC ++++ Source/PluginData.cpp +@@ -103,18 +103,14 @@ void Cartridge::packProgram(uint8_t *src, int idx, Str + * This function normalize data that comes from corrupted sysex. + * It used to avoid engine crashing upon extreme values + */ +-char normparm(char value, char max, int id) { +- if ( value <= max && value >= 0 ) ++uint8_t normparm(uint8_t value, uint8_t max, int id) { ++ if ( value <= max ) + return value; + + // if this is beyond the max, we expect a 0-255 range, normalize this + // to the expected return value; and this value as a random data. + +- value = abs(value); +- +- char v = ((float)value)/255 * max; +- +- return v; ++ return ((float)value)/255 * max; + } + + void Cartridge::unpackProgram(uint8_t *unpackPgm, int idx) { diff --git a/audio/dexed/files/patch-Source_PluginProcessor.h b/audio/dexed/files/patch-Source_PluginProcessor.h new file mode 100644 index 000000000000..6b093f3d31cb --- /dev/null +++ b/audio/dexed/files/patch-Source_PluginProcessor.h @@ -0,0 +1,13 @@ +- from Bug 265342 - audio/dexed: fix build on armv7 arm64 + +--- Source/PluginProcessor.h.orig 2022-07-20 04:35:43 UTC ++++ Source/PluginProcessor.h +@@ -120,7 +120,7 @@ class DexedAudioProcessor : public AudioProcessor, pu + EngineOpl engineOpl; + + char clipboard[161]; +- char clipboardContent; ++ signed char clipboardContent; + + void resolvAppDir(); +