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:resent-to:resent-from:resent-date
	:resent-message-id:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type; q=dns; s=default; b=kPH6j
	KjPS5hZORil6p+ZJ92KKfWaKI4xaqRkTpu80PFChjk0MGkGF0LodD67O7M9rDnwY
	QN4jbWfXlL21PlSP9F7hn9E6s3RXX3N/6ApZgTf4UsRfXo0/pxJ/Z5y/XAoFwdLS
	pfE8Blm6KAmmiNEgiTBCLPOw0wD56bEPfIkKPI=
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:resent-to:resent-from:resent-date
	:resent-message-id:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type; s=default; bh=/3bEQWrnUwV
	9tmnlQGyCg0k7Rsc=; b=mx3cjVGHALEmlAAh4jWLaTidtBeadZsHnH0VPatw3qH
	HY/+VRylIJHFt52aNIjfA2ve2peZ13XRhoNTXRKRw8N6wsk97JQqcRp01cPPn1Yy
	dxOc4oKXa6M+qN0VaCrsW6zRndMxsTcbTPX9B9PjUYKiJNWcC0C4VvDSwhmZYxr0
	=
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-Spam-SWARE-Status: Yes, score=6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPAM_URI,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:879, Hx-spam-relays-external:ESMTPA
X-HELO: vsmx011.vodafonemail.xion.oxcs.net
Resent-To: cygwin@cygwin.com
Resent-From: Achim Gratz <Stromeko@nexgo.de>
Resent-Date: Wed, 07 Nov 2018 21:46:49 +0100
Resent-Message-ID: <87y3a4bop2.fsf@Rainer.invalid>
X-From-Line: nobody Wed Nov  7 21:15:09 2018
From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin@cygwin.com
Subject: Re: cygport fails with package starting with number
References: <703d2702-0407-82fa-3a84-237bc913cd41@gmail.com>
Date: Wed, 07 Nov 2018 21:15:06 +0100
In-Reply-To: <703d2702-0407-82fa-3a84-237bc913cd41@gmail.com> (Marco Atzeri's	message of "Wed, 7 Nov 2018 19:20:44 +0100")
Message-ID: <878t24d4qd.fsf@Rainer.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Lines: 25

Marco Atzeri writes:
> It seems that the behaviour of cygport is changed recently
> and rebuilding the 4ti2 package fails on the name 4ti2.

Introduced by a3997ae7ac, which constructs a variable whose name starts
with the package name.  However, a leading number does not result in a
valid identifier.  So if such package names must be supported then the
substitution made earlier (replacing invalid characters from the name by
an underscore) also needs to handle that particular case.  So something
like

                local dbg_contents_var=${PN//[-+\.]/_}_debuginfo_CONTENTS;
+               dbg_contents_var=${dbg_contents_var/#[0-9]/_}
                __step "${PN}-debuginfo-${PVR}.tar.xz";

in lib/pkg_pkg.cygpart should fix it.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

DIY Stuff:
http://Synth.Stromeko.net/DIY.html

--
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

