X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:from:to:subject:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=LvZ
	oGWiUHEj1wLsMoIvi/Wq1CE3mxiIt6PsDIm26Mu3WCuDCSGrs6WrOvufSBAtBwId
	rcLzXXdLJPPHC70DFggR8tZNAJE9AOhPOfx4BjMMHu2TUzBE3xM9oOw2NuyWzOy1
	k9r6xHsjCFIB5u+LMco86rJL8AquKFctt+i3mhYk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:from:to:subject:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=3EMu5/fUl
	qsqetBSaQtOY3gdhpE=; b=CnNb+TC5Etqei9ueiR5dpNJ7QJZ0thD8ZP54t6XWG
	AyKzB5cU2jFaEQ/NxeCfPiPR61hwIDgdnxh+qqf39MWlycBUc2GcUDbSkl3euZYC
	TSFhTYSxyRo88r6GrC7Ip+PixJoZ4d1wOshKBB83RZrjhoQv1CHL+v1SlS2Xxz89
	TU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-pa0-f53.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:message-id:from:to:subject:date:mime-version         :content-type:content-transfer-encoding:importance;        bh=k221ax6gAbE+eoixokmNUDrK8WmihRt42U3ECi6dZH8=;        b=lpscsJ17YAki2MCM+pNqrjdfX/OTGaIBVYzG0XMe3/7RdP3ywRd0CkVw4Jrgx9Rw4B         Skzic23CnzhbZkiD32QvNEHxQLjspMKeEO9te5Nvhex/5LG5D+3cm6iQQBEt6oKbkmMT         qMRgjkvQVaJSLQpZ+gAfE9kvuE0jOaElYBcb6ZrP0LVLn13cyGe5l1dMaSf2BgmNEsEU         8s3mijk+7G5EmWpCpa9Azsnx0wS1rD/P29K3APasgxZWerLSwWr4Jry6X8WaxpkRPlVo         CDUTHf5qdX1NB/gT8jbw5ItsmottTk+I48vOyPKbxYmEjGQ5kD5qTrWJbpF2nte4akgC         4Q3A==
X-Gm-Message-State: ALoCoQnjBTVN/t+NBoNz1f8wTZwM3CDOTeV5SHsEwzIfxuwzzfTSLmjbKqR6J5LViP/AGFNJCPqW
X-Received: by 10.66.166.175 with SMTP id zh15mr10052196pab.36.1393687615940;        Sat, 01 Mar 2014 07:26:55 -0800 (PST)
Message-ID: <CFC05642E43A4A769893CD12F14EB65B@TKsamsung>
From: "Tony Kelman" <kelman@berkeley.edu>
To: <cygwin@cygwin.com>
Subject: Re: Unpacking 7z archives on Cygwin64
Date: Sat, 1 Mar 2014 07:26:52 -0800
MIME-Version: 1.0
Content-Type: text/plain;	format=flowed;	charset="iso-8859-1";	reply-type=original
Content-Transfer-Encoding: 7bit

> No.  The Cygwin utility for 7z archives is p7zip, but that's one of the
> packages that hasn't been ported to 64-bit Cygwin yet.

What's the best way to contribute to help this along? I just downloaded
the p7zip source package and figured out what needs to change to get
the cygport file to build cleanly in 64-bit Cygwin:

1. One of the patches doesn't apply correctly because a man file,
man1/7zr.1, has the wrong line endings. Running dos2unix on that
man file and re-packing the source tarball fixed that.

2. In src_compile() in the cygport file, the line

    cp makefile.cygwin_asm makefile.machine

is resulting in an x86 assembly file getting pulled in, which fails to
link in 64-bit Cygwin. There is an x86_64 assembly version of the same
file included in the source tarball which could be used instead, but the
easier patch is to instead use a C version of the file. There may be some
performance penalty here, but it's a one-liner patch to the cygport file:

    [ `arch` = x86_64 ] && cp makefile.cygwin makefile.machine

added after the previous "cp" line.

Can anyone offer guidance for how to proceed in creating a 64-bit version
of this package now that I've pointed out what needs to be fixed?

Thanks,
Tony


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

