media-sound/playerctl: fix gdbus-codegen handling in configure.ac
authorGöktürk Yüksek <gokturk@gentoo.org>
Tue, 9 Apr 2019 02:08:11 +0000 (22:08 -0400)
committerGöktürk Yüksek <gokturk@gentoo.org>
Tue, 9 Apr 2019 02:08:11 +0000 (22:08 -0400)
In configure.ac, the **absolute** path of gdbus-codegen (as obtained
by pkg-config) is passed to AC_PATH_PROG. The macro then appends this
path to the directories in PATH and tests if the result is
executable. This internally results in checking for
'/usr/bin/usr/bin/gdbus-codegen'. The macro is redundant because the
value returned by pkg-config is sufficient.

Closes: https://bugs.gentoo.org/682788
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
media-sound/playerctl/files/playerctl-gdbus-codegen-fix.patch [new file with mode: 0644]
media-sound/playerctl/playerctl-0.5.0.ebuild
media-sound/playerctl/playerctl-0.6.0.ebuild

diff --git a/media-sound/playerctl/files/playerctl-gdbus-codegen-fix.patch b/media-sound/playerctl/files/playerctl-gdbus-codegen-fix.patch
new file mode 100644 (file)
index 0000000..06c073a
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -21,10 +21,11 @@
+ PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.38])
+ PKG_CHECK_MODULES([GIO], [gio-unix-2.0])
+-AC_PATH_PROG([GDBUS_CODEGEN], [`$PKG_CONFIG --variable=gdbus_codegen gio-2.0`])
++GDBUS_CODEGEN=`$PKG_CONFIG --variable=gdbus_codegen gio-2.0`
+ if test -z "$GDBUS_CODEGEN"; then
+     AC_MSG_ERROR([*** gdbus-codegen is required to build playerctl])
+ fi
++AC_SUBST(GDBUS_CODEGEN)
+ # Checks for typedefs, structures, and compiler characteristics
+ AC_PROG_CC_STDC
index a06816f38bd9640e3d9d7b0c6ab9ab98e3ae61fb..0a05e650f20801d1acb711d76b9f0e50da6156e4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -29,6 +29,8 @@ src_prepare() {
                echo 'EXTRA_DIST = ' > gtk-doc.make || die
        fi
 
+       eapply "${FILESDIR}"/"${PN}"-gdbus-codegen-fix.patch
+
        default
        eautoreconf
 }
index 8741ea6e29e65cf8f62479919b335e14634a2767..4effb5f74a6016ea3caac232303aac24403984fa 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -29,6 +29,8 @@ src_prepare() {
                echo 'EXTRA_DIST = ' > gtk-doc.make || die
        fi
 
+       eapply "${FILESDIR}"/"${PN}"-gdbus-codegen-fix.patch
+
        default
        eautoreconf
 }