summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-05-10 10:27:03 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-05-10 10:27:12 +0100
commitccdcdc3dcf4dbcd915c3d7a462798248e46f7448 (patch)
treef9fb9c9c0031d6f56232720ba952fb4109d22d62 /app-editors/hteditor
parentdev-python/ansi2html: x86 stable wrt bug #721756 (diff)
downloadgentoo-ccdcdc3dcf4dbcd915c3d7a462798248e46f7448.tar.gz
gentoo-ccdcdc3dcf4dbcd915c3d7a462798248e46f7448.tar.bz2
gentoo-ccdcdc3dcf4dbcd915c3d7a462798248e46f7448.zip
app-editors/hteditor: use ${CHOST}-ar, not ar, gug #722040
AC_PATH_PROG needs absolute path and does not add ${CHOST} prefix. AC_CHECK_TOOL does the opposite. Use that. Reported-by: Agostino Sarubbo Closes: https://bugs.gentoo.org/722040 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'app-editors/hteditor')
-rw-r--r--app-editors/hteditor/files/hteditor-2.1.0-AR.patch14
-rw-r--r--app-editors/hteditor/hteditor-2.1.0-r1.ebuild7
2 files changed, 18 insertions, 3 deletions
diff --git a/app-editors/hteditor/files/hteditor-2.1.0-AR.patch b/app-editors/hteditor/files/hteditor-2.1.0-AR.patch
new file mode 100644
index 000000000000..60a0427a2125
--- /dev/null
+++ b/app-editors/hteditor/files/hteditor-2.1.0-AR.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/722040
+--- a/configure.ac
++++ b/configure.ac
+@@ -104,8 +104,8 @@ AC_PROG_CPP
+ AC_PROG_CXX
+ AC_PROG_YACC
+ AM_PROG_LEX
+-AC_PATH_PROG(AR, ar)
+-AC_PATH_PROG(AR, gar)
++AC_CHECK_TOOL(AR, ar)
++AC_CHECK_TOOL(AR, gar)
+
+ if test "x$AR" = "x"; then
+ AC_MSG_ERROR([*** 'ar' and 'gar' missing, please install one of them or fix your \$PATH ***])
diff --git a/app-editors/hteditor/hteditor-2.1.0-r1.ebuild b/app-editors/hteditor/hteditor-2.1.0-r1.ebuild
index 44b7dd140f67..d8a7a241a3d4 100644
--- a/app-editors/hteditor/hteditor-2.1.0-r1.ebuild
+++ b/app-editors/hteditor/hteditor-2.1.0-r1.ebuild
@@ -33,6 +33,7 @@ PATCHES=(
"${FILESDIR}"/${P}-gcc-6-uchar.patch
"${FILESDIR}"/${P}-format-security.patch
"${FILESDIR}"/${P}-gcc-10.patch
+ "${FILESDIR}"/${P}-AR.patch
)
src_prepare() {
@@ -46,9 +47,9 @@ src_configure() {
--enable-maintainermode
}
-src_compile() {
- emake AR="$(tc-getAR)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
-}
+#src_compile() {
+# emake AR="$(tc-getAR)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
+#}
src_install() {
#For prefix