From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sane-backends/, media-gfx/sane-backends/files/
Date: Sun, 10 Nov 2024 13:24:10 +0000 (UTC) [thread overview]
Message-ID: <1731245015.be496324f0c3d87e83ce2cfb6da5210062dd0667.sam@gentoo> (raw)
commit: be496324f0c3d87e83ce2cfb6da5210062dd0667
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sun Nov 10 03:23:45 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 13:23:35 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be496324
media-gfx/sane-backends: use multilib copied sources instead of mixing
Udev already needs them to be copied, so why insist on
ECONF_SOURCE="${S}" later. Mixing them causes issues if headers are
generated later on.
* Simplify version setting by using .tarball-version instead of patching
it.
Closes: https://bugs.gentoo.org/943150
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/sane-backends-1.3.1-verfix.patch | 23 ----------------------
...-1.3.1.ebuild => sane-backends-1.3.1-r1.ebuild} | 12 ++++-------
2 files changed, 4 insertions(+), 31 deletions(-)
diff --git a/media-gfx/sane-backends/files/sane-backends-1.3.1-verfix.patch b/media-gfx/sane-backends/files/sane-backends-1.3.1-verfix.patch
deleted file mode 100644
index 32f22f6c181c..000000000000
--- a/media-gfx/sane-backends/files/sane-backends-1.3.1-verfix.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff --git a/configure.ac b/configure.ac
-index ddb52b9..c3046b9 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -16,13 +16,11 @@ AM_SILENT_RULES
- dnl ******************************************************************
- dnl Determine SANE version components and release status
- dnl ******************************************************************
--AS_IF([test x = "x$AWK"],[AC_PROG_AWK])
--AS_IF([test x = "x`echo $VERSION | sed 's/[[.0-9]]//g'`"],
-- [is_release=yes],
-- [is_release=no])
--V_MAJOR=`echo $VERSION | $AWK -F. '{print $1}'`
--V_MINOR=`echo $VERSION | $AWK -F. '{print $2}'`
--V_REV=`echo $VERSION | $AWK -F. '{print $3}' | sed 's/^\([[0-9]]*\).*/\1/'`;
-+is_release=yes
-+is_release=no
-+V_MAJOR=1
-+V_MINOR=3
-+V_REV=1
-
- AC_DEFINE_UNQUOTED(SANE_DLL_V_MAJOR, $V_MAJOR, [SANE DLL major number])
- AC_DEFINE_UNQUOTED(SANE_DLL_V_MINOR, $V_MINOR, [SANE DLL minor number])
diff --git a/media-gfx/sane-backends/sane-backends-1.3.1.ebuild b/media-gfx/sane-backends/sane-backends-1.3.1-r1.ebuild
similarity index 96%
rename from media-gfx/sane-backends/sane-backends-1.3.1.ebuild
rename to media-gfx/sane-backends/sane-backends-1.3.1-r1.ebuild
index 573d4ca4c003..d9c01b788ae2 100644
--- a/media-gfx/sane-backends/sane-backends-1.3.1.ebuild
+++ b/media-gfx/sane-backends/sane-backends-1.3.1-r1.ebuild
@@ -8,13 +8,10 @@ PYTHON_COMPAT=( python3_{10..13} )
# python-any-r1 required for a script in backends/pixma/scripts/
inherit autotools flag-o-matic multilib-minimal optfeature python-any-r1 systemd toolchain-funcs udev
-MY_PN=backends
-MY_P="${MY_PN}-${PV}"
DESCRIPTION="Scanner Access Now Easy - Backends"
HOMEPAGE="http://www.sane-project.org/"
-SRC_URI="https://gitlab.com/sane-project/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2"
-
-S="${WORKDIR}/${MY_P}"
+SRC_URI="https://gitlab.com/sane-project/backends/-/archive/${PV}/backends-${PV}.tar.bz2"
+S="${WORKDIR}/backends-${PV}"
LICENSE="GPL-2 public-domain"
SLOT="0"
@@ -182,7 +179,6 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.0.24-saned_pidfile_location.patch
"${FILESDIR}"/${PN}-1.0.27-disable-usb-tests.patch
"${FILESDIR}"/${PN}-1.0.30-add_hpaio_epkowa_dll.conf.patch
- "${FILESDIR}/${P}-verfix.patch"
)
# ./configure checks to see if these are defined in sys/io.h,
@@ -196,6 +192,7 @@ MULTILIB_CHOST_TOOLS=(
src_prepare() {
default
+ echo "${PV}" > .tarball-version || die
eautoreconf
# Needed for udev rules generation/installation
@@ -250,8 +247,7 @@ multilib_src_configure() {
$(use_with zeroconf avahi)
)
- ECONF_SOURCE="${S}" SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" \
- BACKENDS="${lbackends}" econf "${myconf[@]}"
+ SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" BACKENDS="${lbackends}" econf "${myconf[@]}"
}
multilib_src_compile() {
next reply other threads:[~2024-11-10 13:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-10 13:24 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-09 14:08 [gentoo-commits] repo/gentoo:master commit in: media-gfx/sane-backends/, media-gfx/sane-backends/files/ Michael Orlitzky
2024-05-31 7:17 Andreas Sturmlechner
2022-11-04 4:19 Sam James
2022-01-29 8:42 Pacho Ramos
2020-09-17 23:20 Sam James
2020-06-28 8:24 Jeroen Roovers
2018-04-02 12:23 Pacho Ramos
2017-09-27 10:56 Pacho Ramos
2015-11-02 22:47 Mike Frysinger
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=1731245015.be496324f0c3d87e83ce2cfb6da5210062dd0667.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