[64855] trunk/dports/print/ghostscript

Takanori Yamamoto takanori at macports.org
Thu Mar 18 13:25:37 PDT 2010


Jeremy,

> you probably want to use -D_DARWIN_USE_64_BIT_INODE

Thanks. But seems that the declaration of _DARWIN_USE_64_BIT_INODE
does not mean it makes a certain program be able to read/write files larger
than 4GB (32-bit).
# Sorry if I am wrong.

Anyway, the patch I've committed has no problem/no side effects (if I am not wrong)
so please don't worry about it so much.


On 2010/03/18, at 8:42, Jeremy Huddleston wrote:

> Yeah... you probably want to use -D_DARWIN_USE_64_BIT_INODE
> 
> On Mar 17, 2010, at 00:38, Takanori Yamamoto wrote:
> 
>> Anthony,
>> 
>>> now it does not use the 64 bits API on 32 bits system.
>> 
>> Thanks for your concern, but there is no regression because
>> this macro doesn't have any effect on Darwin's libc, I think.
>> ( please try 'grep -R _LARGEFILE64_SOURCE /usr/include/*' )
>> 
>> # And, in my opinion, PostScript file over 4GB is nothing but crazy. ;-)
>> 
>> Takanori.
>> 
>> On 2010/03/17, at 3:43, nox wrote:
>> 
>>> That's good. But now it does not use the 64 bits API on 32 bits system.
>>> I'm pretty sure it should be instead replaced by:
>>> 
>>> 	#define _FILE_OFFSET_BITS 64
>>> 
>>> Regards,
>>> Anthony.
>>> 
>>> Le 16 mars 2010 à 15:47, takanori at macports.org a écrit :
>>> 
>>>> Revision
>>>> 64855
>>>> Author
>>>> takanori at macports.org
>>>> Date
>>>> 2010-03-16 07:47:04 -0700 (Tue, 16 Mar 2010)
>>>> Log Message
>>>> 
>>>> ghostscript: eliminated _LARGEFILE64_SOURCE definition in base/stdpre.h (#24061)
>>>> Modified Paths
>>>> 
>>>> 	• trunk/dports/print/ghostscript/Portfile
>>>> Added Paths
>>>> 
>>>> 	• trunk/dports/print/ghostscript/files/patch-base_stdpre.h.diff
>>>> Diff
>>>> 
>>>> Modified: trunk/dports/print/ghostscript/Portfile (64854 => 64855)
>>>> 
>>>> --- trunk/dports/print/ghostscript/Portfile	2010-03-16 14:46:26 UTC (rev 64854)
>>>> +++ trunk/dports/print/ghostscript/Portfile	2010-03-16 14:47:04 UTC (rev 64855)
>>>> 
>>>> @@ -18,7 +18,8 @@
>>>> 
>>>>              sourceforge:gs-fonts:fonts
>>>> 
>>>> distfiles       ${distname}.tar.gz:source \
>>>> 
>>>>              ghostscript-fonts-other-6.0.tar.gz:fonts
>>>> 
>>>> -patchfiles      patch-base_unix-dll.mak.diff
>>>> 
>>>> +patchfiles      patch-base_unix-dll.mak.diff \
>>>> +                patch-base_stdpre.h.diff
>>>> 
>>>> checksums       ${distname}.tar.gz rmd160 efce74cf22cf99b2b1a145df466e79a86e3dfefb \
>>>> 
>>>>              ghostscript-fonts-other-6.0.tar.gz rmd160 ab60dbf71e7d91283a106c3df381cadfe173082f
>>>> 
>>>> 
>>>> 
>>>> Added: trunk/dports/print/ghostscript/files/patch-base_stdpre.h.diff (0 => 64855)
>>>> 
>>>> --- trunk/dports/print/ghostscript/files/patch-base_stdpre.h.diff	                        (rev 0)
>>>> +++ trunk/dports/print/ghostscript/files/patch-base_stdpre.h.diff	2010-03-16 14:47:04 UTC (rev 64855)
>>>> 
>>>> @@ -0,0 +1,12 @@
>>>> 
>>>> +--- base/stdpre.h.orig	2007-09-25 22:31:24.000000000 +0900
>>>> ++++ base/stdpre.h	2010-03-16 23:06:55.000000000 +0900
>>>> +@@ -17,9 +17,6 @@
>>>> + #ifndef stdpre_INCLUDED
>>>> + #  define stdpre_INCLUDED
>>>> + 
>>>> +-/* Ghostscript uses transitional LFS functions. */
>>>> +-#define _LARGEFILE64_SOURCE 1
>>>> +-
>>>> + /*
>>>> +  * Here we deal with the vagaries of various C compilers.  We assume that:
>>>> +  *      ANSI-standard Unix compilers define __STDC__.
>>>> 
>>>> _______________________________________________
>>>> macports-changes mailing list
>>>> macports-changes at lists.macosforge.org
>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-changes
>>> 
>> 
>> _______________________________________________
>> macports-dev mailing list
>> macports-dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
> 



More information about the macports-dev mailing list