From owner-svn-src-all@FreeBSD.ORG Fri Jun 11 15:35:33 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58447106566B; Fri, 11 Jun 2010 15:35:33 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id 214988FC0A; Fri, 11 Jun 2010 15:35:32 +0000 (UTC) MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_rDOR3eg50bTzTJBUsFfZug)" Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0L3U00B0CWN8OM00@smtpauth3.wiscmail.wisc.edu>; Fri, 11 Jun 2010 10:35:32 -0500 (CDT) Received: from comporellon.tachypleus.net ([unknown] [76.210.74.68]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0L3U0079BWN0JF50@smtpauth3.wiscmail.wisc.edu>; Fri, 11 Jun 2010 10:35:26 -0500 (CDT) Date: Fri, 11 Jun 2010 10:35:24 -0500 From: Nathan Whitehorn In-reply-to: <4C12561A.4060707@freebsd.org> To: Ken Smith Message-id: <4C1257BC.8030702@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.210.74.68 X-Spam-PmxInfo: Server=avs-14, Version=5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.6.11.152715, SenderIP=76.210.74.68 References: <201005180959.o4I9xAsu012265@svn.freebsd.org> <1276268668.89354.38.camel@bauer.cse.buffalo.edu> <4C12561A.4060707@freebsd.org> User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100407 Thunderbird/3.0.4 Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org, Martin Matuska Subject: Re: svn commit: r208258 - in stable/8: contrib/top etc/mtree lib lib/liblzma lib/libusb share/mk usr.bin usr.bin/less usr.bin/lzmainfo usr.bin/xz usr.bin/xzdec X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2010 15:35:33 -0000 This is a multi-part message in MIME format. --Boundary_(ID_rDOR3eg50bTzTJBUsFfZug) Content-type: text/plain; CHARSET=US-ASCII; format=flowed Content-transfer-encoding: 7BIT On 06/11/10 10:28, Nathan Whitehorn wrote: > On 06/11/10 10:04, Ken Smith wrote: >> On Tue, 2010-05-18 at 09:59 +0000, Martin Matuska wrote: >>> Author: mm >>> Date: Tue May 18 09:59:09 2010 >>> New Revision: 208258 >>> URL: http://svn.freebsd.org/changeset/base/208258 >>> >>> Log: >>> MFC r207842, r207844, r208099: >>> >>> MFC r207842: >>> Import of liblzma, xz, xzdec, lzmainfo from vendor branch >>> Add support for xz and lzma to lesspipe.sh (xzless, lzless) >>> >>> MFC r207844: >>> Add two public headers missing in r207842 >>> Adjust CFLAGS for lzmainfo, xz, xzdec >>> >>> MFC r208099: >>> Add versioned symbols to liblzma >>> Use default SHLIB_MAJOR. >>> >>> Approved by: delphij (mentor) >>> >> xz on sparc64 appears to be broken. Some time between 8.1-BETA1 >> and now the libpng (required for release builds because it's part >> of the "docproj" port set) shifted from fetching a .bz2 file to >> fetching a .xz file. Uncompressing the file works fine on amd64 >> and i386 architectures but fails on sparc64. >> >> I haven't had time to dig into why it's busted but I figured I >> should at least let others know about it right away. Is it >> possible some knob related to big endian versus little endian >> isn't being handled quite right? > > This is at least also true on powerpc (both 32 and 64 bit), so it is > almost certainly an endian issue. I've attached a patch to the liblzma config.h that makes xz work, at least on powerpc. -Nathan --Boundary_(ID_rDOR3eg50bTzTJBUsFfZug) Content-type: text/plain; name=lzma-patch.diff Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=lzma-patch.diff Index: config.h =================================================================== --- config.h (revision 209045) +++ config.h (working copy) @@ -84,12 +84,6 @@ # define __EXTENSIONS__ 1 #endif #define VERSION "4.999.9beta" -#if defined AC_APPLE_UNIVERSAL_BUILD -# if defined __BIG_ENDIAN__ +#if BYTE_ORDER == BIG_ENDIAN # define WORDS_BIGENDIAN 1 -# endif -#else -# ifndef WORDS_BIGENDIAN -/* # undef WORDS_BIGENDIAN */ -# endif #endif --Boundary_(ID_rDOR3eg50bTzTJBUsFfZug)--