Bug 2409 - Outdated GNU config.guess scripts
Summary: Outdated GNU config.guess scripts
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: -current
Hardware: All All
: P5 trivial
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_6_9
  Show dependency treegraph
 
Reported: 2015-06-04 09:06 AEST by Sevan Janiyan
Modified: 2023-01-13 13:18 AEDT (History)
2 users (show)

See Also:


Attachments
Diff for updated config.guess (16.44 KB, patch)
2015-06-04 10:49 AEST, Darren Tucker
no flags Details | Diff
Add Linux powerpc64le and powerpcle entries (887 bytes, patch)
2015-06-05 14:45 AEST, Darren Tucker
djm: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sevan Janiyan 2015-06-04 09:06:50 AEST
The version of config.guess shipped with the 6.9 SNAP is out of date 

Latest version (2015-03-04) can be obtained from: 
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD

Bundled version is dated 2012-12-23.
This means that configure fails on ppc64le running Linux for example.
Comment 1 Darren Tucker 2015-06-04 10:49:54 AEST
Created attachment 2643 [details]
Diff for updated config.guess

Here's the net change.  Do we want to do this before or after the release?
Comment 2 Damien Miller 2015-06-04 11:37:00 AEST
Comment on attachment 2643 [details]
Diff for updated config.guess

I think the whole thing is too big for now, but maybe we could just add:

    ppc64le:Linux:*:*)
	echo powerpc64le-unknown-linux-gnu
	exit ;;
    ppcle:Linux:*:*)
	echo powerpcle-unknown-linux-gnu
	exit ;;

which should get the OP going, and do the rest after release
Comment 3 Darren Tucker 2015-06-05 14:45:54 AEST
Created attachment 2646 [details]
Add Linux powerpc64le and powerpcle entries

OK.  We've added "update config.guess" to our post-release checklist so we should keep it more up to date in future.
Comment 4 Darren Tucker 2015-06-05 14:50:17 AEST
err, ignore the defines.h piece, that's something else.
Comment 5 Damien Miller 2015-06-05 17:08:39 AEST
Comment on attachment 2646 [details]
Add Linux powerpc64le and powerpcle entries

ok for this bit:

>diff --git a/config.guess b/config.guess
>index b94cde8..c563628 100755
>--- a/config.guess
>+++ b/config.guess
>@@ -982,6 +982,12 @@ EOF
>     ppc:Linux:*:*)
> 	echo powerpc-unknown-linux-gnu
> 	exit ;;
>+    ppc64le:Linux:*:*)
>+	echo powerpc64le-unknown-linux-gnu
>+	exit ;;
>+    ppcle:Linux:*:*)
>+	echo powerpcle-unknown-linux-gnu
>+	exit ;;
>     s390:Linux:*:* | s390x:Linux:*:*)
> 	echo ${UNAME_MACHINE}-ibm-linux
> 	exit ;;

this bit looks separate:

>diff --git a/defines.h b/defines.h
>index fa0ccba..3324166 100644
>--- a/defines.h
>+++ b/defines.h
>@@ -850,4 +850,9 @@ struct winsize {
> # endif /* gcc version */
> #endif /* __predict_true */
> 
>+int sprintf(char *, const char *, ...)	__attribute__((deprecated));
>+char *strcpy(char *, const char *)	__attribute__((deprecated));
>+char *strcat(char *, const char *)	__attribute__((deprecated));
>+char *gets(char *)			__attribute__((deprecated));
>+
> #endif /* _DEFINES_H */
Comment 6 Damien Miller 2015-08-11 23:03:31 AEST
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1