* [gentoo-portage-dev] [PATCH] emake: pass EXTRA_EMAKE after user's "$@", not before
@ 2014-07-24 22:11 Sergei Trofimovich
2014-08-10 0:32 ` Brian Dolbec
2014-09-14 19:40 ` [gentoo-portage-dev] " Sergei Trofimovich
0 siblings, 2 replies; 4+ messages in thread
From: Sergei Trofimovich @ 2014-07-24 22:11 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Sergei Trofimovich
Patch allows easier override or ebuild things, like
#foo-9999.ebuild:
src_compile() {
emake V=1
}
EXTRA_EMAKE="V=0" emerge =foo-9999
That way it's easier to eyeball upstream builds for new warnings.
This behaviour is more in line with EXTRA_ECONF variable.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
---
bin/ebuild-helpers/emake | 4 ++--
bin/phase-helpers.sh | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/bin/ebuild-helpers/emake b/bin/ebuild-helpers/emake
index 69d836f..4618053 100755
--- a/bin/ebuild-helpers/emake
+++ b/bin/ebuild-helpers/emake
@@ -13,7 +13,7 @@ source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
if [[ $PORTAGE_QUIET != 1 ]] ; then
(
- for arg in ${MAKE:-make} $MAKEOPTS $EXTRA_EMAKE "$@" ; do
+ for arg in ${MAKE:-make} $MAKEOPTS "$@" $EXTRA_EMAKE ; do
[[ ${arg} == *" "* ]] \
&& printf "'%s' " "${arg}" \
|| printf "%s " "${arg}"
@@ -22,7 +22,7 @@ if [[ $PORTAGE_QUIET != 1 ]] ; then
) >&2
fi
-${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@"
+${MAKE:-make} ${MAKEOPTS} "$@" ${EXTRA_EMAKE}
ret=$?
[[ $ret -ne 0 ]] && __helpers_die "${0##*/} failed"
exit $ret
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 412decb..47bd843 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -617,8 +617,8 @@ einstall() {
mandir="${ED}usr/share/man" \
sysconfdir="${ED}etc" \
${LOCAL_EXTRA_EINSTALL} \
- ${MAKEOPTS} ${EXTRA_EMAKE} -j1 \
- "$@" install
+ ${MAKEOPTS} -j1 \
+ "$@" ${EXTRA_EMAKE} install
fi
${MAKE:-make} prefix="${ED}usr" \
datadir="${ED}usr/share" \
@@ -627,8 +627,8 @@ einstall() {
mandir="${ED}usr/share/man" \
sysconfdir="${ED}etc" \
${LOCAL_EXTRA_EINSTALL} \
- ${MAKEOPTS} ${EXTRA_EMAKE} -j1 \
- "$@" install || die "einstall failed"
+ ${MAKEOPTS} -j1 \
+ "$@" ${EXTRA_EMAKE} install || die "einstall failed"
else
die "no Makefile found"
fi
--
2.0.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] [PATCH] emake: pass EXTRA_EMAKE after user's "$@", not before
2014-07-24 22:11 [gentoo-portage-dev] [PATCH] emake: pass EXTRA_EMAKE after user's "$@", not before Sergei Trofimovich
@ 2014-08-10 0:32 ` Brian Dolbec
2014-09-14 19:40 ` [gentoo-portage-dev] " Sergei Trofimovich
1 sibling, 0 replies; 4+ messages in thread
From: Brian Dolbec @ 2014-08-10 0:32 UTC (permalink / raw
To: gentoo-portage-dev
On Fri, 25 Jul 2014 01:11:47 +0300
Sergei Trofimovich <slyfox@gentoo.org> wrote:
> Patch allows easier override or ebuild things, like
> #foo-9999.ebuild:
> src_compile() {
> emake V=1
> }
>
> EXTRA_EMAKE="V=0" emerge =foo-9999
>
> That way it's easier to eyeball upstream builds for new warnings.
>
> This behaviour is more in line with EXTRA_ECONF variable.
>
> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
> ---
Applied, thank you for this patch.
--
Brian Dolbec <dolsen>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-portage-dev] Re: [PATCH] emake: pass EXTRA_EMAKE after user's "$@", not before
2014-07-24 22:11 [gentoo-portage-dev] [PATCH] emake: pass EXTRA_EMAKE after user's "$@", not before Sergei Trofimovich
2014-08-10 0:32 ` Brian Dolbec
@ 2014-09-14 19:40 ` Sergei Trofimovich
2014-09-15 2:01 ` Zac Medico
1 sibling, 1 reply; 4+ messages in thread
From: Sergei Trofimovich @ 2014-09-14 19:40 UTC (permalink / raw
To: gentoo-portage-dev
[-- Attachment #1: Type: text/plain, Size: 2314 bytes --]
On Fri, 25 Jul 2014 01:11:47 +0300
Sergei Trofimovich <slyfox@gentoo.org> wrote:
ping :]
> Patch allows easier override or ebuild things, like
> #foo-9999.ebuild:
> src_compile() {
> emake V=1
> }
>
> EXTRA_EMAKE="V=0" emerge =foo-9999
>
> That way it's easier to eyeball upstream builds for new warnings.
>
> This behaviour is more in line with EXTRA_ECONF variable.
>
> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
> ---
> bin/ebuild-helpers/emake | 4 ++--
> bin/phase-helpers.sh | 8 ++++----
> 2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/bin/ebuild-helpers/emake b/bin/ebuild-helpers/emake
> index 69d836f..4618053 100755
> --- a/bin/ebuild-helpers/emake
> +++ b/bin/ebuild-helpers/emake
> @@ -13,7 +13,7 @@ source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
>
> if [[ $PORTAGE_QUIET != 1 ]] ; then
> (
> - for arg in ${MAKE:-make} $MAKEOPTS $EXTRA_EMAKE "$@" ; do
> + for arg in ${MAKE:-make} $MAKEOPTS "$@" $EXTRA_EMAKE ; do
> [[ ${arg} == *" "* ]] \
> && printf "'%s' " "${arg}" \
> || printf "%s " "${arg}"
> @@ -22,7 +22,7 @@ if [[ $PORTAGE_QUIET != 1 ]] ; then
> ) >&2
> fi
>
> -${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@"
> +${MAKE:-make} ${MAKEOPTS} "$@" ${EXTRA_EMAKE}
> ret=$?
> [[ $ret -ne 0 ]] && __helpers_die "${0##*/} failed"
> exit $ret
> diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
> index 412decb..47bd843 100644
> --- a/bin/phase-helpers.sh
> +++ b/bin/phase-helpers.sh
> @@ -617,8 +617,8 @@ einstall() {
> mandir="${ED}usr/share/man" \
> sysconfdir="${ED}etc" \
> ${LOCAL_EXTRA_EINSTALL} \
> - ${MAKEOPTS} ${EXTRA_EMAKE} -j1 \
> - "$@" install
> + ${MAKEOPTS} -j1 \
> + "$@" ${EXTRA_EMAKE} install
> fi
> ${MAKE:-make} prefix="${ED}usr" \
> datadir="${ED}usr/share" \
> @@ -627,8 +627,8 @@ einstall() {
> mandir="${ED}usr/share/man" \
> sysconfdir="${ED}etc" \
> ${LOCAL_EXTRA_EINSTALL} \
> - ${MAKEOPTS} ${EXTRA_EMAKE} -j1 \
> - "$@" install || die "einstall failed"
> + ${MAKEOPTS} -j1 \
> + "$@" ${EXTRA_EMAKE} install || die "einstall failed"
> else
> die "no Makefile found"
> fi
> --
> 2.0.0
>
--
Sergei
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] Re: [PATCH] emake: pass EXTRA_EMAKE after user's "$@", not before
2014-09-14 19:40 ` [gentoo-portage-dev] " Sergei Trofimovich
@ 2014-09-15 2:01 ` Zac Medico
0 siblings, 0 replies; 4+ messages in thread
From: Zac Medico @ 2014-09-15 2:01 UTC (permalink / raw
To: gentoo-portage-dev
On 09/14/2014 12:40 PM, Sergei Trofimovich wrote:
> On Fri, 25 Jul 2014 01:11:47 +0300
> Sergei Trofimovich <slyfox@gentoo.org> wrote:
>
> ping :]
>
Brian already committed your patch on Aug. 9:
https://github.com/gentoo/portage/commit/49ec4696f0d933957c75b8ecc0f775bc79c78010
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-15 2:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24 22:11 [gentoo-portage-dev] [PATCH] emake: pass EXTRA_EMAKE after user's "$@", not before Sergei Trofimovich
2014-08-10 0:32 ` Brian Dolbec
2014-09-14 19:40 ` [gentoo-portage-dev] " Sergei Trofimovich
2014-09-15 2:01 ` Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox