From: Greg Troxel <gdt@ir.bbn.com>
To: Neil Jerram <neil@ossau.uklinux.net>
Cc: "Ludovic Courtès" <ludo@gnu.org>, guile-devel@gnu.org
Subject: Re: Pkgsrc patches: patch-aj
Date: Wed, 27 Feb 2008 07:20:10 -0500 [thread overview]
Message-ID: <rmik5kqfv5x.fsf@fnord.ir.bbn.com> (raw)
In-Reply-To: 87mypnfkgx.fsf@ossau.uklinux.net
Neil Jerram <neil@ossau.uklinux.net> writes:
I have looked at this in more detail, to understand more precisely what
pkgsrc changed, in order to make sure I'm not suggesting that we throw
out a fix to an actual problem.
>> $NetBSD: patch-aj,v 1.3 2007/07/20 00:09:23 gdt Exp $
>>
>> --- libguile/_scm.h.orig 2007-05-09 16:22:03.000000000 -0400
>> +++ libguile/_scm.h
>> @@ -119,7 +119,9 @@
>> # define SCM_SYSCALL(line) line;
>> #endif /* ndef SCM_SYSCALL */
>>
>> -#if !defined (MSDOS) && !defined (__MINGW32__)
>> +#include <errno.h>
>
> The include isn't needed here, because errno.h was already included
> earlier on in the same file.
Agreed, so I will remove the include from patch-aj (which dates from 1.6).
>> +
>> +#if !defined (MSDOS) && !defined (__MINGW32__) && !defined(errno)
>> # ifdef ARM_ULIB
>> extern volatile int errno;
>> # else
>
> I think we can just delete these extra errno declarations. They've
> been there forever - or at least since rev 1.1 of _scm.h in CVS (1996)
> - and I suspect they've just been left in from a time (pre-CVS) before
> the #include <errno.h> was added.
>
> Can you confirm that ripping this stanza out works for you, then we'll
> go ahead with that for 1.8.5.
Now it has finally become clear to me (sorry for being dense): pkgsrc
was only ifdef'ing out these redundant errno declarations in an attempt
to avoid some platform that didn't need them blowing up.
I did a build with the following patch instead:
$NetBSD$
--- libguile/_scm.h.orig 2008-02-06 08:09:18.000000000 -0500
+++ libguile/_scm.h
@@ -95,14 +95,6 @@
# define SCM_SYSCALL(line) line;
#endif /* ndef SCM_SYSCALL */
-#if !defined (MSDOS) && !defined (__MINGW32__)
-# ifdef ARM_ULIB
- extern volatile int errno;
-# else
- extern int errno;
-# endif /* def ARM_ULIB */
-#endif /* ndef MSDOS && ndef __MINGW32__*/
-
\f
#ifndef min
and then 1.8.4 builds and 'make check's ok on NetBSD-current i386.
I have put the above patch into pkgsrc, and I think it should be applied
in guile.
next prev parent reply other threads:[~2008-02-27 12:20 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-12 14:18 Honor `$TMPDIR' in `guile-snarf' Ludovic Courtès
2008-02-12 20:53 ` Neil Jerram
2008-02-12 21:28 ` Bruce Korb
2008-02-12 21:52 ` Ludovic Courtès
2008-02-13 20:25 ` Aleksej Saushev
2008-02-14 7:48 ` Thien-Thi Nguyen
2008-02-14 17:54 ` Aleksej Saushev
2008-02-14 18:30 ` Pkgsrc patches Ludovic Courtès
2008-02-15 20:51 ` Greg Troxel
2008-02-16 1:49 ` patches from pkgsrc - patch-aa Greg Troxel
2008-02-16 11:46 ` Ludovic Courtès
2008-02-16 1:50 ` Pkgsrc patches: patch-ae Greg Troxel
2008-02-16 18:49 ` Ludovic Courtès
2008-02-18 17:12 ` Greg Troxel
2008-02-16 1:50 ` Pkgsrc patches: patch-ag Greg Troxel
2008-02-16 19:28 ` Ludovic Courtès
2008-02-18 14:29 ` Greg Troxel
2008-02-18 15:05 ` Ludovic Courtès
2008-02-18 16:05 ` Greg Troxel
2008-02-16 1:53 ` Pkgsrc patches: patch-ah Greg Troxel
2008-02-16 1:55 ` Pkgsrc patches: patch-aj Greg Troxel
2008-02-26 21:58 ` Neil Jerram
2008-02-26 23:41 ` Greg Troxel
2008-02-27 12:20 ` Greg Troxel [this message]
2008-02-27 21:27 ` Neil Jerram
2008-02-16 1:59 ` Pkgsrc patches Greg Troxel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rmik5kqfv5x.fsf@fnord.ir.bbn.com \
--to=gdt@ir.bbn.com \
--cc=guile-devel@gnu.org \
--cc=ludo@gnu.org \
--cc=neil@ossau.uklinux.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).