Files
MSYS2-packages/libidn2/libidn2-2.0.4-msys2.patch
2017-09-07 09:45:34 +03:00

140 lines
4.9 KiB
Diff

diff -Naur libidn2-2.0.4-orig/build-aux/ar-lib libidn2-2.0.4/build-aux/ar-lib
--- libidn2-2.0.4-orig/build-aux/ar-lib 2017-08-30 16:00:31.000000000 +0300
+++ libidn2-2.0.4/build-aux/ar-lib 2017-09-07 09:02:33.903283300 +0300
@@ -53,7 +53,7 @@
MINGW*)
file_conv=mingw
;;
- CYGWIN*)
+ CYGWIN* | MSYS*)
file_conv=cygwin
;;
*)
@@ -65,7 +65,7 @@
mingw)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
- cygwin)
+ cygwin | msys)
file=`cygpath -m "$file" || echo "$file"`
;;
wine)
diff -Naur libidn2-2.0.4-orig/build-aux/compile libidn2-2.0.4/build-aux/compile
--- libidn2-2.0.4-orig/build-aux/compile 2017-08-30 16:00:31.000000000 +0300
+++ libidn2-2.0.4/build-aux/compile 2017-09-07 09:01:27.071460700 +0300
@@ -53,7 +53,7 @@
MINGW*)
file_conv=mingw
;;
- CYGWIN*)
+ CYGWIN*|MSYS*)
file_conv=cygwin
;;
*)
@@ -67,7 +67,7 @@
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
- cygwin/*)
+ cygwin/*|msys/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
diff -Naur libidn2-2.0.4-orig/build-aux/config.guess libidn2-2.0.4/build-aux/config.guess
--- libidn2-2.0.4-orig/build-aux/config.guess 2017-08-28 12:52:50.000000000 +0300
+++ libidn2-2.0.4/build-aux/config.guess 2017-09-07 09:03:23.593125400 +0300
@@ -892,6 +892,9 @@
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
echo x86_64-unknown-cygwin
exit ;;
+ amd64:MSYS*:*:* | x86_64:MSYS*:*:*)
+ echo x86_64-unknown-msys
+ exit ;;
p*:CYGWIN*:*)
echo powerpcle-unknown-cygwin
exit ;;
diff -Naur libidn2-2.0.4-orig/build-aux/config.rpath libidn2-2.0.4/build-aux/config.rpath
--- libidn2-2.0.4-orig/build-aux/config.rpath 2017-08-30 15:59:58.000000000 +0300
+++ libidn2-2.0.4/build-aux/config.rpath 2017-09-07 09:02:05.591664000 +0300
@@ -57,7 +57,7 @@
aix*)
wl='-Wl,'
;;
- mingw* | cygwin* | pw32* | os2* | cegcc*)
+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
;;
hpux9* | hpux10* | hpux11*)
wl='-Wl,'
@@ -149,7 +149,7 @@
hardcode_minus_L=no
case "$host_os" in
- cygwin* | mingw* | pw32* | cegcc*)
+ cygwin* | msys* | mingw* | pw32* | cegcc*)
# FIXME: the MSVC++ port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
@@ -198,7 +198,7 @@
ld_shlibs=no
fi
;;
- cygwin* | mingw* | pw32* | cegcc*)
+ cygwin* | msys* | mingw* | pw32* | cegcc*)
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec='-L$libdir'
@@ -348,7 +348,7 @@
;;
bsdi[45]*)
;;
- cygwin* | mingw* | pw32* | cegcc*)
+ cygwin* | msys* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is
@@ -533,7 +533,7 @@
bsdi[45]*)
library_names_spec='$libname$shrext'
;;
- cygwin* | mingw* | pw32* | cegcc*)
+ cygwin* | msys* | mingw* | pw32* | cegcc*)
shrext=.dll
library_names_spec='$libname.dll.a $libname.lib'
;;
diff -Naur libidn2-2.0.4-orig/m4/double-slash-root.m4 libidn2-2.0.4/m4/double-slash-root.m4
--- libidn2-2.0.4-orig/m4/double-slash-root.m4 2017-03-14 12:32:44.000000000 +0300
+++ libidn2-2.0.4/m4/double-slash-root.m4 2017-09-07 09:04:14.497036900 +0300
@@ -16,7 +16,7 @@
# special semantics and is distinct from /, please report it to
# <bug-gnulib@gnu.org>.
case $host in
- *-cygwin | i370-ibm-openedition)
+ *-cygwin | *-msys | i370-ibm-openedition)
gl_cv_double_slash_root=yes ;;
*)
# Be optimistic and assume that / and // are the same when we
diff -Naur libidn2-2.0.4-orig/m4/malloc.m4 libidn2-2.0.4/m4/malloc.m4
--- libidn2-2.0.4-orig/m4/malloc.m4 2017-03-14 12:32:44.000000000 +0300
+++ libidn2-2.0.4/m4/malloc.m4 2017-09-07 09:04:40.625531400 +0300
@@ -33,7 +33,7 @@
[case "$host_os" in
# Guess yes on platforms where we know the result.
*-gnu* | freebsd* | netbsd* | openbsd* \
- | hpux* | solaris* | cygwin* | mingw*)
+ | hpux* | solaris* | cygwin* | msys* | mingw*)
ac_cv_func_malloc_0_nonnull=yes ;;
# If we don't know, assume the worst.
*) ac_cv_func_malloc_0_nonnull=no ;;
diff -Naur libidn2-2.0.4-orig/unistring/Makefile.am libidn2-2.0.4/unistring/Makefile.am
--- libidn2-2.0.4-orig/unistring/Makefile.am 2017-07-21 16:50:50.000000000 +0300
+++ libidn2-2.0.4/unistring/Makefile.am 2017-09-07 09:05:15.977553400 +0300
@@ -293,7 +293,7 @@
case '$(host_os)' in \
darwin[56]*) \
need_charset_alias=true ;; \
- darwin* | cygwin* | mingw* | pw32* | cegcc*) \
+ darwin* | cygwin* | msys* | mingw* | pw32* | cegcc*) \
need_charset_alias=false ;; \
*) \
need_charset_alias=true ;; \