Skip to content

Commit

Permalink
app-arch/bzip2: add landmine to ensure SLOT gets updated
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Gilbert <[email protected]>
  • Loading branch information
floppym committed Apr 11, 2020
1 parent 5933b34 commit 5b8f166
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app-arch/bzip2/bzip2-1.0.8-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ SLOT="0/1" # subslot = SONAME
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="static static-libs"

if [[ ${PV} == 1.1* ]]; then
eerror "Please update SLOT due to accidental soname change in bzip2-1.0.7."
eerror "See commit 98da0ad82192d21ad74ae52366ea8466e2acea24 for reference."
die "SLOT update needed"
fi

PATCHES=(
"${FILESDIR}"/${PN}-1.0.4-makefile-CFLAGS.patch
"${FILESDIR}"/${PN}-1.0.8-saneso.patch
Expand Down
7 changes: 6 additions & 1 deletion app-arch/bzip2/bzip2-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ else
fi
LICENSE="BZIP2"
SLOT="0/1" # subslot = SONAME

IUSE="static-libs"

if [[ ${PV} == 1.1* ]]; then
eerror "Please update SLOT due to accidental soname change in bzip2-1.0.7."
eerror "See commit 98da0ad82192d21ad74ae52366ea8466e2acea24 for reference."
die "SLOT update needed"
fi

multilib_src_configure() {
local emesonargs=(
-Ddefault_library=$(usex static-libs both shared)
Expand Down

0 comments on commit 5b8f166

Please sign in to comment.