All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <ross.burton@arm.com>, <bitbake-devel@lists.openembedded.org>
Subject: Re: [bitbake-devel] [PATCH v3 1/7] fetch2/wget: consider downloadfilename when checking for upstream
Date: Thu, 27 Mar 2025 14:17:17 +0100	[thread overview]
Message-ID: <D8R2STOUQTXK.5NH29V054MLY@bootlin.com> (raw)
In-Reply-To: <20250326122523.293551-1-ross.burton@arm.com>

On Wed Mar 26, 2025 at 1:25 PM CET, Ross Burton via lists.openembedded.org wrote:
> latest_versionstring() currently looks at just the end of the URI when
> guessing what the filename to look for is, but this doesn't work if the
> URL filename is not simple.
>
> For example, miniupnpd has a SRC_URI of:
>
>   http://miniupnp.tuxfamily.org/files/download.php?file=${BP}.tar.gz;downloadfilename=${BP}.tar.gz
>
> The filename component of this is "download.php", which causes the
> heuristics in latest_versionstring() to exit early.
>
> Instead, if the downloadfilename is set then use that, as it's often the
> actual filename that we're after.
>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---

Hi Ross,

I've been trying to apply this series on my branch, but I get some error
on the autobuilder:

FAIL: test_wget_latest_versionstring (bb.tests.fetch.FetchLatestVersionTest.test_wget_latest_versionstring) (pn='miniupnpd')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/bitbake/lib/bb/tests/fetch.py", line 1578, in test_wget_latest_versionstring
    self.assertTrue(verstring, msg="Could not find upstream version for %s" % data.pn)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '' is not true : Could not find upstream version for miniupnpd

https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/1193


-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



      parent reply	other threads:[~2025-03-27 13:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-26 12:25 [PATCH v3 1/7] fetch2/wget: consider downloadfilename when checking for upstream Ross Burton
2025-03-26 12:25 ` [PATCH v3 2/7] fetch2/wget: don't conditionalise --continue Ross Burton
2025-03-26 12:25 ` [PATCH v3 3/7] fetch2/wget: use long arguments for clarity Ross Burton
2025-03-26 12:25 ` [PATCH v3 4/7] bb/tests: use subtests when looping in a test case Ross Burton
2025-03-26 12:25 ` [PATCH v3 5/7] tests/fetch: use a namedtuple for the wget test data Ross Burton
2025-03-26 12:25 ` [PATCH v3 6/7] tests/fetch: support setting PV in the wget fetcher Ross Burton
2025-03-26 12:25 ` [PATCH v3 7/7] tests/fetch: add a test for download paths without a proper filename Ross Burton
2025-03-27 13:17 ` Mathieu Dubois-Briand [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=D8R2STOUQTXK.5NH29V054MLY@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=ross.burton@arm.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.