NetBSD Problem Report #37118

From yx@fxp0-660.lrou.x.ua  Fri Oct 12 15:41:54 2007
Return-Path: <yx@fxp0-660.lrou.x.ua>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 3BC3F63BA59
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 12 Oct 2007 15:41:54 +0000 (UTC)
Message-Id: <200710121535.l9CFZARd019486@fxp0-660.lrou.x.ua>
Date: Fri, 12 Oct 2007 18:35:10 +0300 (EEST)
From: Yakovetsky Vladimir <yx@x.ua>
Reply-To: yx@x.ua
To: joerg@NetBSD.org, gnats-bugs@NetBSD.org
Subject: x11/libX11 compiles with ipv6 despite -inet6 option
X-Send-Pr-Version: 3.95

>Number:         37118
>Category:       pkg
>Synopsis:       x11/libX11 compiles with ipv6 despite -inet6 option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    joerg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 12 15:45:00 +0000 2007
>Closed-Date:    Mon Sep 17 11:52:54 +0000 2018
>Last-Modified:  Mon Sep 17 11:52:54 +0000 2018
>Originator:     Yakovetsky Vladimir
>Release:        NetBSD 4.99.31
>Organization:
>Environment:
System: NetBSD lrou.x.ua 4.99.31 NetBSD 4.99.31 (lrou_odd-1.852) #0: Sun Sep 30 18:16:16 EEST 2007 yx@lrou.x.ua:/sys/arch/i386/compile/lrou_odd i386
Architecture: i386
Machine: i386

>Description:
	x11/libX11 compiles with ipv6 despite -inet6 option

>How-To-Repeat:
% grep -i inet6 /etc/mk.conf
MKINET6=		no
PKG_DEFAULT_OPTIONS+=	-inet6

% cd /usr/pkgsrc/x11/libX11 && make
...
checking if IPv6 support should be built... yes
...


>Fix:
:r x11/libX11/options.mk

PKG_OPTIONS_VAR=	PKG_OPTIONS.libX11
PKG_SUPPORTED_OPTIONS+=	inet6

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif


--- x11/libX11/Makefile.orig
+++ x11/libX11/Makefile
@@ -33,6 +33,8 @@
 MAKE_ENV+=	CC_FOR_BUILD=${NATIVE_CC:Q} CPPFLAGS_FOR_BUILD=-I${PREFIX}/include
 .endif

+.include "options.mk"
+
 .include "../../x11/bigreqsproto/buildlink3.mk"
 .include "../../x11/inputproto/buildlink3.mk"
 .include "../../x11/kbproto/buildlink3.mk"

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Tue, 16 Oct 2007 01:02:56 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 17 Sep 2018 11:52:54 +0000
State-Changed-Why:
Closing all X11 inet6 bugs as wontfix - this might've been of marginal utility when the bug was made, but it seems increasingly silly as time goes on.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.