From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 30 01:40:01 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9E4BB862 for ; Tue, 30 Apr 2013 01:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7FC5712D0 for ; Tue, 30 Apr 2013 01:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3U1e1r2006619 for ; Tue, 30 Apr 2013 01:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3U1e1R4006618; Tue, 30 Apr 2013 01:40:01 GMT (envelope-from gnats) Resent-Date: Tue, 30 Apr 2013 01:40:01 GMT Resent-Message-Id: <201304300140.r3U1e1R4006618@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Derek Buitenhuis Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EA51182E for ; Tue, 30 Apr 2013 01:34:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [69.147.83.34]) by mx1.freebsd.org (Postfix) with ESMTP id C1A0212B5 for ; Tue, 30 Apr 2013 01:34:32 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3U1YWPv076465 for ; Tue, 30 Apr 2013 01:34:32 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r3U1YWJS076450; Tue, 30 Apr 2013 01:34:32 GMT (envelope-from nobody) Message-Id: <201304300134.r3U1YWJS076450@red.freebsd.org> Date: Tue, 30 Apr 2013 01:34:32 GMT From: Derek Buitenhuis To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/178247: linker.hints erroneously included in 9.1-RELEASE-p3 binary update X-Mailman-Approved-At: Tue, 30 Apr 2013 03:54:01 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Apr 2013 01:40:01 -0000 >Number: 178247 >Category: amd64 >Synopsis: linker.hints erroneously included in 9.1-RELEASE-p3 binary update >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Apr 30 01:40:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Derek Buitenhuis >Release: 9.1-RELEASE-p3 >Organization: >Environment: FreeBSD bb-nas.bb-router 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When running 'freebsd-update fetch' and 'freebsd-update install', it wil attempt to replace /boot/kernel/linker.hints infinitely. Example: ---- root@bb-nas:/home/daemon404$ freebsd-update fetch Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 9.1-RELEASE from update3.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. The following files will be updated as part of updating to 9.1-RELEASE-p3: /boot/kernel/linker.hints $ freebsd-update install Installing updates... done. $ reboot [...] $ freebsd-update fetch Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 9.1-RELEASE from update4.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. The following files will be updated as part of updating to 9.1-RELEASE-p3: /boot/kernel/linker.hints ---- Repeat ad nauseum. This is because linker.hints is generated by kldxref, and thus it will always differ from the one provided in the update, and should thus not be packaged. >How-To-Repeat: Have a FreeBSD 9.1 binary install (no sources installed at all) updated to 9.1-RELEASE-p2, and run 'freebsd-update fetch' and 'freebsd-update install'. >Fix: There is a hack workaround located here: http://forums.freebsd.org/showthread.php?t=1362 To quote jgh: ---- These are taken from /etc/defaults/rc.conf: kldxref_enable="NO" # Build linker.hints files with kldxref(8). (this should be set to YES) kldxref_clobber="NO" # Overwrite old linker.hints at boot. (this should be set to YES) kldxref_module_path="" # Override kern.module_path. A ';'-delimited list. (you can add both paths for /boot/kernel/;/boot/GENERIC) After this, you want to add your two paths that are being updated to "IgnorePaths" in /etc/freebsd-update.conf. ---- This is very much not ideal. >Release-Note: >Audit-Trail: >Unformatted: