forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-emulation/dosemu: backported glibc detection, bug #597880
Reported-by: [email protected] Bug: https://bugs.gentoo.org/597880 Package-Manager: portage-2.3.2
- Loading branch information
Sergei Trofimovich
committed
Oct 29, 2016
1 parent
4eeb397
commit 1782ca0
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
app-emulation/dosemu/files/dosemu-1.4.1_pre20091009-fix-glibc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
The patch is a subset of | ||
|
||
commit b028d3fd33b004ac61583927884a64577e2d64c3 | ||
Author: Bart Oldeman <[email protected]> | ||
Date: Sun Dec 23 22:08:11 2012 -0500 | ||
|
||
to fix glibc detection for | ||
Bug: https://bugs.gentoo.org/597880 | ||
diff --git a/configure.ac b/configure.ac | ||
index 70bc154..b8da5e2 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -644,19 +640,9 @@ if test "$GCC" = "yes" ; then | ||
fi | ||
|
||
AC_MSG_CHECKING(for glibc...) | ||
- set `printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__ XXBbZZ __GLIBC_MINOR__'|${CC-cc} -E -|awk '/XXAaZZ/ {print $2 " " $4}'` | ||
- major=$1; minor=$2 | ||
- if test "$major" = "__GLIBC__"; then | ||
- AC_MSG_ERROR([Sorry, you need glibc-2.1.3 or newer.]) | ||
- else | ||
- if test "$minor" = "__GLIBC_MINOR__"; then | ||
- minor=0; | ||
- fi | ||
- GLIBC_VERSION_CODE=$((($major * 1000) + $minor)) | ||
- AC_MSG_RESULT([yes, version code $GLIBC_VERSION_CODE]) | ||
- if test $GLIBC_VERSION_CODE -lt 2001; then | ||
- AC_MSG_ERROR([Sorry, you need glibc-2.1.3 or newer.]) | ||
- fi | ||
+ set `printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__'|${CC-cc} -E -|awk '/XXAaZZ/ {print $2}'` | ||
+ if test "$1" = "__GLIBC__"; then | ||
+ AC_MSG_ERROR([Sorry, you need glibc.]) | ||
fi | ||
fi | ||
|