From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 09 Dec 2021 08:11:27 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mvDaR-000pwU-Nr for lore@lore.pengutronix.de; Thu, 09 Dec 2021 08:11:27 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mvDaQ-0005BX-TN; Thu, 09 Dec 2021 08:11:26 +0100 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvDaK-0005BN-C1; Thu, 09 Dec 2021 08:11:20 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mvDaJ-0003RQ-PC; Thu, 09 Dec 2021 08:11:19 +0100 Date: Thu, 9 Dec 2021 08:11:19 +0100 From: Michael Olbrich To: Jon Ringle Message-ID: <20211209071119.GL15196@pengutronix.de> Mail-Followup-To: Jon Ringle , ptxdist@pengutronix.de, Nicholai Juul Hansen References: <28f474bb-f2f3-c235-ff43-4415bdc09a32@t2data.com> <20211208071608.GB15196@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:10:19 up 294 days, 10:34, 142 users, load average: 0.40, 0.28, 0.29 User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] ptxdist make license-report failing X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Nicholai Juul Hansen , ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Wed, Dec 08, 2021 at 09:20:38PM -0500, Jon Ringle wrote: > On Wed, Dec 8, 2021 at 8:11 PM Michael Olbrich > wrote: > > On Tue, Nov 30, 2021 at 09:18:25AM +0100, Nicholai Juul Hansen wrote: > > > The license report scripts are not able to handle packages with #md5= in > > > the URL, which is not uncommon in the python packages. > > > > As far as I can tell, the #md5=... part of the URL is optional. At least it > > was for the URLs I came across in the past. > > > > > I have not been able to find a "nice" place to add a fix that I could > > > submit to the developers, > > > but you should be able to work around this issue by running a command > > > combining grep and sed/awk in the report directory. > > > > > > You can check if this is the issue by running 'grep -r "#md5=" ./' in the > > > report folder and check if you have any packages with #md5= that is not > > > escaped with \ > > > > We already escape other stuff in ptxd_make_latex_escape() in > > scripts/lib/ptxd_make_world_license.sh, so that should be fixable. > > > > > I didn't have any hits grep'ing for "#md5=", but I did get some hits just > grep'ing for "#": > > ~/git/rootfs/platform-ec2k/report$ grep -r "#" > license-report.tex:{\huge \vfill for project \vfill GridPoint-rootfs# Set > automatically in rules/os-release.make} > license-report.log:! You can't use `macro parameter character #' in > horizontal mode. > license-report.log:l.36 ...vfill for project \vfill GridPoint-rootfs# > license-report.aux:\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}} > license-report.aux:\gdef\newlabel#1#2{\newlabelxx{#1}#2} > license-report.aux:\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}} > license-report.aux:\gdef\HyperFirstAtBeginDocument#1{#1} > > This is coming from my selected_ptxconfig: > PTXCONF_PROJECT_VERSION="# Set automatically in rules/os-release.make" > > Escaping the # in the ptxconfig fixed the issue. PTXCONF_PROJECT_VERSION is escaped with ptxd_make_latex_escape() as well, so if that is fixed, then it should work as expected as well. Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de