mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Jon Ringle <jon@ringle.org>
Cc: Nicholai Juul Hansen <njh@newtec.dk>, ptxdist@pengutronix.de
Subject: Re: [ptxdist] ptxdist make license-report failing
Date: Thu, 9 Dec 2021 08:11:19 +0100	[thread overview]
Message-ID: <20211209071119.GL15196@pengutronix.de> (raw)
In-Reply-To: <CAMwGMjwvTD+FSgEUQ=012PTN-9J2qGr1sj16H_ryQMTRuw5tTA@mail.gmail.com>

On Wed, Dec 08, 2021 at 09:20:38PM -0500, Jon Ringle wrote:
> On Wed, Dec 8, 2021 at 8:11 PM Michael Olbrich <m.olbrich@pengutronix.de>
> 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


      parent reply	other threads:[~2021-12-09  7:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAMwGMjx9=ccsetFbth6pTX=5DP2b7o4aRUCrRg4pWAaneRUWQA@mail.gmail.com>
2021-11-29 18:30 ` Christian Melki
     [not found]   ` <CACespbLtoh0ejfq0WZteSdAm1qmwLkvEO5JsXBfOmGuLp+9srQ@mail.gmail.com>
2021-12-08  7:16     ` Michael Olbrich
     [not found]       ` <CAMwGMjwvTD+FSgEUQ=012PTN-9J2qGr1sj16H_ryQMTRuw5tTA@mail.gmail.com>
2021-12-09  7:11         ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211209071119.GL15196@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=jon@ringle.org \
    --cc=njh@newtec.dk \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox