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: sci-mathematics/lpsolve/
Date: Sat,  4 Feb 2023 17:26:01 +0000 (UTC)	[thread overview]
Message-ID: <1675531377.0ebebe508b9dffbd7bbc10155c2ddcee593960aa.sam@gentoo> (raw)

commit:     0ebebe508b9dffbd7bbc10155c2ddcee593960aa
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  4 17:19:00 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb  4 17:22:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ebebe50

sci-mathematics/lpsolve: add subslot for new version

It broke ABI and I didn't realise, sorry!

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

 ...psolve-5.5.2.11-r1.ebuild => lpsolve-5.5.2.11-r2.ebuild} | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r1.ebuild b/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild
similarity index 70%
rename from sci-mathematics/lpsolve/lpsolve-5.5.2.11-r1.ebuild
rename to sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild
index 3e8f059ed599..adb1c37d72e4 100644
--- a/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r1.ebuild
+++ b/sci-mathematics/lpsolve/lpsolve-5.5.2.11-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/lp_solve_${PV}_source.tar.gz"
 S="${WORKDIR}"/lp_solve_$(ver_cut 1-2)
 
 LICENSE="LGPL-2.1"
-SLOT="0"
+SLOT="0/55"
 KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 
 DEPEND="sci-libs/colamd"
@@ -21,6 +21,17 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-5.5.2.11-misc.patch
 )
 
+src_prepare() {
+	default
+
+	local actual_soname=$(grep -iEo -- "-soname,liblpsolve([A-z0-9]+)" lpsolve*/ccc | sed -e 's:-soname,liblpsolve::')
+	if [[ ${actual_soname} != ${SLOT##*/} ]] ; then
+		eerror "Actual SONAME: ${actual_soname}"
+		eerror "Expected SONAME: ${SLOT##*/}"
+		die "Expected SONAME not found! Please update the subslot in the ebuild!"
+	fi
+}
+
 src_compile() {
 	tc-export AR CC RANLIB LD
 


             reply	other threads:[~2023-02-04 17:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-04 17:26 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-05-03 17:38 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/lpsolve/ Andreas Sturmlechner
2023-05-01  1:43 Sam James
2023-04-29 17:16 Arthur Zamarin
2023-04-26 13:34 Arthur Zamarin
2023-03-07  0:18 Yixun Lan
2022-08-12 12:26 WANG Xuerui
2022-06-21 16:29 David Seifert
2021-11-18 23:50 Georgy Yakovlev
2019-07-30 22:40 Aaron Bauman
2018-05-27  7:54 David Seifert
2017-08-27 15:34 Michael Palimaka

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=1675531377.0ebebe508b9dffbd7bbc10155c2ddcee593960aa.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