* [PATCH] comptools/make: Install 'gmake' symlink
@ 2014-10-09 8:45 Bernhard Walle
2014-12-05 7:00 ` Bernhard Walle
2014-12-05 7:15 ` Bryan Hundven
0 siblings, 2 replies; 5+ messages in thread
From: Bernhard Walle @ 2014-10-09 8:45 UTC (permalink / raw)
To: crossgcc; +Cc: Bernhard Walle
We had following problem: We're building a toolchain with an old glibc
version for compatibility with old Linux distributions (glibc 2.9). This
version requires make < 4 to build. However, the configure script of
glibc looks for make in the order "gnumake", "gmake" and "make". So when
"gmake" is available in the system (which is the case on Gentoo Linux
per default, unfortunately), then configure finds the system gmake 4.1
instead of the ct-ng make 3.82.
This patch installs a symlink so that 'gmake' is also available in the
old version when building toolchains.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
scripts/build/companion_tools/050-make.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/build/companion_tools/050-make.sh b/scripts/build/companion_tools/050-make.sh
index 6524e35..b7a8727 100644
--- a/scripts/build/companion_tools/050-make.sh
+++ b/scripts/build/companion_tools/050-make.sh
@@ -22,6 +22,7 @@ do_companion_tools_make_build() {
--prefix="${CT_BUILDTOOLS_PREFIX_DIR}"
CT_DoExecLog ALL make
CT_DoExecLog ALL make install
+ CT_DoExecLog ALL ln -sv make "${CT_BUILDTOOLS_PREFIX_DIR}/bin/gmake"
CT_Popd
CT_EndStep
}
--
2.1.2
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] comptools/make: Install 'gmake' symlink
2014-10-09 8:45 [PATCH] comptools/make: Install 'gmake' symlink Bernhard Walle
@ 2014-12-05 7:00 ` Bernhard Walle
2014-12-05 7:15 ` Bryan Hundven
1 sibling, 0 replies; 5+ messages in thread
From: Bernhard Walle @ 2014-12-05 7:00 UTC (permalink / raw)
To: crossgcc
Please review me
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] comptools/make: Install 'gmake' symlink
2014-10-09 8:45 [PATCH] comptools/make: Install 'gmake' symlink Bernhard Walle
2014-12-05 7:00 ` Bernhard Walle
@ 2014-12-05 7:15 ` Bryan Hundven
2014-12-05 7:17 ` Bryan Hundven
1 sibling, 1 reply; 5+ messages in thread
From: Bryan Hundven @ 2014-12-05 7:15 UTC (permalink / raw)
To: Bernhard Walle; +Cc: crossgcc maillist
Bernhard,
On Thu, Oct 9, 2014 at 1:45 AM, Bernhard Walle <bernhard@bwalle.de> wrote:
> We had following problem: We're building a toolchain with an old glibc
> version for compatibility with old Linux distributions (glibc 2.9). This
> version requires make < 4 to build. However, the configure script of
> glibc looks for make in the order "gnumake", "gmake" and "make". So when
> "gmake" is available in the system (which is the case on Gentoo Linux
> per default, unfortunately), then configure finds the system gmake 4.1
> instead of the ct-ng make 3.82.
>
> This patch installs a symlink so that 'gmake' is also available in the
> old version when building toolchains.
What do you think of adding a:
config COMP_TOOLS_make_gmake
bool
prompt "Add gmake symlink to companion gnu/make"
depends on COMP_TOOLS_make
Just after COMP_TOOLS_make in config/companion_tools.in that enables
the creation of this symlink.
Then add...
> Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
> ---
> scripts/build/companion_tools/050-make.sh | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/build/companion_tools/050-make.sh b/scripts/build/companion_tools/050-make.sh
> index 6524e35..b7a8727 100644
> --- a/scripts/build/companion_tools/050-make.sh
> +++ b/scripts/build/companion_tools/050-make.sh
> @@ -22,6 +22,7 @@ do_companion_tools_make_build() {
> --prefix="${CT_BUILDTOOLS_PREFIX_DIR}"
> CT_DoExecLog ALL make
> CT_DoExecLog ALL make install
if [ "$COMP_TOOLS_make_gmake" = "y" ]; then
> + CT_DoExecLog ALL ln -sv make "${CT_BUILDTOOLS_PREFIX_DIR}/bin/gmake"
fi
> CT_Popd
> CT_EndStep
> }
> --
> 2.1.2
as it may be handy to sometimes install the gmake symlink, but it may
not be adventitious in other scenarios.
-Bryan
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] comptools/make: Install 'gmake' symlink
2014-12-05 7:15 ` Bryan Hundven
@ 2014-12-05 7:17 ` Bryan Hundven
2014-12-07 14:57 ` Bernhard Walle
0 siblings, 1 reply; 5+ messages in thread
From: Bryan Hundven @ 2014-12-05 7:17 UTC (permalink / raw)
To: Bernhard Walle; +Cc: crossgcc maillist
Bernhard,
On Thu, Dec 4, 2014 at 11:15 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> Bernhard,
>
> On Thu, Oct 9, 2014 at 1:45 AM, Bernhard Walle <bernhard@bwalle.de> wrote:
>> We had following problem: We're building a toolchain with an old glibc
>> version for compatibility with old Linux distributions (glibc 2.9). This
>> version requires make < 4 to build. However, the configure script of
>> glibc looks for make in the order "gnumake", "gmake" and "make". So when
>> "gmake" is available in the system (which is the case on Gentoo Linux
>> per default, unfortunately), then configure finds the system gmake 4.1
>> instead of the ct-ng make 3.82.
>>
>> This patch installs a symlink so that 'gmake' is also available in the
>> old version when building toolchains.
>
> What do you think of adding a:
>
> config COMP_TOOLS_make_gmake
> bool
> prompt "Add gmake symlink to companion gnu/make"
> depends on COMP_TOOLS_make
>
> Just after COMP_TOOLS_make in config/companion_tools.in that enables
> the creation of this symlink.
>
> Then add...
>
>> Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
>> ---
>> scripts/build/companion_tools/050-make.sh | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/scripts/build/companion_tools/050-make.sh b/scripts/build/companion_tools/050-make.sh
>> index 6524e35..b7a8727 100644
>> --- a/scripts/build/companion_tools/050-make.sh
>> +++ b/scripts/build/companion_tools/050-make.sh
>> @@ -22,6 +22,7 @@ do_companion_tools_make_build() {
>> --prefix="${CT_BUILDTOOLS_PREFIX_DIR}"
>> CT_DoExecLog ALL make
>> CT_DoExecLog ALL make install
> if [ "$COMP_TOOLS_make_gmake" = "y" ]; then
Doh, at this point it would be: CT_COMP_TOOLS_make_gmake
>> + CT_DoExecLog ALL ln -sv make "${CT_BUILDTOOLS_PREFIX_DIR}/bin/gmake"
> fi
>> CT_Popd
>> CT_EndStep
>> }
>> --
>> 2.1.2
>
> as it may be handy to sometimes install the gmake symlink, but it may
> not be adventitious in other scenarios.
>
> -Bryan
-Bryan
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] comptools/make: Install 'gmake' symlink
2014-12-05 7:17 ` Bryan Hundven
@ 2014-12-07 14:57 ` Bernhard Walle
0 siblings, 0 replies; 5+ messages in thread
From: Bernhard Walle @ 2014-12-07 14:57 UTC (permalink / raw)
To: crossgcc; +Cc: bryanhundven, Bernhard Walle
We had following problem: We're building a toolchain with an old glibc
version for compatibility with old Linux distributions (glibc 2.9). This
version requires make < 4 to build. However, the configure script of
glibc looks for make in the order "gnumake", "gmake" and "make". So when
"gmake" is available in the system (which is the case on Gentoo Linux
per default, unfortunately), then configure finds the system gmake 4.1
instead of the ct-ng make 3.82.
This patch adds an option to install a symlink so that 'gmake' is also
available in the old version when building toolchains.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
v2: Add an option instead of always installing the symlink
config/companion_tools.in | 5 +++++
scripts/build/companion_tools/050-make.sh | 3 +++
2 files changed, 8 insertions(+)
diff --git a/config/companion_tools.in b/config/companion_tools.in
index 18811e6..f922388 100644
--- a/config/companion_tools.in
+++ b/config/companion_tools.in
@@ -35,6 +35,11 @@ config COMP_TOOLS_make
bool
prompt "make"
+config COMP_TOOLS_make_gmake
+ bool
+ prompt "Add gmake symlink to companion gnu/make"
+ depends on COMP_TOOLS_make
+
config COMP_TOOLS_m4
bool
prompt "m4"
diff --git a/scripts/build/companion_tools/050-make.sh b/scripts/build/companion_tools/050-make.sh
index 6524e35..7c67757 100644
--- a/scripts/build/companion_tools/050-make.sh
+++ b/scripts/build/companion_tools/050-make.sh
@@ -22,6 +22,9 @@ do_companion_tools_make_build() {
--prefix="${CT_BUILDTOOLS_PREFIX_DIR}"
CT_DoExecLog ALL make
CT_DoExecLog ALL make install
+ if [ "${CT_COMP_TOOLS_make_gmake}" = "y" ]; then
+ CT_DoExecLog ALL ln -sv make "${CT_BUILDTOOLS_PREFIX_DIR}/bin/gmake"
+ fi
CT_Popd
CT_EndStep
}
--
2.1.3
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-07 14:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-09 8:45 [PATCH] comptools/make: Install 'gmake' symlink Bernhard Walle
2014-12-05 7:00 ` Bernhard Walle
2014-12-05 7:15 ` Bryan Hundven
2014-12-05 7:17 ` Bryan Hundven
2014-12-07 14:57 ` Bernhard Walle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).