commit:     da2a6bf8408fb8e5bf55f039c003ae9fd1e19570
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Mon Feb  9 17:15:30 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb  9 21:28:43 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da2a6bf8

media-video/recordmydesktop: Add missing include for USE=jack

Fixes build with C23

Closes: https://bugs.gentoo.org/959093
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Part-of: https://github.com/gentoo/gentoo/pull/45711
Closes: https://github.com/gentoo/gentoo/pull/45711
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../recordmydesktop-0.4.0-missing-include.patch    | 12 ++++++
 .../recordmydesktop-0.4.0-r2.ebuild                | 43 ++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git 
a/media-video/recordmydesktop/files/recordmydesktop-0.4.0-missing-include.patch 
b/media-video/recordmydesktop/files/recordmydesktop-0.4.0-missing-include.patch
new file mode 100644
index 000000000000..33ea1c0757b6
--- /dev/null
+++ 
b/media-video/recordmydesktop/files/recordmydesktop-0.4.0-missing-include.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/959093
+Missing include for malloc and getenv
+--- a/src/rmd_jack.c
++++ b/src/rmd_jack.c
+@@ -31,6 +31,7 @@
+ #include <pthread.h>
+ 
+ #include <string.h>
++#include <stdlib.h>
+ 
+ #ifdef HAVE_LIBJACK
+ 

diff --git a/media-video/recordmydesktop/recordmydesktop-0.4.0-r2.ebuild 
b/media-video/recordmydesktop/recordmydesktop-0.4.0-r2.ebuild
new file mode 100644
index 000000000000..be5d45f1f2ee
--- /dev/null
+++ b/media-video/recordmydesktop/recordmydesktop-0.4.0-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Desktop session recorder producing Ogg video/audio files"
+HOMEPAGE="https://enselic.github.io/recordmydesktop/";
+SRC_URI="https://github.com/Enselic/recordmydesktop/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}/${P}/${PN}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="alsa jack"
+
+RDEPEND="x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXdamage
+       media-libs/libvorbis
+       media-libs/libogg
+       media-libs/libtheora:=[encode]
+       x11-libs/libICE
+       x11-libs/libSM
+       alsa? ( media-libs/alsa-lib )
+       jack? ( virtual/jack )"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+
+PATCHES=( "${FILESDIR}/recordmydesktop-0.4.0-missing-include.patch" )
+
+src_prepare() {
+       default
+
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable !alsa oss) \
+               $(use_enable jack)
+}

Reply via email to