public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/milkytracker/, media-sound/milkytracker/files/
Date: Thu, 13 Jul 2023 07:06:42 +0000 (UTC)	[thread overview]
Message-ID: <1689231926.5e2d8bde0380beb2d6da474685542a4d4039dcfa.sam@gentoo> (raw)

commit:     5e2d8bde0380beb2d6da474685542a4d4039dcfa
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 13 07:05:26 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jul 13 07:05:26 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e2d8bde

media-sound/milkytracker: backport UB fix (-Wreturn-type)

Closes: https://bugs.gentoo.org/910283
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/milkytracker-1.04.00-wreturn-type.patch    | 20 ++++++++++++++++++++
 ...1.04.00.ebuild => milkytracker-1.04.00-r1.ebuild} |  4 ++++
 2 files changed, 24 insertions(+)

diff --git a/media-sound/milkytracker/files/milkytracker-1.04.00-wreturn-type.patch b/media-sound/milkytracker/files/milkytracker-1.04.00-wreturn-type.patch
new file mode 100644
index 000000000000..977264a8f37b
--- /dev/null
+++ b/media-sound/milkytracker/files/milkytracker-1.04.00-wreturn-type.patch
@@ -0,0 +1,20 @@
+https://bugs.gentoo.org/910283
+https://github.com/milkytracker/MilkyTracker/commit/7e9171488fc47ad2de646a4536794fda21e7303d
+https://github.com/milkytracker/MilkyTracker/issues/316
+https://github.com/milkytracker/MilkyTracker/issues/318
+
+From 7e9171488fc47ad2de646a4536794fda21e7303d Mon Sep 17 00:00:00 2001
+From: Leon van Kammen <leonvankammen@gmail.com>
+Date: Thu, 6 Jul 2023 14:38:20 +0200
+Subject: [PATCH] possible bugfix: return nPorts
+
+--- a/src/midi/posix/MidiReceiver_pthread.cpp
++++ b/src/midi/posix/MidiReceiver_pthread.cpp
+@@ -145,4 +145,5 @@ unsigned int MidiReceiver::countPorts()
+ 	}
+ 	delete midiin;
+ 	midiin = NULL;
+-}
+\ No newline at end of file
++  return nPorts;
++}

diff --git a/media-sound/milkytracker/milkytracker-1.04.00.ebuild b/media-sound/milkytracker/milkytracker-1.04.00-r1.ebuild
similarity index 95%
rename from media-sound/milkytracker/milkytracker-1.04.00.ebuild
rename to media-sound/milkytracker/milkytracker-1.04.00-r1.ebuild
index 77adb777bea0..33cb60194fdb 100644
--- a/media-sound/milkytracker/milkytracker-1.04.00.ebuild
+++ b/media-sound/milkytracker/milkytracker-1.04.00-r1.ebuild
@@ -26,6 +26,10 @@ RDEPEND="
 	jack? ( virtual/jack )"
 DEPEND="${RDEPEND}"
 
+PATCHES=(
+	"${FILESDIR}"/${P}-wreturn-type.patch
+)
+
 src_prepare() {
 	cmake_src_prepare
 }


             reply	other threads:[~2023-07-13  7:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-13  7:06 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-27 13:56 [gentoo-commits] repo/gentoo:master commit in: media-sound/milkytracker/, media-sound/milkytracker/files/ Sam James
2021-04-19 20:54 Sam James
2020-09-08  8:30 Miroslav Šulc
2020-08-08  8:49 Miroslav Šulc
2020-07-19 23:45 Sam James
2017-05-07  9:04 David Seifert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1689231926.5e2d8bde0380beb2d6da474685542a4d4039dcfa.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox