From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91291 invoked by alias); 7 Nov 2018 20:46:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 91268 invoked by uid 89); 7 Nov 2018 20:46:56 -0000 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 Received: from vsmx011.vodafonemail.xion.oxcs.net (HELO vsmx011.vodafonemail.xion.oxcs.net) (153.92.174.89) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Nov 2018 20:46:55 +0000 Received: from vsmx003.vodafonemail.xion.oxcs.net (unknown [192.168.75.197]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 4263D3E0584 for ; Wed, 7 Nov 2018 20:46:52 +0000 (UTC) Received: from Gertrud (unknown [91.47.63.38]) by mta-7-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 15F08300233 for ; Wed, 7 Nov 2018 20:46:49 +0000 (UTC) Resent-To: cygwin@cygwin.com Resent-From: Achim Gratz 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 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 20:46:00 -0000 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 X-SW-Source: 2018-11/txt/msg00072.txt.bz2 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