devel/mercurial is not usable on -CURRENT after
/src/sys/sys/fcntl.h changes
Kostik Belousov
kostikbel at gmail.com
Fri Apr 18 09:31:42 UTC 2008
On Fri, Apr 18, 2008 at 12:50:41PM +0400, Roman Bogorodskiy wrote:
> Hello,
>
> devel/mercurial is not usable on -CURRENT after /src/sys/sys/fcntl.h
> changes[1].
>
> It compiles alright, but fails to start with the following message:
>
> ImportError: /usr/local/lib/python2.5/site-packages/mercurial/osutil.so:
> Undefined symbol "fdopendir"
>
> since we don't have fdopendir() implemented in FreeBSD.
>
> osutil.c contains the following code:
>
> #ifdef AT_SYMLINK_NOFOLLOW
> dfd = open(path, O_RDONLY);
> dir = fdopendir(dfd);
> #else
> dir = opendir(path);
> dfd = -1;
> #endif
>
> So the problem didn't show up because AT_SYMLINK_NOFOLLOW was not
> defined, but after the change in fcntl.h mentioned above it got broken.
>
> 1: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/fcntl.h.diff?r1=1.19;r2=1.20;f=h
>
> Roman Bogorodskiy
fdopendir() was committed several days ago. Anyway, the check in the
cited source is obviously broken.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080418/3c3fac3b/attachment.pgp
More information about the freebsd-ports
mailing list