From bdd82080e5e62c39508aac508c222da5dae70c11 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 18 May 2009 05:21:18 +0000 Subject: Fix 64-bit issue. PKGREVISION++ (to 6) --- audio/rplay/Makefile | 4 ++-- audio/rplay/distinfo | 3 ++- audio/rplay/patches/patch-bc | 24 ++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 audio/rplay/patches/patch-bc (limited to 'audio') diff --git a/audio/rplay/Makefile b/audio/rplay/Makefile index 5c6d08c637a..a66b3b727f6 100644 --- a/audio/rplay/Makefile +++ b/audio/rplay/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.58 2009/02/03 06:11:12 obache Exp $ +# $NetBSD: Makefile,v 1.59 2009/05/18 05:21:18 dholland Exp $ # DISTNAME= rplay-3.3.2 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= audio MASTER_SITES= ftp://rplay.doit.org/pub/rplay/ \ http://rplay.doit.org/dist/ diff --git a/audio/rplay/distinfo b/audio/rplay/distinfo index dc47f4adbae..631cb1c9a9d 100644 --- a/audio/rplay/distinfo +++ b/audio/rplay/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.13 2009/05/18 05:11:50 dholland Exp $ +$NetBSD: distinfo,v 1.14 2009/05/18 05:21:18 dholland Exp $ SHA1 (rplay-3.3.2.tar.gz) = 80b8001998a6f9837773f26285afffd609df2662 RMD160 (rplay-3.3.2.tar.gz) = e5c740eade2cc770ea78c8f53020fa6d78f59861 @@ -30,6 +30,7 @@ SHA1 (patch-ay) = eabf297f65a66174ce032bf7498bf6f324fe0d13 SHA1 (patch-az) = 8a55e0097ce509e169be02a127efb3db18aa395f SHA1 (patch-ba) = 394dfa920f36a5e0f7e919de016fefac2a447322 SHA1 (patch-bb) = 6829e94a21eee04b58021e2d848a624b0c037b00 +SHA1 (patch-bc) = ea0d5d00cf71263f6f6cf2e54a8dd8b730aba8e8 SHA1 (patch-ca) = d5ffe7a8e0f2112adf0d11b5661d565e5a57dec8 SHA1 (patch-cb) = 24c810e43d6735c24908ba429ede32a49cff36e8 SHA1 (patch-cc) = 824d7c70282d24e489c7c041982018da13ac70ce diff --git a/audio/rplay/patches/patch-bc b/audio/rplay/patches/patch-bc new file mode 100644 index 00000000000..69be4c1ff00 --- /dev/null +++ b/audio/rplay/patches/patch-bc @@ -0,0 +1,24 @@ +$NetBSD: patch-bc,v 1.1 2009/05/18 05:21:18 dholland Exp $ + +Fix quality non-64-bit GNU code. + +--- lib/getopt.c~ 1998-07-14 18:35:23.000000000 -0400 ++++ lib/getopt.c 2009-05-18 01:17:34.000000000 -0400 +@@ -189,6 +189,7 @@ my_index (str, chr) + + /* If using GCC, we can safely declare strlen this way. + If not using GCC, it is ok not to declare it. */ ++/* ...as if */ + #ifdef __GNUC__ + /* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. + That was relevant to code that was here before. */ +@@ -196,6 +197,9 @@ my_index (str, chr) + /* gcc with -traditional declares the built-in strlen to return int, + and has done so at least since version 2.4.5. -- rms. */ + extern int strlen (const char *); ++#elif defined(_LP64) ++#include ++size_t strlen(); + #endif /* not __STDC__ */ + #endif /* __GNUC__ */ + -- cgit v1.2.3