pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/gcc45
Module Name: pkgsrc
Committed By: maya
Date: Sat Sep 10 13:59:31 UTC 2016
Modified Files:
pkgsrc/lang/gcc45: distinfo
Added Files:
pkgsrc/lang/gcc45/patches: patch-gcc_config_netbsd.h
patch-include_libiberty.h patch-libiberty___doprnt.c
patch-libiberty_asprintf.c patch-libiberty_concat.c
patch-libiberty_snprintf.c patch-libiberty_vasprintf.c
patch-libiberty_vsnprintf.c
Log Message:
gcc45: use a more reasonable specfile for netbsd
fix some build errors I see (using same patches as lang/gcc46)
build still failing at:
unwind-dw2.c:1452:5: error: unknown field 'ptm_ceiling' specified in initializer
unwind-dw2.c:1452:5: warning: missing braces around initializer
unwind-dw2.c:1452:5: warning: (near initialization for 'once_regsizes.pto_mutex.<anonymous>')
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/lang/gcc45/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/gcc45/patches/patch-gcc_config_netbsd.h \
pkgsrc/lang/gcc45/patches/patch-include_libiberty.h \
pkgsrc/lang/gcc45/patches/patch-libiberty___doprnt.c \
pkgsrc/lang/gcc45/patches/patch-libiberty_asprintf.c \
pkgsrc/lang/gcc45/patches/patch-libiberty_concat.c \
pkgsrc/lang/gcc45/patches/patch-libiberty_snprintf.c \
pkgsrc/lang/gcc45/patches/patch-libiberty_vasprintf.c \
pkgsrc/lang/gcc45/patches/patch-libiberty_vsnprintf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/gcc45/distinfo
diff -u pkgsrc/lang/gcc45/distinfo:1.12 pkgsrc/lang/gcc45/distinfo:1.13
--- pkgsrc/lang/gcc45/distinfo:1.12 Tue Nov 3 22:50:35 2015
+++ pkgsrc/lang/gcc45/distinfo Sat Sep 10 13:59:31 2016
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2015/11/03 22:50:35 agc Exp $
+$NetBSD: distinfo,v 1.13 2016/09/10 13:59:31 maya Exp $
SHA1 (gcc-4.5.3.tar.bz2) = 73c45dfda5eef6b124be53e56828b5925198cc1b
RMD160 (gcc-4.5.3.tar.bz2) = d07aa90f2186b4e082dfd5ad5d5188c097fb6247
@@ -13,9 +13,17 @@ SHA1 (patch-ag) = b58f8b82fcf17c60eb2700
SHA1 (patch-ah) = a963394b0434b82494b7510d4b2705f77acfb668
SHA1 (patch-aj) = 1927ff77d1c51fe9e8927dba582c7d399545ae7b
SHA1 (patch-ak) = 3d8a859ba436a4b204bb99f59cd5331d695aa811
+SHA1 (patch-gcc_config_netbsd.h) = 086b593cf9f05e654df9e1a527485ca727ec44cc
SHA1 (patch-gcc_doc_cppopts.texi) = fba9b651bdef12f9034e75cb43533b50c2c94540
SHA1 (patch-gcc_doc_generic.texi) = b255fb30f889a415318a29c50ac0510ccece0bc4
SHA1 (patch-gcc_doc_invoke.texi) = 7418eddc7e4d39fab3da1922ff86965240661fb4
+SHA1 (patch-include_libiberty.h) = 101c12fad8092c7eb7ba41a75ca84f9a8017589b
SHA1 (patch-libgcc_config_t-slibgcc-darwin) = 2ddda2dd979f27c623e47db70c5abb3befdb68c9
+SHA1 (patch-libiberty___doprnt.c) = 20f839e98ca235d5a34adcad6b7ea4a77f06a9e8
+SHA1 (patch-libiberty_asprintf.c) = 39d8ca4c95aa035c4d8e9faba2e5919c13f4444c
+SHA1 (patch-libiberty_concat.c) = 07fe2982d57151579736361ca15f3edd8b0bce69
+SHA1 (patch-libiberty_snprintf.c) = 25e131f8ea4e6f8b567088f653f6a02153aec202
+SHA1 (patch-libiberty_vasprintf.c) = a8c0ec0c3e9dbfcd675a0bb02a89e8c51a885605
+SHA1 (patch-libiberty_vsnprintf.c) = 362ea0ce3f86df6548388878006db4f951aa1f09
SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__inline.h) = e328bc56bbb9c3e0a76c8d98a7c0a7b8b8eda22e
SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__noninline.h) = 38dd700202d741de1eeee01c44eee6e2e363b9c5
Added files:
Index: pkgsrc/lang/gcc45/patches/patch-gcc_config_netbsd.h
diff -u /dev/null pkgsrc/lang/gcc45/patches/patch-gcc_config_netbsd.h:1.1
--- /dev/null Sat Sep 10 13:59:31 2016
+++ pkgsrc/lang/gcc45/patches/patch-gcc_config_netbsd.h Sat Sep 10 13:59:31 2016
@@ -0,0 +1,22 @@
+$NetBSD: patch-gcc_config_netbsd.h,v 1.1 2016/09/10 13:59:31 maya Exp $
+
+when using shared, link against libc.
+
+--- gcc/config/netbsd.h.orig 2013-01-10 20:38:27.000000000 +0000
++++ gcc/config/netbsd.h
+@@ -96,6 +96,7 @@ along with GCC; see the file COPYING3.
+ %{!pg:-lposix}} \
+ %{p:-lposix_p} \
+ %{pg:-lposix_p}} \
++ %{shared:-lc} \
+ %{!shared: \
+ %{!symbolic: \
+ %{!p: \
+@@ -109,6 +110,7 @@ along with GCC; see the file COPYING3.
+ %{!pg:-lposix}} \
+ %{p:-lposix_p} \
+ %{pg:-lposix_p}} \
++ %{shared:-lc} \
+ %{!shared: \
+ %{!symbolic: \
+ %{!p: \
Index: pkgsrc/lang/gcc45/patches/patch-include_libiberty.h
diff -u /dev/null pkgsrc/lang/gcc45/patches/patch-include_libiberty.h:1.1
--- /dev/null Sat Sep 10 13:59:31 2016
+++ pkgsrc/lang/gcc45/patches/patch-include_libiberty.h Sat Sep 10 13:59:31 2016
@@ -0,0 +1,24 @@
+$NetBSD: patch-include_libiberty.h,v 1.1 2016/09/10 13:59:31 maya Exp $
+
+Don't use PARAMS
+cherry picked necessary parts from
+https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206881
+
+fixes PR pkg/50042
+
+--- include/libiberty.h.orig 2011-01-03 20:52:22.000000000 +0000
++++ include/libiberty.h
+@@ -85,11 +85,11 @@ extern char **dupargv (char **) ATTRIBUT
+
+ /* Expand "@file" arguments in argv. */
+
+-extern void expandargv PARAMS ((int *, char ***));
++extern void expandargv (int *, char ***);
+
+ /* Write argv to an @-file, inserting necessary quoting. */
+
+-extern int writeargv PARAMS ((char **, FILE *));
++extern int writeargv (char **, FILE *);
+
+ /* Return the last component of a path name. Note that we can't use a
+ prototype here because the parameter is declared inconsistently
Index: pkgsrc/lang/gcc45/patches/patch-libiberty___doprnt.c
diff -u /dev/null pkgsrc/lang/gcc45/patches/patch-libiberty___doprnt.c:1.1
--- /dev/null Sat Sep 10 13:59:31 2016
+++ pkgsrc/lang/gcc45/patches/patch-libiberty___doprnt.c Sat Sep 10 13:59:31 2016
@@ -0,0 +1,25 @@
+$NetBSD: patch-libiberty___doprnt.c,v 1.1 2016/09/10 13:59:31 maya Exp $
+
+use stdarg, not VA_* macros.
+cherry picked necessary parts from
+https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206881
+
+fixes PR pkg/50042
+
+--- libiberty/_doprnt.c.orig 2005-05-10 15:33:18.000000000 +0000
++++ libiberty/_doprnt.c
+@@ -222,11 +222,11 @@ static int
+ checkit (const char* format, ...)
+ {
+ int result;
+- VA_OPEN (args, format);
+- VA_FIXEDARG (args, char *, format);
++ va_list args;
++ va_start (args, format);
+
+ result = _doprnt (format, args, stdout);
+- VA_CLOSE (args);
++ va_end (args);
+
+ return result;
+ }
Index: pkgsrc/lang/gcc45/patches/patch-libiberty_asprintf.c
diff -u /dev/null pkgsrc/lang/gcc45/patches/patch-libiberty_asprintf.c:1.1
--- /dev/null Sat Sep 10 13:59:31 2016
+++ pkgsrc/lang/gcc45/patches/patch-libiberty_asprintf.c Sat Sep 10 13:59:31 2016
@@ -0,0 +1,24 @@
+$NetBSD: patch-libiberty_asprintf.c,v 1.1 2016/09/10 13:59:31 maya Exp $
+
+use stdarg, not VA_* macros.
+cherry picked necessary parts from
+https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206881
+
+fixes PR pkg/50042
+
+--- libiberty/asprintf.c.orig 2005-05-10 15:33:18.000000000 +0000
++++ libiberty/asprintf.c
+@@ -47,10 +47,9 @@ int
+ asprintf (char **buf, const char *fmt, ...)
+ {
+ int status;
+- VA_OPEN (ap, fmt);
+- VA_FIXEDARG (ap, char **, buf);
+- VA_FIXEDARG (ap, const char *, fmt);
++ va_list ap;
++ va_start (ap, fmt);
+ status = vasprintf (buf, fmt, ap);
+- VA_CLOSE (ap);
++ va_end (ap);
+ return status;
+ }
Index: pkgsrc/lang/gcc45/patches/patch-libiberty_concat.c
diff -u /dev/null pkgsrc/lang/gcc45/patches/patch-libiberty_concat.c:1.1
--- /dev/null Sat Sep 10 13:59:31 2016
+++ pkgsrc/lang/gcc45/patches/patch-libiberty_concat.c Sat Sep 10 13:59:31 2016
@@ -0,0 +1,108 @@
+$NetBSD: patch-libiberty_concat.c,v 1.1 2016/09/10 13:59:31 maya Exp $
+
+use stdarg, not VA_* macros.
+cherry picked necessary parts from
+https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206881
+
+fixes PR pkg/50042
+
+--- libiberty/concat.c.orig 2011-02-03 07:23:20.000000000 +0000
++++ libiberty/concat.c
+@@ -102,11 +90,11 @@ unsigned long
+ concat_length (const char *first, ...)
+ {
+ unsigned long length;
++ va_list args;
+
+- VA_OPEN (args, first);
+- VA_FIXEDARG (args, const char *, first);
++ va_start (args, first);
+ length = vconcat_length (first, args);
+- VA_CLOSE (args);
++ va_end (args);
+
+ return length;
+ }
+@@ -117,13 +105,12 @@ char *
+ concat_copy (char *dst, const char *first, ...)
+ {
+ char *save_dst;
++ va_list args;
+
+- VA_OPEN (args, first);
+- VA_FIXEDARG (args, char *, dst);
+- VA_FIXEDARG (args, const char *, first);
++ va_start (args, first);
+ vconcat_copy (dst, first, args);
+ save_dst = dst; /* With K&R C, dst goes out of scope here. */
+- VA_CLOSE (args);
++ va_end (args);
+
+ return save_dst;
+ }
+@@ -141,10 +128,10 @@ char *libiberty_concat_ptr;
+ char *
+ concat_copy2 (const char *first, ...)
+ {
+- VA_OPEN (args, first);
+- VA_FIXEDARG (args, const char *, first);
++ va_list args;
++ va_start (args, first);
+ vconcat_copy (libiberty_concat_ptr, first, args);
+- VA_CLOSE (args);
++ va_end (args);
+
+ return libiberty_concat_ptr;
+ }
+@@ -153,18 +140,17 @@ char *
+ concat (const char *first, ...)
+ {
+ char *newstr;
++ va_list args;
+
+ /* First compute the size of the result and get sufficient memory. */
+- VA_OPEN (args, first);
+- VA_FIXEDARG (args, const char *, first);
++ va_start (args, first);
+ newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
+- VA_CLOSE (args);
++ va_end (args);
+
+ /* Now copy the individual pieces to the result string. */
+- VA_OPEN (args, first);
+- VA_FIXEDARG (args, const char *, first);
++ va_start (args, first);
+ vconcat_copy (newstr, first, args);
+- VA_CLOSE (args);
++ va_end (args);
+
+ return newstr;
+ }
+@@ -191,22 +177,19 @@ char *
+ reconcat (char *optr, const char *first, ...)
+ {
+ char *newstr;
++ va_list args;
+
+ /* First compute the size of the result and get sufficient memory. */
+- VA_OPEN (args, first);
+- VA_FIXEDARG (args, char *, optr);
+- VA_FIXEDARG (args, const char *, first);
++ va_start (args, first);
+ newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
+- VA_CLOSE (args);
++ va_end (args);
+
+ /* Now copy the individual pieces to the result string. */
+- VA_OPEN (args, first);
+- VA_FIXEDARG (args, char *, optr);
+- VA_FIXEDARG (args, const char *, first);
++ va_start (args, first);
+ vconcat_copy (newstr, first, args);
+ if (optr) /* Done before VA_CLOSE so optr stays in scope for K&R C. */
+ free (optr);
+- VA_CLOSE (args);
++ va_end (args);
+
+ return newstr;
+ }
Index: pkgsrc/lang/gcc45/patches/patch-libiberty_snprintf.c
diff -u /dev/null pkgsrc/lang/gcc45/patches/patch-libiberty_snprintf.c:1.1
--- /dev/null Sat Sep 10 13:59:31 2016
+++ pkgsrc/lang/gcc45/patches/patch-libiberty_snprintf.c Sat Sep 10 13:59:31 2016
@@ -0,0 +1,25 @@
+$NetBSD: patch-libiberty_snprintf.c,v 1.1 2016/09/10 13:59:31 maya Exp $
+
+use stdarg, not VA_* macros.
+cherry picked necessary parts from
+https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206881
+
+fixes PR pkg/50042
+
+--- libiberty/snprintf.c.orig 2011-02-03 07:23:20.000000000 +0000
++++ libiberty/snprintf.c
+@@ -53,11 +53,9 @@ int
+ snprintf (char *s, size_t n, const char *format, ...)
+ {
+ int result;
+- VA_OPEN (ap, format);
+- VA_FIXEDARG (ap, char *, s);
+- VA_FIXEDARG (ap, size_t, n);
+- VA_FIXEDARG (ap, const char *, format);
++ va_list ap;
++ va_start (ap, format);
+ result = vsnprintf (s, n, format, ap);
+- VA_CLOSE (ap);
++ va_end (ap);
+ return result;
+ }
Index: pkgsrc/lang/gcc45/patches/patch-libiberty_vasprintf.c
diff -u /dev/null pkgsrc/lang/gcc45/patches/patch-libiberty_vasprintf.c:1.1
--- /dev/null Sat Sep 10 13:59:31 2016
+++ pkgsrc/lang/gcc45/patches/patch-libiberty_vasprintf.c Sat Sep 10 13:59:31 2016
@@ -0,0 +1,24 @@
+$NetBSD: patch-libiberty_vasprintf.c,v 1.1 2016/09/10 13:59:31 maya Exp $
+
+use stdarg, not VA_* macros.
+cherry picked necessary parts from
+https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206881
+
+fixes PR pkg/50042
+
+--- libiberty/vasprintf.c.orig 2011-02-03 07:23:20.000000000 +0000
++++ libiberty/vasprintf.c
+@@ -165,10 +165,10 @@ static void ATTRIBUTE_PRINTF_1
+ checkit (const char *format, ...)
+ {
+ char *result;
+- VA_OPEN (args, format);
+- VA_FIXEDARG (args, const char *, format);
++ va_list args;
++ va_start (args, format);
+ vasprintf (&result, format, args);
+- VA_CLOSE (args);
++ va_end (args);
+
+ if (strlen (result) < (size_t) global_total_width)
+ printf ("PASS: ");
Index: pkgsrc/lang/gcc45/patches/patch-libiberty_vsnprintf.c
diff -u /dev/null pkgsrc/lang/gcc45/patches/patch-libiberty_vsnprintf.c:1.1
--- /dev/null Sat Sep 10 13:59:31 2016
+++ pkgsrc/lang/gcc45/patches/patch-libiberty_vsnprintf.c Sat Sep 10 13:59:31 2016
@@ -0,0 +1,26 @@
+$NetBSD: patch-libiberty_vsnprintf.c,v 1.1 2016/09/10 13:59:31 maya Exp $
+
+use stdarg, not VA_* macros.
+cherry picked necessary parts from
+https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206881
+
+fixes PR pkg/50042
+
+--- libiberty/vsnprintf.c.orig 2011-02-03 07:23:20.000000000 +0000
++++ libiberty/vsnprintf.c
+@@ -95,12 +95,10 @@ static int ATTRIBUTE_PRINTF_3
+ checkit (char *s, size_t n, const char *format, ...)
+ {
+ int result;
+- VA_OPEN (ap, format);
+- VA_FIXEDARG (ap, char *, s);
+- VA_FIXEDARG (ap, size_t, n);
+- VA_FIXEDARG (ap, const char *, format);
++ va_list ap;
++ va_start (ap, format);
+ result = vsnprintf (s, n, format, ap);
+- VA_CLOSE (ap);
++ va_end (ap);
+ return result;
+ }
+
Home |
Main Index |
Thread Index |
Old Index