X-Recipient: archive-cygwin AT delorie DOT 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:from:subject:to:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=tRLiHKFTPX1Z2wNM 8FndeahHgnBDOWRWa37T+s8q9VwA/3WP3ymfJ3N5ZWP/Bnn/hRGbSzAWB+vUbrvD lKeFcE2FNvx1k2iJG9n8IEEtD7Wj70Musz+tff0xl9qqH7+XEBd+9pPnXv7gNe3c JGvIApBoLnWbrxkN7IsBF5VHMQM= 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:from:subject:to:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=5KSGh8aEd/M1SjUfF5dLVq 3+WWA=; b=xjzkcI75y8VnMxHJGkIqbpAGRDSwQ/K1Zk7A7z+HLdQ/+bOh32zFR3 7p0x0886D/dJhBu9QMezW689F/nCvFShkNMUyfxbSiQmYLyO4QN1mbixnmSjo1+g SKmBnodBKZTv9m2DrPYxVCQc5btcgQkZ8mALifgCaIF83Cg4f7Fb4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SEM_URIRED autolearn=no version=3.3.2 spammy=atzeri, Atzeri, Hx-spam-relays-external:ESMTPA, HContent-Transfer-Encoding:8bit X-HELO: out5-smtp.messagingengine.com X-ME-Sender: From: Jon Turney Subject: Re: Why does /etc/setup/installed.db list tar.bz2 even if tar.xz To: The Cygwin Mailing List References: <21082 DOT 6128 DOT 77635 DOT 626785 AT consult DOT pretender> <5a766dad DOT 0755ca0a DOT aa858 DOT d50e AT mx DOT google DOT com> <1abb07fb-fc61-1ed1-1045-1d8a76012c64 AT gmail DOT com> Message-ID: <2c388bb9-c682-9610-93e0-b2430cd44828@dronecode.org.uk> Date: Mon, 5 Feb 2018 14:27:10 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1abb07fb-fc61-1ed1-1045-1d8a76012c64@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Note-from-DJ: This may be spam On 04/02/2018 11:09, Marco Atzeri wrote: > On 04/02/2018 03:19, Steven Penny wrote: >> On Sat, 12 Oct 2013 23:48:00, wrote: >>> The installed.db seems to always list packages as being tar.bz2 even >>> when they are tar.xz. >>> >>> Is there any reason for this? Or is it a bug? >> >> http://cygwin.com/ml/cygwin/2013-10/msg00170.html >> >> This is an old thread, but it appears this issue was never answered and >> persists. For example, /etc/setup/installed.db has entries like this: >> > > it is an historical shortcut in the setup code. > ".tar.bz2" is just added to package name and version, > it is not really derived from the package file > > > $ grep -H  "tar.bz2" package_db.cc > package_db.cc:      pkgm.name + "-" + > std::string(pkgm.installed.Canonical_version()) + ".tar.bz2 " + > > > When we moved from bz2 to xz, that shortcut was not changed. More, it was kept like that for backwards compatibility. Specifically, cygcheck is a consumer of this file, and until [1], didn't know of the existence of other compression types. The comment [2] above the source line mentioned describes the format of installed.db. [1] https://cygwin.com/git/gitweb.cgi?p=newlib-cygwin.git;a=commitdiff;h=9a2f0cff8fc6706d16356552b86c1e0c8ba35ddf [2] https://sourceware.org/git/gitweb.cgi?p=cygwin-setup.git;a=blob;f=package_db.cc;h=730cb78c3d3ce33907cdd9d3a0de3857694fdc37;hb=HEAD#l292 -- 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