StrawberryPerl / build-extlibs

16 stars 11 forks source link

cp: cannot stat '/z/extlib/_5034__.src/bzip2-1.0.6': No such file or directory #28

Closed hakonhagland closed 1 year ago

hakonhagland commented 1 year ago

When I run build.sh I get an error saying that bzip2 could not be found:

ContainerAdministrator@0c335ae4a539 MINGW64 /z/extlib
# ./build.sh 5034 __
###### [15:45:57] BUILD STARTED param1='5034' param2='__'
###### gcc: Target: x86_64-w64-mingw32
###### is64bit: 1
###### out: /z/extlib/_5034__
#### Unpacking sources
### termcap-1.3.1
2023-01-27 15:46:01 URL:https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz [439416/439416] -> "termcap-1.3.1.tar.gz" [1]
### readline-8.2
2023-01-27 15:46:07 URL:https://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz [3043952/3043952] -> "readline-8.2.tar.gz" [1]
GONNA Apply: /z/extlib/patches/readline-8.2/01-mingw-patch.patch : /z/extlib/_5034__/readline-8.2.patch.log
### gdbm-1.23
2023-01-27 15:46:18 URL:https://ftp.gnu.org/gnu/gdbm/gdbm-1.23.tar.gz [1115854/1115854] -> "gdbm-1.23.tar.gz" [1]
### db-6.2.38
2023-01-27 15:46:42 URL:https://strawberryperl.com/package/kmx/libs_src/db-6.2.38.tar.gz [41298311/41298311] -> "db-6.2.38.tar.gz" [1
]
GONNA Apply: /z/extlib/patches/db-6.2.38/db-6.2.38-mingw.patch : /z/extlib/_5034__/db-6.2.38.patch.log
### gmp-6.2.1
2023-01-27 15:47:22 URL:https://gmplib.org/download/gmp/gmp-6.2.1.tar.bz2 [2493916/2493916] -> "gmp-6.2.1.tar.bz2" [1]
### mpfr-4.0.2
2023-01-27 15:47:32 URL: ftp://ftp.gnu.org/gnu/mpfr/mpfr-4.0.2.tar.gz [2211910] -> "mpfr-4.0.2.tar.gz" [1]
### mpc-1.1.0
2023-01-27 15:47:40 URL:https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz [701263/701263] -> "mpc-1.1.0.tar.gz" [1]
### bzip2-1.0.6
2023-01-27 15:47:43 URL:http://www.bzip.org/ [16171] -> "bzip2-1.0.6.tar.gz" [1]

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
cp: cannot stat '/z/extlib/_5034__.src/bzip2-1.0.6': No such file or directory
./build.sh: line 251: cd: /z/extlib/_5034__.src/bzip2-1.0.6: No such file or directory
 [...]

Looking at the input file sources.list :

https://github.com/StrawberryPerl/build-extlibs/blob/d20a2326562d58910c8011420ceb762d64cbabd7/sources.list#L191

I observe that the url http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz does not exist (it just redirects to http://www.bzip.org/)

hakonhagland commented 1 year ago

Added a possible fix for this, see https://github.com/StrawberryPerl/build-extlibs/pull/29

shawnlaffan commented 1 year ago

29 has been merged, closing issue. Thanks for the report and PR.