Skip to contentSkip to conversation

SRC_URI fetching problem

DISCUSSION Steffen Sledz 3 participants 6 messages Mar 15, 2010

lore
Share & tools
lore
#0 lore raw

I work at a recipe for rsyslog (http://www.rsyslog.com) and hit a problem with the wget fetcher.

The download uri for rsyslog-5.4.0.tar.gz does not contain the archive name itself but is http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml.

If i set

SRC_URI = "http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml" SRC_URI[archive.md5sum] = "291882229d50496f42bd63174076dd37" SRC_URI[archive.sha256sum] = "d9cd21d2fcd45fcae65eb0a51927c40315cca02afdc62478abd950febfcf7228"

the fetch stage results in an error even though the archive is downloaded. :(

---------------------->snip<-----------------------------

Quoted 1 line

bitbake -b /home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb -c fetch

NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 2 of 2 (ID: 1, /home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb, do_fetch)
NOTE: fetch http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml
--2010-03-15 11:09:05-- http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml
Resolving www.rsyslog.com... 85.10.198.18
Connecting to www.rsyslog.com|85.10.198.18|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://download.rsyslog.com/rsyslog/rsyslog-5.4.0.tar.gz [following] --2010-03-15 11:09:05-- http://download.rsyslog.com/rsyslog/rsyslog-5.4.0.tar.gz
Resolving download.rsyslog.com... 85.10.198.18
Reusing existing connection to www.rsyslog.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 2124201 (2.0M) [application/x-gzip]
Saving to: `/home/sledz/sources/rsyslog-5.4.0.tar.gz'

100%[==================================================================================================================================================================>] 2,124,201 1.19M/s in 1.7s

2010-03-15 11:09:07 (1.19 MB/s) - `/home/sledz/sources/rsyslog-5.4.0.tar.gz' saved [2124201/2124201]

NOTE: fetch http://mirrors.openembedded.org//Downloads-req-getit-lid-197.phtml
--2010-03-15 11:09:07-- http://mirrors.openembedded.org//Downloads-req-getit-lid-197.phtml
Resolving mirrors.openembedded.org... 82.197.159.157
Connecting to mirrors.openembedded.org|82.197.159.157|:80... connected.
HTTP request sent, awaiting response... 404 Not Found

2010-03-15 11:09:07 ERROR 404: Not Found.

NOTE: fetch http://sources.openembedded.org//Downloads-req-getit-lid-197.phtml
--2010-03-15 11:09:07-- http://sources.openembedded.org//Downloads-req-getit-lid-197.phtml
Resolving sources.openembedded.org... 140.211.169.165
Connecting to sources.openembedded.org|140.211.169.165|:80... connected. HTTP request sent, awaiting response... 404 Not Found

2010-03-15 11:09:07 ERROR 404: Not Found.

NOTE: fetch http://www.angstrom-distribution.org/unstable/sources/Downloads-req-getit-lid-197.phtml
--2010-03-15 11:09:07-- http://www.angstrom-distribution.org/unstable/sources/Downloads-req-getit-lid-197.phtml
Resolving www.angstrom-distribution.org... 188.40.83.200
Connecting to www.angstrom-distribution.org|188.40.83.200|:80... connected.
HTTP request sent, awaiting response... 404 Not Found

2010-03-15 11:09:07 ERROR 404: Not Found.

NOTE: Task failed: Fetch failed: http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb do_fetch failed
ERROR: Task 1 (/home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb, do_fetch) failed
NOTE: Tasks Summary: Attempted 1 tasks of which 1 didn't need to be rerun and 1 failed.
ERROR: '/home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb' failed ---------------------->snip<-----------------------------

Steffen

#1 lore raw
Quoted 13 lines · Steffen Sledz

I work at a recipe for rsyslog (http://www.rsyslog.com) and hit a problem with the wget fetcher.

The download uri for rsyslog-5.4.0.tar.gz does not contain the archive name itself but is http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml.

If i set

SRC_URI = "http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml" SRC_URI[archive.md5sum] = "291882229d50496f42bd63174076dd37" SRC_URI[archive.sha256sum] = "d9cd21d2fcd45fcae65eb0a51927c40315cca02afdc62478abd950febfcf7228"

At a guess you need to add ";name=archive" to the end of your SRC_URI.

Martyn

Quoted 64 lines

the fetch stage results in an error even though the archive is downloaded. :(

---------------------->snip<-----------------------------

Quoted 2 lines

bitbake -b /home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb -c fetch

NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 2 of 2 (ID: 1, /home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb, do_fetch)
NOTE: fetch http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml
--2010-03-15 11:09:05-- http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml
Resolving www.rsyslog.com... 85.10.198.18
Connecting to www.rsyslog.com|85.10.198.18|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://download.rsyslog.com/rsyslog/rsyslog-5.4.0.tar.gz [following] --2010-03-15 11:09:05-- http://download.rsyslog.com/rsyslog/rsyslog-5.4.0.tar.gz
Resolving download.rsyslog.com... 85.10.198.18
Reusing existing connection to www.rsyslog.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 2124201 (2.0M) [application/x-gzip]
Saving to: `/home/sledz/sources/rsyslog-5.4.0.tar.gz'

100%[==================================================================================================================================================================>] 2,124,201 1.19M/s in 1.7s

2010-03-15 11:09:07 (1.19 MB/s) - `/home/sledz/sources/rsyslog-5.4.0.tar.gz' saved [2124201/2124201]

NOTE: fetch http://mirrors.openembedded.org//Downloads-req-getit-lid-197.phtml
--2010-03-15 11:09:07-- http://mirrors.openembedded.org//Downloads-req-getit-lid-197.phtml
Resolving mirrors.openembedded.org... 82.197.159.157
Connecting to mirrors.openembedded.org|82.197.159.157|:80... connected.
HTTP request sent, awaiting response... 404 Not Found

2010-03-15 11:09:07 ERROR 404: Not Found.

NOTE: fetch http://sources.openembedded.org//Downloads-req-getit-lid-197.phtml
--2010-03-15 11:09:07-- http://sources.openembedded.org//Downloads-req-getit-lid-197.phtml
Resolving sources.openembedded.org... 140.211.169.165
Connecting to sources.openembedded.org|140.211.169.165|:80... connected. HTTP request sent, awaiting response... 404 Not Found

2010-03-15 11:09:07 ERROR 404: Not Found.

NOTE: fetch http://www.angstrom-distribution.org/unstable/sources/Downloads-req-getit-lid-197.phtml
--2010-03-15 11:09:07-- http://www.angstrom-distribution.org/unstable/sources/Downloads-req-getit-lid-197.phtml
Resolving www.angstrom-distribution.org... 188.40.83.200
Connecting to www.angstrom-distribution.org|188.40.83.200|:80... connected.
HTTP request sent, awaiting response... 404 Not Found

2010-03-15 11:09:07 ERROR 404: Not Found.

NOTE: Task failed: Fetch failed: http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb do_fetch failed
ERROR: Task 1 (/home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb, do_fetch) failed
NOTE: Tasks Summary: Attempted 1 tasks of which 1 didn't need to be rerun and 1 failed.
ERROR: '/home/sledz/work/openembedded/recipes/rsyslog/rsyslog_5.4.0.bb' failed ---------------------->snip<-----------------------------

Steffen

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 4 lines
Martyn Welch (Principal Software Engineer)   |   Registered in England and
GE Intelligent Platforms                     |   Wales (3828642) at 100
T +44(0)127322748                            |   Barbirolli Square, Manchester,
E [email protected]                        |   M2 3AB  VAT:GB 927559189
#2 lore raw
Quoted 7 lines · Martyn Welch
Quoted 6 lines · Steffen Sledz

I work at a recipe for rsyslog (http://www.rsyslog.com) and hit a problem with the wget fetcher.

The download uri for rsyslog-5.4.0.tar.gz does not contain the archive name itself but is http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml.

Quoted 7 lines
Quoted 5 lines

If i set

SRC_URI = "http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml" SRC_URI[archive.md5sum] = "291882229d50496f42bd63174076dd37" SRC_URI[archive.sha256sum] = "d9cd21d2fcd45fcae65eb0a51927c40315cca02afdc62478abd950febfcf7228"

At a guess you need to add ";name=archive" to the end of your SRC_URI.

Nope, same behaviour. :(

BTW: The ";name=" option is not documented in the user manual at
<http://docs.openembedded.org/usermanual/usermanual.html>.

Steffen

#3 lore raw

Am Montag 15 März 2010 11:21:15 schrieb Steffen Sledz:

Quoted 16 lines
Quoted 15 lines · Martyn Welch
Quoted 13 lines · Steffen Sledz

I work at a recipe for rsyslog (http://www.rsyslog.com) and hit a problem with the wget fetcher.

The download uri for rsyslog-5.4.0.tar.gz does not contain the archive name itself but is
http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml.

If i set

SRC_URI = "http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml" SRC_URI[archive.md5sum] = "291882229d50496f42bd63174076dd37" SRC_URI[archive.sha256sum] = "d9cd21d2fcd45fcae65eb0a51927c40315cca02afdc62478abd950febfcf7228"

Quoted 8 lines
Quoted 1 line

At a guess you need to add ";name=archive" to the end of your SRC_URI.

Nope, same behaviour. :(

BTW: The ";name=" option is not documented in the user manual at
<http://docs.openembedded.org/usermanual/usermanual.html>.

Steffen

Use a propper URL for the Download:
http://download.rsyslog.com/rsyslog/rsyslog-5.4.0.tar.gz

Thomas

#4 lore raw
Quoted 13 lines · Thomas Zimmermann
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

I work at a recipe for rsyslog (http://www.rsyslog.com) and hit a problem with the wget fetcher.

The download uri for rsyslog-5.4.0.tar.gz does not contain the archive name itself but is
http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml.

If i set

SRC_URI = "http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml" SRC_URI[archive.md5sum] = "291882229d50496f42bd63174076dd37" SRC_URI[archive.sha256sum] = "d9cd21d2fcd45fcae65eb0a51927c40315cca02afdc62478abd950febfcf7228"

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

At a guess you need to add ";name=archive" to the end of your SRC_URI.

Nope, same behaviour. :(

Use a propper URL for the Download:
http://download.rsyslog.com/rsyslog/rsyslog-5.4.0.tar.gz

OK, that's of course the best solution. ;-)

Steffen

#5 lore raw
In reply to Steffen Sledz
Quoted 16 lines · Steffen Sledz
Quoted 14 lines · Martyn Welch
Quoted 12 lines · Steffen Sledz

I work at a recipe for rsyslog (http://www.rsyslog.com) and hit a problem with the wget fetcher.

The download uri for rsyslog-5.4.0.tar.gz does not contain the archive name itself but is http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml.

If i set

SRC_URI = "http://www.rsyslog.com/Downloads-req-getit-lid-197.phtml" SRC_URI[archive.md5sum] = "291882229d50496f42bd63174076dd37" SRC_URI[archive.sha256sum] = "d9cd21d2fcd45fcae65eb0a51927c40315cca02afdc62478abd950febfcf7228"

Quoted 8 lines
Quoted 2 lines

At a guess you need to add ";name=archive" to the end of your SRC_URI.

Nope, same behaviour. :(

BTW: The ";name=" option is not documented in the user manual at
<http://docs.openembedded.org/usermanual/usermanual.html>.

Neither is the relatively new mechanism for incuding the md5sum and sha256sum in the recipe. Unless you add the "name" parameter (or the md5sum and sha256sum for that SRC_URI happens to already be in checksum.ini) you will probably see another failure when it attempts to validate the archive it has been downloaded. Either way, I think Thomas' suggestion may be right.

Martyn

Signature · 4 lines
Martyn Welch (Principal Software Engineer)   |   Registered in England and
GE Intelligent Platforms                     |   Wales (3828642) at 100
T +44(0)127322748                            |   Barbirolli Square, Manchester,
E [email protected]                        |   M2 3AB  VAT:GB 927559189