pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/46045: devel/autogen needs patch for funopen on NetBSD current
>Number: 46045
>Category: pkg
>Synopsis: devel/autogen needs patch for funopen on NetBSD current
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 18 11:35:00 +0000 2012
>Originator: Kai-Uwe Eckhardt
>Release: NetBSD 5.99.64 (GENERIC) amd64
>Organization:
>Environment:
NetBSD amdx4 5.99.64 NetBSD 5.99.64 (GENERIC) #0: Mon Feb 6 04:38:59 UTC 2012
builds%b6.netbsd.org@localhost:/home/builds/ab/HEAD/amd64/201202060230Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC
amd64
>Description:
Building devel/autogen fails in agen5/fmemopen.c due to recent API change
of funopen in NetBSD.
>How-To-Repeat:
Try to build devel/autogen on NetBSD -current
>Fix:
Changing fpos_t to off_t builds and passes all tests. I have used this
as patches/patch-af:
--- agen5/fmemopen.c.orig 2012-02-18 12:02:32.000000000 +0100
+++ agen5/fmemopen.c 2012-02-18 12:03:26.000000000 +0100
@@ -61,13 +61,13 @@
typedef int seek_ret_t;
#elif defined(HAVE_FUNOPEN)
- typedef fpos_t seek_off_t;
- typedef fpos_t seek_ret_t;
+ typedef off_t seek_off_t;
+ typedef off_t seek_ret_t;
# ifdef NEED_COOKIE_FUNCTION_TYPEDEFS
typedef int (cookie_read_function_t )(void *, char *, int);
typedef int (cookie_write_function_t)(void *, char const *, int);
- typedef fpos_t (cookie_seek_function_t )(void *, fpos_t, int);
+ typedef off_t (cookie_seek_function_t )(void *, off_t, int);
typedef int (cookie_close_function_t)(void *);
# endif /* NEED_COOKIE_FUNCTION_TYPEDEFS */
#endif
Home |
Main Index |
Thread Index |
Old Index