From nobody@FreeBSD.org  Fri Sep  9 19:28:50 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2E575106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Sep 2011 19:28:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1D5898FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Sep 2011 19:28:50 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p89JSnsI034905
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 9 Sep 2011 19:28:49 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p89JSnJ2034904;
	Fri, 9 Sep 2011 19:28:49 GMT
	(envelope-from nobody)
Message-Id: <201109091928.p89JSnJ2034904@red.freebsd.org>
Date: Fri, 9 Sep 2011 19:28:49 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Use libodialog when doing tzsetup source upgrades from earlier versions of FreeBSD to 9.x post r217309
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160596
>Category:       bin
>Synopsis:       [patch] tzsetup(8): Use libodialog when doing tzsetup source upgrades from earlier versions of FreeBSD to 9.x post r217309
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 09 19:30:10 UTC 2011
>Closed-Date:    Tue Jul 24 03:14:55 UTC 2012
>Last-Modified:  Sun Feb 03 22:29:26 UTC 2013
>Originator:     Garrett Cooper
>Release:        9.0-BETA2
>Organization:
iXsystems, Inc.
>Environment:
FreeBSD bayonetta.local 9.0-BETA2 FreeBSD 9.0-BETA2 #0 r225457M: Fri Sep  9 00:19:17 PDT 2011     gcooper@bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA  amd64
>Description:
The copy of tzsetup on the host system is referencing libdialog.so, which
has been replaced and lacks symbols needed for some applications like tzsetup.

The attached patch hacks the build so that it refers to the correct libdialog
library (now known as libodialog).

This should _NOT_ be MFCed!
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: share/zoneinfo/Makefile
===================================================================
--- share/zoneinfo/Makefile	(revision 224989)
+++ share/zoneinfo/Makefile	(working copy)
@@ -72,7 +72,8 @@
 				optC="-C ${DESTDIR}"; \
 			fi; \
 			echo "Updating /etc/localtime"; \
-			tzsetup $${optC} -r; \
+			env LD_PRELOAD=${DESTDIR}/usr/lib/libodialog.so \
+			    tzsetup $${optC} -r; \
 		fi; \
 	else \
 		echo "Run tzsetup(8) manually to update /etc/localtime."; \


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sun Jan 22 05:42:27 UTC 2012 
Responsible-Changed-Why:  
n1 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160596 

From: Bryan Drewery <bryan@shatow.net>
To: bug-followup@FreeBSD.org, gcooper@ixsystems.com
Cc: eadler@freebsd.org
Subject: Re: bin/160596: [patch] tzsetup(8): Use libodialog when doing tzsetup
 source upgrades from earlier versions of FreeBSD to 9.x post r217309
Date: Sun, 29 Apr 2012 17:20:55 -0500

 This is a multi-part message in MIME format.
 --------------030903090301010007060504
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
 
 I ran into this today going from 8.3 -> 9.0
 
 While running `make installworld`: libdialog.so.7: Undefined symbol
 "_nc_wacs"
 
 The previous patch did not work for me. The patch I've attached did.
 
 
 Credit: Коньков Евгений <kes-kes at yandex.ru>
 http://lists.freebsd.org/pipermail/freebsd-current/2011-September/027757.html
 
 Regards,
 Bryan Drewery
 
 --------------030903090301010007060504
 Content-Type: text/plain; charset=windows-1252;
  name="patch.txt"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="patch.txt"
 
 LS0tIHNoYXJlL3pvbmVpbmZvL01ha2VmaWxlLm9yaWcJMjAxMi0wNC0yOSAxNzoxNTozNC44
 NTQyOTI0NzkgLTA1MDANCisrKyBzaGFyZS96b25laW5mby9NYWtlZmlsZQkyMDEyLTA0LTI5
 IDE3OjE1OjM2LjY2MTI4NjUyNCAtMDUwMA0KQEAgLTcyLDcgKzcyLDcgQEANCiAJCQkJb3B0
 Qz0iLUMgJHtERVNURElSfSI7IFwNCiAJCQlmaTsgXA0KIAkJCWVjaG8gIlVwZGF0aW5nIC9l
 dGMvbG9jYWx0aW1lIjsgXA0KLQkJCXR6c2V0dXAgJCR7b3B0Q30gLXI7IFwNCisJCQkvdXNy
 L29iai91c3Ivc3JjL3Vzci5zYmluL3R6c2V0dXAvdHpzZXR1cCAkJHtvcHRDfSAtcjsgXA0K
 IAkJZmk7IFwNCiAJZWxzZSBcDQogCQllY2hvICJSdW4gdHpzZXR1cCg4KSBtYW51YWxseSB0
 byB1cGRhdGUgL2V0Yy9sb2NhbHRpbWUuIjsgXA0K
 --------------030903090301010007060504--

From: Garrett Cooper <yaneurabeya@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/160596: [patch] tzsetup(8): Use libodialog when doing tzsetup source upgrades from earlier versions of FreeBSD to 9.x post r217309
Date: Mon, 23 Jul 2012 19:33:30 -0700

 	Please close this bug. libodialog no longer exists on =
 head/stable-9 (in part thanks to Max Khon IIRC).
 Thanks,
 -Garrett=
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Tue Jul 24 03:14:54 UTC 2012 
State-Changed-Why:  
Per submitter request 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160596 
>Unformatted:
