RJVB / macstrop

RJVB's repository of alternative macports, with ports missing from or overriding those in the standard collection, including a set of KF5 ports.
21 stars 9 forks source link

curl from macstrop fails to build on Linux: `unzip: invalid option -- 'a'` #113

Closed barracuda156 closed 3 months ago

barracuda156 commented 3 months ago
--->  Fetching distfiles for curl-ca-bundle
--->  curl-8.9.1.tar.xz does not exist in /opt/local/var/macports/distfiles/curl
--->  Attempting to fetch curl-8.9.1.tar.xz from https://curl.se/download/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2717k  100 2717k    0     0  1196k      0  0:00:02  0:00:02 --:--:-- 1195k
--->  certdata-20240703-e3195e969188a333692e5e366d6fda6bb8d7c761.zip does not exist in /opt/local/var/macports/distfiles/curl
--->  Attempting to fetch certdata-20240703-e3195e969188a333692e5e366d6fda6bb8d7c761.zip from https://distfiles.macports.org/curl
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  278k  100  278k    0     0  90325      0  0:00:03  0:00:03 --:--:-- 90352
--->  Verifying checksums for curl-ca-bundle
--->  Checksumming curl-8.9.1.tar.xz
--->  Checksumming certdata-20240703-e3195e969188a333692e5e366d6fda6bb8d7c761.zip
--->  Extracting curl-ca-bundle
--->  Extracting curl-8.9.1.tar.xz
unzip: invalid option -- 'a'
BusyBox v1.35.0 () multi-call binary.

Usage: unzip [-lnojpq] FILE[.zip] [FILE]... [-x FILE]... [-d DIR]
Command failed: unzip -q -a /opt/local/var/macports/distfiles/curl/certdata-20240703-e3195e969188a333692e5e366d6fda6bb8d7c761.zip
Exit code: 1
Error: Failed to extract curl-ca-bundle: command execution failed
Error: See /opt/local/var/macports/logs/_home_svacchanda_macstrop_net_curl/curl-ca-bundle/main.log for details.
barracuda156 commented 2 months ago

@RJVB Hmm, still fails:

sh-5.1# port clean curl
Warning: configured user/group macports does not exist, will build as root
--->  Cleaning curl
sh-5.1# port clean curl-ca-bundle
Warning: configured user/group macports does not exist, will build as root
--->  Cleaning curl-ca-bundle
sh-5.1# port -v install curl
Warning: configured user/group macports does not exist, will build as root
^CError: Aborted: SIGINT received.
sh-5.1# port -v install curl configure.compiler=clang
Warning: configured user/group macports does not exist, will build as root
--->  Computing dependencies for curl...........
The following dependencies will be installed: 
 brotli
 cmake-bootstrap
 curl-ca-bundle
 libidn2
 libpsl
 libunistring
 nghttp2
 python310
 python3_select-310
 python_select-310
Continue? [Y/n]: y
Warning: configured user/group macports does not exist, will build as root
--->  Fetching distfiles for curl-ca-bundle
--->  Verifying checksums for curl-ca-bundle
--->  Checksumming curl-8.9.1.tar.xz
--->  Checksumming certdata-20240703-e3195e969188a333692e5e366d6fda6bb8d7c761.zip
--->  Extracting curl-ca-bundle
--->  Extracting curl-8.9.1.tar.xz
unzip: invalid option -- 'a'
BusyBox v1.35.0 () multi-call binary.

Usage: unzip [-lnojpq] FILE[.zip] [FILE]... [-x FILE]... [-d DIR]
Command failed: unzip -q -a /opt/local/var/macports/distfiles/curl/certdata-20240703-e3195e969188a333692e5e366d6fda6bb8d7c761.zip
Exit code: 1
Error: unzip -q -a /opt/local/var/macports/distfiles/curl/certdata-20240703-e3195e969188a333692e5e366d6fda6bb8d7c761.zip failed: command execution failed
Error: Failed to extract curl-ca-bundle: Please install port:unzip and try again
Error: See /opt/local/var/macports/logs/_home_svacchanda_macstrop_net_curl/curl-ca-bundle/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port curl failed
RJVB commented 2 months ago

On Wednesday September 04 2024 05:35:29 Sergey Fedorov wrote:

@RJVB Hmm, still fails:

By design: [...]

Error: unzip -q -a /opt/local/var/macports/distfiles/curl/certdata-20240703-e3195e969188a333692e5e366d6fda6bb8d7c761.zip failed: command execution failed Error: Failed to extract curl-ca-bundle: Please install port:unzip and try again

                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I can't make that more readable/in-your-face ...

barracuda156 commented 2 months ago

@RJVB Sorry, I did not notice that 😅

Shouldn’t a dependency be declared though?

RJVB commented 2 months ago

As the commit message says, I don't want to impose a dependency on everyone just because there are systems around with an archaic unzip version...

BusyBox is a boot environment, it's a mystery to me why any system would be using it beyond/after that.

barracuda156 commented 2 months ago

Installing unzip fixed the issues, thanks. Wonder why they had archaic unzip in 2023 Linux image.

RJVB commented 2 months ago

On Wednesday September 04 2024 06:30:45 Sergey Fedorov wrote:

Installing unzip fixed the issues, thanks. Wonder why they had archaic unzip in 2023 Linux image.

I think it's related to using BusyBox. Is this a Linux distro that's aimed at embedded devices, maybe?