Bug 70059 - [PATCH] devel/distcc: [enable ipv6]
Summary: [PATCH] devel/distcc: [enable ipv6]
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-06 01:50 UTC by Michael Johnson
Modified: 2004-08-18 08:42 UTC (History)
1 user (show)

See Also:


Attachments
distcc-2.16.patch (973 bytes, patch)
2004-08-06 01:50 UTC, Michael Johnson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Johnson 2004-08-06 01:50:06 UTC
- add option to enable ipv6

Port maintainer (dom@helenmarks.co.uk) is cc'd.

Generated with FreeBSD Port Tools 0.50
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-08-11 19:15:26 UTC
Dear maintainer, please review the proposed patch.

Volker
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2004-08-11 20:14:47 UTC
State Changed
From-To: open->feedback

Forwarded PR to maintainer
Comment 3 Dominic Marks 2004-08-11 22:06:29 UTC
> Dear maintainer, please review the proposed patch.
>
> Volker
>

Please commit it.

Thank you,
Dominic
Comment 4 Volker Stolz freebsd_committer freebsd_triage 2004-08-12 15:56:00 UTC
Looks like IPv6 won't work on 4.X:

===>  Building for distcc-2.16
cc -I/usr/local/include -DHAVE_CONFIG_H -D_GNU_SOURCE -I./src  
-DSYSCONFDIR="\"/usr/local/etc\""  
-DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I./lzo -O -pipe -g  -W  
-Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings  
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes  
-Wnested-externs -o src/backoff.o -c src/backoff.c
In file included from src/backoff.c:43:
src/distcc.h:157: #error You can't use RFC2553 because you don't have a  
sockaddr_storage type
gmake: *** [src/backoff.o] Error 1
*** Error code 2

Unluckily, there's no way to hide the option since we'd have to include  
bsd.port.pre.mk before
setting the OPTIONS to test OSVERSION. But bsd.port.pre.mk must be  
included after OPTIONS for
them to work. I'll adapt the comment. How about:

IPV6 "Enable IPV6 (will fail on 4.X)" off

Volker
Comment 5 Dominic Marks 2004-08-12 17:29:49 UTC
> Looks like IPv6 won't work on 4.X:
>
> ===>  Building for distcc-2.16
> cc -I/usr/local/include -DHAVE_CONFIG_H -D_GNU_SOURCE -I./src
> -DSYSCONFDIR="\"/usr/local/etc\""
> -DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I./lzo -O -pipe -g  -W
> -Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings
> -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
> -Wnested-externs -o src/backoff.o -c src/backoff.c
> In file included from src/backoff.c:43:
> src/distcc.h:157: #error You can't use RFC2553 because you don't have a
> sockaddr_storage type
> gmake: *** [src/backoff.o] Error 1
> *** Error code 2
>
> Unluckily, there's no way to hide the option since we'd have to include
> bsd.port.pre.mk before
> setting the OPTIONS to test OSVERSION. But bsd.port.pre.mk must be
> included after OPTIONS for
> them to work. I'll adapt the comment. How about:
>
> IPV6 "Enable IPV6 (will fail on 4.X)" off
>
> Volker
>

Fine by me, it's lucky you have some 4.x machines :-)

Thanks,
Dominic
Comment 6 Michael Johnson 2004-08-13 01:00:15 UTC
I'm just shooting ideas up, but how about maybe something like the 
following,..

OPTIONS=	# leave blank to enable work around bsd.port.pre.mk

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 500000
OPTIONS=	IPV6 "etc etc" off
.endif


Michael


On Aug 12, 2004, at 10:56 AM, Volker Stolz wrote:

> Looks like IPv6 won't work on 4.X:
>
> ===>  Building for distcc-2.16
> cc -I/usr/local/include -DHAVE_CONFIG_H -D_GNU_SOURCE -I./src 
> -DSYSCONFDIR="\"/usr/local/etc\"" 
> -DPKGDATADIR="\"/usr/local/share/distcc\"" -Isrc -I./lzo -O -pipe -g  
> -W -Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align 
> -Wwrite-strings -Waggregate-return -Wstrict-prototypes 
> -Wmissing-prototypes -Wnested-externs -o src/backoff.o -c 
> src/backoff.c
> In file included from src/backoff.c:43:
> src/distcc.h:157: #error You can't use RFC2553 because you don't have 
> a sockaddr_storage type
> gmake: *** [src/backoff.o] Error 1
> *** Error code 2
>
> Unluckily, there's no way to hide the option since we'd have to 
> include bsd.port.pre.mk before
> setting the OPTIONS to test OSVERSION. But bsd.port.pre.mk must be 
> included after OPTIONS for
> them to work. I'll adapt the comment. How about:
>
> IPV6 "Enable IPV6 (will fail on 4.X)" off
>
> Volker
>
Comment 7 Volker Stolz freebsd_committer freebsd_triage 2004-08-18 08:41:21 UTC
State Changed
From-To: feedback->closed

Committed, thanks! I didn't try the OPTIONS-hack, though: 
Such things tend to blow up in your face sooner or later.