From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 93333139083 for ; Sun, 10 Dec 2017 22:02:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA89AE0F29; Sun, 10 Dec 2017 22:02:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9A06FE0F29 for ; Sun, 10 Dec 2017 22:02:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 767F733BE68 for ; Sun, 10 Dec 2017 22:02:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F2DC27449 for ; Sun, 10 Dec 2017 22:02:25 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1512943321.bbd39788128eeb5fe16a41f55c7da8ce5c0808e2.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-php/files/, app-eselect/eselect-php/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-eselect/eselect-php/eselect-php-0.9.4-r3.ebuild app-eselect/eselect-php/eselect-php-9999.ebuild app-eselect/eselect-php/files/php-fpm-launcher-r3 X-VCS-Directories: app-eselect/eselect-php/files/ app-eselect/eselect-php/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: bbd39788128eeb5fe16a41f55c7da8ce5c0808e2 X-VCS-Branch: master Date: Sun, 10 Dec 2017 22:02:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 51d16996-0fa3-410a-8f54-77ff8e2561dd X-Archives-Hash: c947afa887c780280934cc6e4a0d8c6e commit: bbd39788128eeb5fe16a41f55c7da8ce5c0808e2 Author: Craig Andrews gentoo org> AuthorDate: Sun Dec 10 21:05:33 2017 +0000 Commit: Craig Andrews gentoo org> CommitDate: Sun Dec 10 22:02:01 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbd39788 app-eselect/eselect-php: do not use get_libdir in php-fpm-launcher Closes: https://bugs.gentoo.org/640460 Package-Manager: Portage-2.3.17, Repoman-2.3.6 ...eselect-php-9999.ebuild => eselect-php-0.9.4-r3.ebuild} | 14 +++++--------- app-eselect/eselect-php/eselect-php-9999.ebuild | 3 ++- app-eselect/eselect-php/files/php-fpm-launcher-r3 | 11 +++++++++++ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/app-eselect/eselect-php/eselect-php-9999.ebuild b/app-eselect/eselect-php/eselect-php-0.9.4-r3.ebuild similarity index 82% copy from app-eselect/eselect-php/eselect-php-9999.ebuild copy to app-eselect/eselect-php/eselect-php-0.9.4-r3.ebuild index f695558d423..9d383514ec4 100644 --- a/app-eselect/eselect-php/eselect-php-9999.ebuild +++ b/app-eselect/eselect-php/eselect-php-0.9.4-r3.ebuild @@ -3,15 +3,15 @@ EAPI=6 -inherit systemd git-r3 autotools +inherit systemd DESCRIPTION="PHP eselect module" HOMEPAGE="https://gitweb.gentoo.org/proj/eselect-php.git/" -EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/eselect-php.git" +SRC_URI="https://dev.gentoo.org/~mjo/distfiles/${P}.tar.xz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" IUSE="fpm apache2" # The "DirectoryIndex" line in 70_mod_php.conf requires mod_dir. @@ -19,11 +19,6 @@ RDEPEND="app-admin/eselect apache2? ( www-servers/apache[apache2_modules_dir] ) fpm? ( sys-apps/gentoo-functions )" -src_prepare() { - eapply_user - eautoreconf -} - src_configure(){ # We expect localstatedir to be "var"ish, not "var/lib"ish, because # that's what PHP upstream expects. See for example the FPM @@ -49,8 +44,9 @@ src_install() { if use fpm ; then systemd_dotmpfilesd "${FILESDIR}/php-fpm.conf" + sed -e "s,@libdir@,$(get_libdir),g" "${FILESDIR}/php-fpm-launcher-r3" > "${T}"/php-fpm-launcher || die exeinto /usr/libexec - newexe "${FILESDIR}/php-fpm-launcher-r2" php-fpm-launcher + doexe "${T}"/php-fpm-launcher fi } diff --git a/app-eselect/eselect-php/eselect-php-9999.ebuild b/app-eselect/eselect-php/eselect-php-9999.ebuild index f695558d423..a8aa5bb8f4a 100644 --- a/app-eselect/eselect-php/eselect-php-9999.ebuild +++ b/app-eselect/eselect-php/eselect-php-9999.ebuild @@ -49,8 +49,9 @@ src_install() { if use fpm ; then systemd_dotmpfilesd "${FILESDIR}/php-fpm.conf" + sed -e "s,@libdir@,$(get_libdir),g" "${FILESDIR}/php-fpm-launcher-r3" > "${T}"/php-fpm-launcher || die exeinto /usr/libexec - newexe "${FILESDIR}/php-fpm-launcher-r2" php-fpm-launcher + doexe "${T}"/php-fpm-launcher fi } diff --git a/app-eselect/eselect-php/files/php-fpm-launcher-r3 b/app-eselect/eselect-php/files/php-fpm-launcher-r3 new file mode 100644 index 00000000000..a2b6eabc4da --- /dev/null +++ b/app-eselect/eselect-php/files/php-fpm-launcher-r3 @@ -0,0 +1,11 @@ +#!/bin/sh + +# If there are no arguments, then "shift" will fail (bug 626496). +if [ $# -eq 0 ]; then + PHP_SLOT=$(eselect php show fpm) +else + PHP_SLOT=$1 + shift +fi + +exec "/usr/@libdir@/${PHP_SLOT}/bin/php-fpm" "${@}"