diff options
author | mef <mef@pkgsrc.org> | 2020-08-04 22:21:57 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2020-08-04 22:21:57 +0000 |
commit | 773c53c135d893b1fbc8ebaf1845b580975f58bb (patch) | |
tree | 6d9eb88d46af7ea6a613857b9b86cf1a11342b19 /cross | |
parent | 44188f786c13af2e12508565b1e2888f60413804 (diff) | |
download | pkgsrc-773c53c135d893b1fbc8ebaf1845b580975f58bb.tar.gz |
(cross/freemint-mintlib) Add two patches to make it build (ref: DragonflyBSD)
Diffstat (limited to 'cross')
-rw-r--r-- | cross/freemint-mintlib/distinfo | 4 | ||||
-rw-r--r-- | cross/freemint-mintlib/patches/patch-gcc-4.6.4_gcc_cp_cfns.gperf | 22 | ||||
-rw-r--r-- | cross/freemint-mintlib/patches/patch-gcc-4.6.4_gcc_cp_cfns.h | 30 |
3 files changed, 55 insertions, 1 deletions
diff --git a/cross/freemint-mintlib/distinfo b/cross/freemint-mintlib/distinfo index 76897f969b6..b1195b4dab1 100644 --- a/cross/freemint-mintlib/distinfo +++ b/cross/freemint-mintlib/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2016/12/18 21:34:25 joerg Exp $ +$NetBSD: distinfo,v 1.5 2020/08/04 22:21:57 mef Exp $ SHA1 (gcc-4.6.4-mint-20130415.patch.bz2) = bd2e88f2b862cc404f47144fb67375b1fe17291b RMD160 (gcc-4.6.4-mint-20130415.patch.bz2) = d3cafafb1caa1a1eb915c5f15f4063d6a70ac4ee @@ -12,5 +12,7 @@ SHA1 (mintlib-CVS-20131219.tar.gz) = c49107b07c775daa5028ac964ea1c558eede9cd1 RMD160 (mintlib-CVS-20131219.tar.gz) = 949b0d3abe28f26539198da27d2dd7c7bd544f29 SHA512 (mintlib-CVS-20131219.tar.gz) = 3814c63578276b7722b91b86712d4f2b5f499b46e58e5dd5dbe8f978c907fdca960811234691f498ededf2028088334c416c94d347e54caf91d09be023473692 Size (mintlib-CVS-20131219.tar.gz) = 1888097 bytes +SHA1 (patch-gcc-4.6.4_gcc_cp_cfns.gperf) = da2735f36dc5a2ab19f92cb13f505cea11442fca +SHA1 (patch-gcc-4.6.4_gcc_cp_cfns.h) = 2a9e8f53bd63c98efa0cda782dacb78b00beb2bc SHA1 (patch-gcc-4.6.4_gcc_doc_gcc.texi) = b11ef8d6ad28139623800ddcc5aa67bc45289b07 SHA1 (patch-mintlib-CVS-20130415_configvars) = f1d0f2e1fe244c475634cd1ab4dd5ddc2b9a73f3 diff --git a/cross/freemint-mintlib/patches/patch-gcc-4.6.4_gcc_cp_cfns.gperf b/cross/freemint-mintlib/patches/patch-gcc-4.6.4_gcc_cp_cfns.gperf new file mode 100644 index 00000000000..0f201a08b4e --- /dev/null +++ b/cross/freemint-mintlib/patches/patch-gcc-4.6.4_gcc_cp_cfns.gperf @@ -0,0 +1,22 @@ +$NetBSD: patch-gcc-4.6.4_gcc_cp_cfns.gperf,v 1.1 2020/08/04 22:21:57 mef Exp $ + +In file included from ../../gcc-4.6.4/gcc/cp/except.c:912:0: +cfns.gperf: At top level: +cfns.gperf:101:1: error: 'gnu_inline' attribute present on 'libc_name_p' +cfns.gperf:26:14: error: but not here + +Found patch in Dragonfly DPorts + + +--- gcc-4.6.4/gcc/cp/cfns.gperf.orig 2020-08-04 21:52:40.968415964 +0000 ++++ gcc-4.6.4/gcc/cp/cfns.gperf +@@ -18,6 +18,9 @@ along with GCC; see the file COPYING3. + <http://www.gnu.org/licenses/>. */ + #ifdef __GNUC__ + __inline ++#ifdef __GNUC_STDC_INLINE__ ++__attribute__ ((__gnu_inline__)) ++#endif + #endif + static unsigned int hash (const char *, unsigned int); + #ifdef __GNUC__ diff --git a/cross/freemint-mintlib/patches/patch-gcc-4.6.4_gcc_cp_cfns.h b/cross/freemint-mintlib/patches/patch-gcc-4.6.4_gcc_cp_cfns.h new file mode 100644 index 00000000000..e80459568b9 --- /dev/null +++ b/cross/freemint-mintlib/patches/patch-gcc-4.6.4_gcc_cp_cfns.h @@ -0,0 +1,30 @@ +$NetBSD: patch-gcc-4.6.4_gcc_cp_cfns.h,v 1.1 2020/08/04 22:21:57 mef Exp $ + +In file included from ../../gcc-4.6.4/gcc/cp/except.c:912:0: +cfns.gperf: At top level: +cfns.gperf:101:1: error: 'gnu_inline' attribute present on 'libc_name_p' +cfns.gperf:26:14: error: but not here + +Found patch in Dragonfly DPorts + +--- gcc/cp/cfns.h.orig 2009-04-21 19:03:23 UTC ++++ gcc-4.6.4/gcc/cp/cfns.h +@@ -53,6 +53,9 @@ __inline + static unsigned int hash (const char *, unsigned int); + #ifdef __GNUC__ + __inline ++#ifdef __GNUC_STDC_INLINE__ ++__attribute__ ((__gnu_inline__)) ++#endif + #endif + const char * libc_name_p (const char *, unsigned int); + /* maximum key range = 391, duplicates = 0 */ +@@ -96,7 +99,7 @@ hash (register const char *str, register + 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, + 400, 400, 400, 400, 400, 400, 400 + }; +- register int hval = len; ++ register int hval = (int) len; + + switch (hval) + { |