Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 471294 Details for
Bug 336732
kernel-2.eclass - Makefile creates $(T).tmp_gas_check when T is set in environment; should be $(T)/.tmp_gas_check instead, and if unset ./.tmp_gas_check.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch handling unset T case as well
bug-336732.v2.patch (text/plain), 1.59 KB, created by
Andrey
on 2017-04-29 18:36:38 UTC
(
hide
)
Description:
Patch handling unset T case as well
Filename:
MIME Type:
Creator:
Andrey
Created:
2017-04-29 18:36:38 UTC
Size:
1.59 KB
patch
obsolete
>From 51c4b44a3d1ce554d1755fe57dee9066b314d693 Mon Sep 17 00:00:00 2001 >From: Andrey Mazo <ahippo@yandex.com> >Date: Sat, 29 Apr 2017 21:24:02 +0300 >Subject: [PATCH 1/1] kernel-2.eclass: create .tmp_gas_check under $(T) > >The eclass was erroneously creating $(T).tmp_gas_check file >instead of .tmp_gas_check under $(T). > >A naive "$(T)/.tmp_gas_check" wouldn't work when $(T) is unset >(like for manual `make` invocations), >so use $(addsuffix) trick to append / only if $(T) is set. > >Also, deduplicate sed invocations and >make the regexp more resilient to whitespace changes upstream. > >Bug #336732. >--- > eclass/kernel-2.eclass | 14 +++++--------- > 1 file changed, 5 insertions(+), 9 deletions(-) > >diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass >index db4a3bf..26a20ba 100644 >--- a/eclass/kernel-2.eclass >+++ b/eclass/kernel-2.eclass >@@ -1490,17 +1490,13 @@ kernel-2_src_unpack() { > fi > > # fix a problem on ppc where TOUT writes to /usr/src/linux breaking sandbox >- # only do this for kernel < 2.6.27 since this file does not exist in later >- # kernels >+ local ppc_makefile="${S}"/arch/powerpc/Makefile > if [[ -n ${KV_MINOR} && ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} < 2.6.27 ]] ; then >- sed -i \ >- -e 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \ >- "${S}"/arch/ppc/Makefile >- else >- sed -i \ >- -e 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \ >- "${S}"/arch/powerpc/Makefile >+ ppc_makefile="${S}"/arch/ppc/Makefile > fi >+ sed -i \ >+ -e 's|^\(TOUT.*:= \)\(\.tmp_gas_check\)|\1$(addsuffix /,$(T))\2|' \ >+ "${ppc_makefile}" > } > > # @FUNCTION: kernel-2_src_prepare >-- >2.10.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 336732
:
246735
|
345398
| 471294 |
737200
|
737950