Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2001 09:52:17 -0500 (EST)
From:      Alan E <alane@geeksrus.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        freebsd-xfree86@lists.csociety.org
Subject:   ports/33006: imake-4 and XF86-4-libraries disagree on XdmAuth is USA_RESIDENT=YES
Message-ID:  <200112191452.fBJEqHn14107@wwweasel.geeksrus.net>

next in thread | raw e-mail | index | archive | help

>Number:         33006
>Category:       ports
>Synopsis:       imake-4 and XF86-4-libraries disagree on XdmAuth is USA_RESIDENT=YES
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 19 07:00:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Alan E
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Geeksrus.NET
>Environment:
System: FreeBSD wwweasel.geeksrus.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sun Dec 2 19:14:12 EST 2001 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386
>Description:

The imake fix sets the variable to YES, so now imake always says HadXdmAuth.
But XF86-4-libraries still only builds with the functions compiled in if it
has Wraphelp.c, which in turn is conditionally d/l'ed like this:


.if ${HasXdmAuth} == DEFAULT || ${HasXdmAuth} == YES
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
pre-fetch:
        @${ECHO}
        @${ECHO} Assuming that you have fetched a USA-Legal Wraphelp.c.
.else
MASTER_SITES+=  ftp://psych.psy.uq.oz.au/pub/X11R5/ \
		ftp://ftp.internat.freebsd.org/pub/FreeBSD/X11-Crypto/ \
                ftp://ftp3.za.freebsd.org/pub/FreeBSD/X11-Crypto/
EXTRACT_ONLY=   X410src-1.tgz
DISTFILES+=     Wraphelp.c
IGNOREFILES=    Wraphelp.c
.endif
.endif

So now, instead of XdmAuth always being off, but imake-4 and XF86-4-libs
being in sync, now imake-4 and XF86-4-libs are always wrong WRT each other
unless USA_RESIDENT=YES.


>How-To-Repeat:

Build imake, then XF86-4-libraries with USA_RESIDENT=YES. Run nm on
XF86 lib files to look for XdmAuth functions. Not there.

Check the imake config files. HasXdmAuth set to YES.

>Fix:

Index: devel/imake-4/Makefile
===================================================================
RCS file: /home/alane/cvsroot/ports/devel/imake-4/Makefile,v
retrieving revision 1.14
diff -u -3 -r1.14 Makefile
--- devel/imake-4/Makefile	15 Dec 2001 02:58:33 -0000	1.14
+++ devel/imake-4/Makefile	19 Dec 2001 14:47:31 -0000
@@ -60,6 +60,9 @@
 		BuildTTFonts=${BuildTTFonts}
 INSTALL_TARGET=	install install.man
 LATEST_LINK=	imake-4
+
+.include <bsd.port.pre.mk>
+
 # ---
 # User Config:
 # All variables are same as Imake config macros.
@@ -71,6 +74,16 @@
 # ---
 HasSecureRPC?=		YES
 HasXdmAuth?=		YES
+.if ${HasXdmAuth} == DEFAULT || ${HasXdmAuth} == YES
+.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
+pre-patch:
+	@${ECHO}
+	@${ECHO} Imake-4 will be built without encrypted Xdm login 
+	@${ECHO}   "(HasXdmAuth)" support.
+	@${ECHO}
+HasXdmAuth?=		NO
+.endif
+.endif
 HasPam?=		YES
 BuildPexExt?=		YES
 BuildXinerama?=		YES
@@ -116,4 +129,4 @@
 # InstallXserverSetUID=NO : use Xwrapper.
 # End of XFree86 configrations
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112191452.fBJEqHn14107>