* [gentoo-commits] repo/gentoo:master commit in: media-sound/alacenc/files/, media-sound/alacenc/
@ 2024-06-01 9:31 Viorel Munteanu
0 siblings, 0 replies; 3+ messages in thread
From: Viorel Munteanu @ 2024-06-01 9:31 UTC (permalink / raw
To: gentoo-commits
commit: 10dfb40fbc837b96626e586b484ed308fbc3ce6b
Author: Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
AuthorDate: Wed Apr 3 21:16:15 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Jun 1 09:31:35 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10dfb40f
media-sound/alacenc: fix musl build
Add patch for including missing endian.h header file.
Replace use of 'uint' with 'unsigned int'.
Closes: https://bugs.gentoo.org/927902
Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36085
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
media-sound/alacenc/alacenc-0.4.0.ebuild | 4 +++
media-sound/alacenc/files/alacenc-0.4.0-musl.patch | 30 ++++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/media-sound/alacenc/alacenc-0.4.0.ebuild b/media-sound/alacenc/alacenc-0.4.0.ebuild
index d1e6d081f081..a18ef84e118d 100644
--- a/media-sound/alacenc/alacenc-0.4.0.ebuild
+++ b/media-sound/alacenc/alacenc-0.4.0.ebuild
@@ -15,6 +15,10 @@ KEYWORDS="~amd64 ~x86"
BDEPEND="virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}/${P}-musl.patch"
+)
+
src_install() {
dobin "${BUILD_DIR}/alacenc"
einstalldocs
diff --git a/media-sound/alacenc/files/alacenc-0.4.0-musl.patch b/media-sound/alacenc/files/alacenc-0.4.0-musl.patch
new file mode 100644
index 000000000000..e42a0def06d9
--- /dev/null
+++ b/media-sound/alacenc/files/alacenc-0.4.0-musl.patch
@@ -0,0 +1,30 @@
+# Include endian.h because otherwise constants like BYTE_ORDER,
+# LITTLE_ENDIAN or BIG_ENDIAN as well as functions like
+# toBigEndian are missing when building with musl.
+# On glibc these symbols are present without including
+# endian.h, however including it anyway is fine.
+#
+# Related bug: https://bugs.gentoo.org/927902
+--- a/types.h
++++ b/types.h
+@@ -40,6 +40,7 @@
+ #include <fstream>
+ #include <array>
+ #include <cstdint>
++#include <endian.h>
+
+ class Error : public std::runtime_error
+ {
+# There is no typedef for uint in musl, so replace it
+# Upstream PR: https://github.com/flacon/alacenc/pull/4
+--- a/atoms.cpp
++++ b/atoms.cpp
+@@ -655,7 +655,7 @@ OutFile &operator<<(OutFile &os, const FreeAtom &atom)
+ {
+ os << uint32_t(atom.mSize);
+ os << "free";
+- for (uint i = 0; i < atom.mSize - 8; ++i) {
++ for (unsigned int i = 0; i < atom.mSize - 8; ++i) {
+ os << '\0';
+ }
+ return os;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/alacenc/files/, media-sound/alacenc/
@ 2025-10-02 21:27 Andreas Sturmlechner
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2025-10-02 21:27 UTC (permalink / raw
To: gentoo-commits
commit: 0ac3d34280ef2484eef1dec74bbf434094bf483c
Author: Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
AuthorDate: Thu Oct 2 17:44:53 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Oct 2 21:27:29 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ac3d342
media-sound/alacenc: drop 0.4.0
Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44009
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
media-sound/alacenc/Manifest | 1 -
media-sound/alacenc/alacenc-0.4.0.ebuild | 25 ------------------
media-sound/alacenc/files/alacenc-0.4.0-musl.patch | 30 ----------------------
3 files changed, 56 deletions(-)
diff --git a/media-sound/alacenc/Manifest b/media-sound/alacenc/Manifest
index 4a82f054d2a5..265aa7a335d2 100644
--- a/media-sound/alacenc/Manifest
+++ b/media-sound/alacenc/Manifest
@@ -1,2 +1 @@
-DIST alacenc-0.4.0.tar.gz 114463 BLAKE2B 6682a77d1df90f22969bbdf82b3ad273cac8855f245ff533b90e81a02952c9dc3f9f14f4e7ec23059ebe7ba9e3a7fff51f009dbe7ee945fca5a9a04d1f2fb8c9 SHA512 2a95725b6aa4ef3f42b2c8d379cd8a83dbf46d69faa0bd6a03bec4d0b56665b3d0716c76e9c7183096a0761d36a282a559f2e5c70f0a9aa1a9808587db004727
DIST alacenc-0.4.1.tar.gz 114586 BLAKE2B 1c2e2fd8f299b57ccb3c5efa7e1abddc21a576b25ec17cd49ae088239dc71b19cb11f22a252959ff5c78ef972271123ecaf141b1b6c4b7b52407ceb4b733f381 SHA512 f71a61157a8e58be844248780d58556cc90fb7682c39a9da492605319cabd2838182b04729c4dadd008f61dfdb8fcf1b3bae1b13da0a98684dbffb0e486ac97f
diff --git a/media-sound/alacenc/alacenc-0.4.0.ebuild b/media-sound/alacenc/alacenc-0.4.0.ebuild
deleted file mode 100644
index 7c6d6b202997..000000000000
--- a/media-sound/alacenc/alacenc-0.4.0.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Encodes audio into the Apple Lossless Audio Codec (ALAC) format"
-HOMEPAGE="https://github.com/flacon/alacenc"
-SRC_URI="https://github.com/flacon/alacenc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 x86"
-
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
- "${FILESDIR}/${P}-musl.patch"
-)
-
-src_install() {
- dobin "${BUILD_DIR}/alacenc"
- einstalldocs
-}
diff --git a/media-sound/alacenc/files/alacenc-0.4.0-musl.patch b/media-sound/alacenc/files/alacenc-0.4.0-musl.patch
deleted file mode 100644
index e42a0def06d9..000000000000
--- a/media-sound/alacenc/files/alacenc-0.4.0-musl.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-# Include endian.h because otherwise constants like BYTE_ORDER,
-# LITTLE_ENDIAN or BIG_ENDIAN as well as functions like
-# toBigEndian are missing when building with musl.
-# On glibc these symbols are present without including
-# endian.h, however including it anyway is fine.
-#
-# Related bug: https://bugs.gentoo.org/927902
---- a/types.h
-+++ b/types.h
-@@ -40,6 +40,7 @@
- #include <fstream>
- #include <array>
- #include <cstdint>
-+#include <endian.h>
-
- class Error : public std::runtime_error
- {
-# There is no typedef for uint in musl, so replace it
-# Upstream PR: https://github.com/flacon/alacenc/pull/4
---- a/atoms.cpp
-+++ b/atoms.cpp
-@@ -655,7 +655,7 @@ OutFile &operator<<(OutFile &os, const FreeAtom &atom)
- {
- os << uint32_t(atom.mSize);
- os << "free";
-- for (uint i = 0; i < atom.mSize - 8; ++i) {
-+ for (unsigned int i = 0; i < atom.mSize - 8; ++i) {
- os << '\0';
- }
- return os;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/alacenc/files/, media-sound/alacenc/
@ 2025-10-02 21:27 Andreas Sturmlechner
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2025-10-02 21:27 UTC (permalink / raw
To: gentoo-commits
commit: 57e3d711af3e0b175cd8b2385839f026fd296cdc
Author: Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
AuthorDate: Thu Oct 2 17:46:09 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Oct 2 21:27:29 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e3d711
media-sound/alacenc: raise docopt CMake version
- Raise minimum required CMake version of docopt to 3.5
- See: https://github.com/docopt/docopt.cpp/issues/166
- See: https://github.com/flacon/alacenc/issues/5
Closes: https://bugs.gentoo.org/957536
Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44009
Closes: https://github.com/gentoo/gentoo/pull/44009
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
media-sound/alacenc/alacenc-0.4.1.ebuild | 1 +
media-sound/alacenc/files/alacenc-0.4.1-cmake.patch | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/media-sound/alacenc/alacenc-0.4.1.ebuild b/media-sound/alacenc/alacenc-0.4.1.ebuild
index b0ba6363d299..1f55ee9bd906 100644
--- a/media-sound/alacenc/alacenc-0.4.1.ebuild
+++ b/media-sound/alacenc/alacenc-0.4.1.ebuild
@@ -16,6 +16,7 @@ KEYWORDS="amd64 x86"
BDEPEND="virtual/pkgconfig"
PATCHES=(
+ "${FILESDIR}/${P}-cmake.patch"
"${FILESDIR}/${P}-musl.patch"
)
diff --git a/media-sound/alacenc/files/alacenc-0.4.1-cmake.patch b/media-sound/alacenc/files/alacenc-0.4.1-cmake.patch
new file mode 100644
index 000000000000..21f46c2818b3
--- /dev/null
+++ b/media-sound/alacenc/files/alacenc-0.4.1-cmake.patch
@@ -0,0 +1,13 @@
+Raise minimum required CMake version of docopt
+for CMake-4 support.
+https://bugs.gentoo.org/957536
+https://github.com/docopt/docopt.cpp/issues/166
+
+--- a/vendor/docopt/CMakeLists.txt
++++ b/vendor/docopt/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.1)
++cmake_minimum_required(VERSION 3.5)
+ project(docopt.cpp VERSION 0.6.2)
+
+ include(GNUInstallDirs)
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-10-02 21:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-02 21:27 [gentoo-commits] repo/gentoo:master commit in: media-sound/alacenc/files/, media-sound/alacenc/ Andreas Sturmlechner
-- strict thread matches above, loose matches on Subject: below --
2025-10-02 21:27 Andreas Sturmlechner
2024-06-01 9:31 Viorel Munteanu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox