Skip to contentSkip to conversation

pcre: Change download location

PATCH New Oleg Kitain 3 participants 7 messages Mar 6, 2017 – Mar 7, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pcre: Change download location

Subject: [PATCH 1/1] pcre: Change download location

The location at ftp.csx.cam.ac.uk only stores 2 latest versions of PCRE. This results in old (2015.11 and older currently) buildroot versions timing out on wget several times and having to retrieve the package from sources.buildroot.org afterwards.

---
 package/pcre/pcre.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/pcre/pcre.mk +1 -1
index 211e2359a..7b06db1a5 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 PCRE_VERSION = 8.40
-PCRE_SITE = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre
+PCRE_SITE = https://ftp.pcre.org/pub/pcre
 PCRE_SOURCE = pcre-$(PCRE_VERSION).tar.bz2
 PCRE_LICENSE = BSD-3c
 PCRE_LICENSE_FILES = LICENCE
Signature · 1 line
2.11.1
#1 lore raw

PATCH 1/1 pcre: Change download location

Hello,

Quoted 11 lines · Oleg Kitain

Subject: [PATCH 1/1] pcre: Change download location

The location at ftp.csx.cam.ac.uk only stores 2 latest versions of PCRE. This results in old (2015.11 and older currently) buildroot versions timing out on wget several times and having to retrieve the package from sources.buildroot.org afterwards.

---
 package/pcre/pcre.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks. Peter: do we want this sort of fix in the LTS release?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 pcre: Change download location

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Hello,

Quoted 7 lines · Oleg Kitain

Subject: [PATCH 1/1] pcre: Change download location

The location at ftp.csx.cam.ac.uk only stores 2 latest versions of PCRE. This results in old (2015.11 and older currently) buildroot versions timing out on wget several times and having to retrieve the package from sources.buildroot.org afterwards.

Quoted 7 lines
Quoted 4 lines

---
package/pcre/pcre.mk | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks. Peter: do we want this sort of fix in the LTS release?

I'm a bit confused about the description. To me it sounds like a local firewall issue with ftp access instead, but OK - Others might have a similar setup.

Committed to 2017.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 pcre: Change download location

Hello,

Quoted 3 lines · Peter Korsgaard

I'm a bit confused about the description. To me it sounds like a local firewall issue with ftp access instead, but OK - Others might have a similar setup.

If you look at Buildroot 2015.11, as point out in the commit log, it contains:

PCRE_VERSION = 8.38
PCRE_SITE = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre

However, the 8.38 version is no longer available at ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre, the oldest available version from this site is 8.39.

Hence, the fact that we have been using ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre in older Buildroot versions means that these older versions are now "broken" and have to fallback on sources.buildroot.net.

So, no: it's not a local issue due to a firewall.

By using the https://ftp.pcre.org/pub/pcre/ location, which contains all previous versions, we increase our chances that 2017.02 will not be "broken" in 2 years.

We could have also said that pcre.org looks a bit more official/upstream, and indeed https:// is better than ftp://.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH 1/1 pcre: Change download location

Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Hello,

Quoted 3 lines · Peter Korsgaard

I'm a bit confused about the description. To me it sounds like a local firewall issue with ftp access instead, but OK - Others might have a similar setup.

If you look at Buildroot 2015.11, as point out in the commit log, it contains:

PCRE_VERSION = 8.38
PCRE_SITE = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre

However, the 8.38 version is no longer available at ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre, the oldest available version from this site is 8.39.

Quoted 6 lines

Hence, the fact that we have been using ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre in older Buildroot versions means that these older versions are now "broken" and have to fallback on sources.buildroot.net.

So, no: it's not a local issue due to a firewall.

But how would this cause several TIMEOUTS? E.G. something where wget will try several times to contact the ftp server.

It should just have done a single ftp login + get, and as soon as it failed fall back to sources.buildroot.net unless something is causing the ftp connection to "hang".

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 1/1 pcre: Change download location

Hello,

Quoted 6 lines · Peter Korsgaard

But how would this cause several TIMEOUTS? E.G. something where wget will try several times to contact the ftp server.

It should just have done a single ftp login + get, and as soon as it failed fall back to sources.buildroot.net unless something is causing the ftp connection to "hang".

Yes, agreed. I guess Oleg can explain more what's going.

But we all agree that the fix is good I suppose :)

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#6 lore raw

PATCH 1/1 pcre: Change download location

In reply to Oleg Kitain
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Oleg" == Oleg Kitain <[email protected]> writes:

Subject: [PATCH 1/1] pcre: Change download location
The location at ftp.csx.cam.ac.uk only stores 2 latest versions of PCRE. This results in old (2015.11 and older currently) buildroot versions timing out on wget several times and having to retrieve the package from sources.buildroot.org afterwards.

Timing out several times? Is ftp access blocked in your firewall?

A missing file should not cause any timeout, it should simply generate an error and fall back to sources.buildroot.net, E.G.:

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.bz2 --2017-03-07 13:43:28-- ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.bz2

           => ?pcre-8.37.tar.bz2?

Resolving ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)... 131.111.8.115 Connecting to ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)|131.111.8.115|:21... connected. Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/software/programming/pcre ... done. ==> SIZE pcre-8.37.tar.bz2 ... done.

==> PASV ... done. ==> RETR pcre-8.37.tar.bz2 ...
No such file ?pcre-8.37.tar.bz2?.

Signature · 1 line
Bye, Peter Korsgaard