Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2011 19:28:49 GMT
From:      Garrett Cooper <gcooper@ixsystems.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/160596: [patch] Use libodialog when doing tzsetup source upgrades from earlier versions of FreeBSD to 9.x post r217309
Message-ID:  <201109091928.p89JSnJ2034904@red.freebsd.org>
Resent-Message-ID: <201109091930.p89JUA9T006477@freefall.freebsd.org>

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

>Number:         160596
>Category:       bin
>Synopsis:       [patch] Use libodialog when doing tzsetup source upgrades from earlier versions of FreeBSD to 9.x post r217309
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 09 19:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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