Opened 16 months ago

Closed 15 months ago

Last modified 15 months ago

#66690 closed defect (fixed)

ghc-prebuilt @9.4.4_0: configure fails with "sh: ./configure: No such file or directory"

Reported by: larryv (Lawrence Velázquez) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.8.99
Keywords: Cc:
Port: ghc-prebuilt

Description

On 10.14.6 using current base (d43dd95):

:info:configure Executing:  cd "/opt/local/var/macports/build/_Users_larryv_Code_MacPorts_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4" && ./configure --prefix=/opt/local 
:debug:configure system:  cd "/opt/local/var/macports/build/_Users_larryv_Code_MacPorts_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4" && ./configure --prefix=/opt/local 
:info:configure sh: ./configure: No such file or directory
:info:configure Command failed:  cd "/opt/local/var/macports/build/_Users_larryv_Code_MacPorts_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4" && ./configure --prefix=/opt/local 
:info:configure Exit code: 127
:error:configure Failed to configure ghc-prebuilt: configure failure: command execution failed

The directory ghc-prebuilt/work/ghc-9.4.4 is empty. Its sibling directory ghc-9.4.4-x86_64-apple-darwin actually contains the goods.

Attachments (1)

main.log (7.8 KB) - added by larryv (Lawrence Velázquez) 16 months ago.

Download all attachments as: .zip

Change History (13)

Changed 16 months ago by larryv (Lawrence Velázquez)

Attachment: main.log added

comment:1 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Version: 2.8.99

Probably because you are using MacPorts 2.8.99 in which [ffdb7d9ee9e59e9d69a2f29ac08dfd5090f84759/macports-base] happened.

comment:2 Changed 15 months ago by tramir (Mircea Trandafir)

I'm experiencing the same error on a MacBook Air M1, MacPorts 2.8.1, MacOS Ventura 13.1. Is there a "quick fix" to this?

comment:3 Changed 15 months ago by Leucanthemum

I could work around this problem by deleting the empty directory ghc-9.4.4 replacing it with a symbolic link to ghc-9.4.4-aarch64-apple-darwin. (You should try this only on a developer system, because I don't know if this is a good idea)

  1. change to directory

cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work

  1. delete directory ghc-9.4.4

sudo rmdir ghc-9.4.4

  1. set symlink

sudo ln -s ghc-9.4.4-aarch64-apple-darwin ghc-9.4.4

  1. next try to install pandoc

sudo install pandoc

now ghc-prebuilt is installed.

And now the bad news: After installing some other dependencies, the process stops again, when it trys to install the port cabal, where the gets stuck during the applying patches process (unfortunately without any error message)

comment:4 Changed 15 months ago by essandess (Steve Smith)

This looks weird—all ghc-prebuilt does is essentially untar the distribution, and I’ve successfully installed it on those exact same platforms many times.

Please do the following:

sudo port selfupdate
sudo port clean --all ghc-prebuilt hadrian cabal-prebuilt ghc cabal pandoc
sudo port -pNc install pandoc

If the error persists post the logfile of the failed port, e.g. following:

port logfile ghc-prebuilt
Last edited 15 months ago by essandess (Steve Smith) (previous) (diff)

comment:5 in reply to:  4 Changed 15 months ago by larryv (Lawrence Velázquez)

Replying to essandess:

This looks weird—all ghc-prebuilt does is essentially untar the distribution, and I’ve successfully installed it on those exact same platforms many times.

Have you done so with current MacPorts base?

comment:6 in reply to:  4 Changed 15 months ago by Leucanthemum

Here the logfile ghc-prebuilt/main.log:

version:1
:debug:main Starting logging for ghc-prebuilt @9.4.4_0
:debug:sysinfo macOS 13.2 (darwin/22.3.0) arch arm
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode 14.2, CLT 14.2.0.0.1.1668646533
:debug:sysinfo SDK 13
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 13.0
:debug:main Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/ghc/work
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (ghc-prebuilt)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Fri Feb  3 08:48:45 CET 2023
:msg:archivefetch --->  Fetching archive for ghc-prebuilt
:debug:archivefetch Executing org.macports.archivefetch (ghc-prebuilt)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  ghc-prebuilt-9.4.4_0.darwin_22.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch ghc-prebuilt-9.4.4_0.darwin_22.arm64.tbz2 from https://packages.macports.org/ghc-prebuilt
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch ghc-prebuilt-9.4.4_0.darwin_22.arm64.tbz2 from https://fra.de.packages.macports.org/ghc-prebuilt
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch ghc-prebuilt-9.4.4_0.darwin_22.arm64.tbz2 from https://nue.de.packages.macports.org/ghc-prebuilt
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Fri Feb  3 08:48:48 CET 2023
:notice:fetch --->  Fetching distfiles for ghc-prebuilt
:debug:fetch elevating privileges for fetch: euid changed to 0, egid changed to 0.
:debug:fetch dropping privileges: euid changed to 502, egid changed to 501.
:debug:fetch Executing org.macports.fetch (ghc-prebuilt)
:info:fetch --->  ghc-9.4.4-aarch64-apple-darwin.tar.xz does not exist in /opt/local/var/macports/distfiles/ghc
:notice:fetch --->  Attempting to fetch ghc-9.4.4-aarch64-apple-darwin.tar.xz from https://distfiles.macports.org/ghc
:debug:fetch Fetching distfile failed: The requested URL returned error: 404
:notice:fetch --->  Attempting to fetch ghc-9.4.4-aarch64-apple-darwin.tar.xz from https://downloads.haskell.org/~ghc/9.4.4
:info:fetch --->  ghc-9.4.4-aarch64-apple-darwin.tar.xz.sig does not exist in /opt/local/var/macports/distfiles/ghc
:notice:fetch --->  Attempting to fetch ghc-9.4.4-aarch64-apple-darwin.tar.xz.sig from https://distfiles.macports.org/ghc
:debug:fetch Fetching distfile failed: The requested URL returned error: 404
:notice:fetch --->  Attempting to fetch ghc-9.4.4-aarch64-apple-darwin.tar.xz.sig from https://downloads.haskell.org/~ghc/9.4.4
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Fri Feb  3 08:49:31 CET 2023
:notice:checksum --->  Verifying checksums for ghc-prebuilt
:debug:checksum Executing proc-pre-org.macports.checksum-checksum-0
:info:checksum xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/.gnupg
:debug:checksum Executing org.macports.checksum (ghc-prebuilt)
:info:checksum --->  Checksumming ghc-9.4.4-aarch64-apple-darwin.tar.xz
:debug:checksum Calculated (rmd160) is 8dce77267645ad8bb3edb04e8ed3625e3cfc6eb6
:debug:checksum Correct (rmd160) checksum for ghc-9.4.4-aarch64-apple-darwin.tar.xz
:debug:checksum Calculated (sha256) is b50507b229e0c418b32e4b6cc060288ba9497fdd912962e3b0707d0a2b003658
:debug:checksum Correct (sha256) checksum for ghc-9.4.4-aarch64-apple-darwin.tar.xz
:debug:checksum Calculated (size) is 196083128
:debug:checksum Correct (size) checksum for ghc-9.4.4-aarch64-apple-darwin.tar.xz
:info:checksum --->  Checksumming ghc-9.4.4-aarch64-apple-darwin.tar.xz.sig
:debug:checksum Calculated (size) is 586
:debug:checksum Correct (size) checksum for ghc-9.4.4-aarch64-apple-darwin.tar.xz.sig
:debug:checksum Executing proc-post-org.macports.checksum-checksum-0
:debug:checksum system: /opt/local/bin/gpg  --homedir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/.gnupg  --import /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/ghc/files/keyid-ffeb7ce81e16a36b3e2ded6f2de04d4e97db64ad.txt 2>/dev/null || /usr/bin/true
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Fri Feb  3 08:49:32 CET 2023
:notice:extract --->  Extracting ghc-prebuilt
:debug:extract setting option extract.cmd to /opt/local/bin/xz
:debug:extract Executing org.macports.extract (ghc-prebuilt)
:info:extract --->  Extracting ghc-9.4.4-aarch64-apple-darwin.tar.xz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/ghc/ghc-9.4.4-aarch64-apple-darwin.tar.xz'
:debug:extract Environment: 
:debug:extract CC_PRINT_OPTIONS='YES'
:debug:extract CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/.CC_PRINT_OPTIONS'
:debug:extract CPATH='/opt/local/include'
:debug:extract DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:extract LIBRARY_PATH='/opt/local/lib'
:debug:extract MACOSX_DEPLOYMENT_TARGET='13.0'
:debug:extract MACPORTS_LEGACY_SUPPORT_DISABLED='1'
:debug:extract SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
:info:extract Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/ghc/ghc-9.4.4-aarch64-apple-darwin.tar.xz' | /usr/bin/tar -xf - 
:debug:extract system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/ghc/ghc-9.4.4-aarch64-apple-darwin.tar.xz' | /usr/bin/tar -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work to macports
:debug:extract euid/egid changed to: 502/501
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Fri Feb  3 08:49:44 CET 2023
:debug:patch Executing org.macports.patch (ghc-prebuilt)
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Fri Feb  3 08:49:44 CET 2023
:notice:configure --->  Configuring ghc-prebuilt
:debug:configure Preferred compilers: clang macports-clang-14 macports-clang-13 macports-clang-12 macports-clang-11
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (ghc-prebuilt)
:debug:configure Creating configure directory: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4
:debug:configure Environment: 
:debug:configure CC='/usr/bin/clang'
:debug:configure CC_PRINT_OPTIONS='YES'
:debug:configure CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/.CC_PRINT_OPTIONS'
:debug:configure CFLAGS='-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure CPATH='/opt/local/include'
:debug:configure CPPFLAGS='-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
:debug:configure CXX='/usr/bin/clang++'
:debug:configure CXXFLAGS='-pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:configure F90FLAGS='-pipe -Os -m64'
:debug:configure FCFLAGS='-pipe -Os -m64'
:debug:configure FFLAGS='-pipe -Os -m64'
:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='13.0'
:debug:configure MACPORTS_LEGACY_SUPPORT_DISABLED='1'
:debug:configure OBJC='/usr/bin/clang'
:debug:configure OBJCFLAGS='-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure OBJCXX='/usr/bin/clang++'
:debug:configure OBJCXXFLAGS='-pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4" && ./configure --prefix=/opt/local 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4" && ./configure --prefix=/opt/local 
:info:configure sh: ./configure: No such file or directory
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4" && ./configure --prefix=/opt/local 
:info:configure Exit code: 127
:error:configure Failed to configure ghc-prebuilt: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/main.log for details.
version:1
:debug:clean Starting logging for ghc-prebuilt @9.4.4_0
:debug:sysinfo macOS 13.2 (darwin/22.3.0) arch arm
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode 14.2, CLT 14.2.0.0.1.1668646533
:debug:sysinfo SDK 13
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 13.0
:debug:clean dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Executing org.macports.main (ghc-prebuilt)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Fri Feb  3 09:02:01 CET 2023
:msg:archivefetch --->  Fetching archive for ghc-prebuilt
:debug:archivefetch Executing org.macports.archivefetch (ghc-prebuilt)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  ghc-prebuilt-9.4.4_0.darwin_22.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch ghc-prebuilt-9.4.4_0.darwin_22.arm64.tbz2 from https://packages.macports.org/ghc-prebuilt
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch ghc-prebuilt-9.4.4_0.darwin_22.arm64.tbz2 from https://fra.de.packages.macports.org/ghc-prebuilt
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch ghc-prebuilt-9.4.4_0.darwin_22.arm64.tbz2 from https://nue.de.packages.macports.org/ghc-prebuilt
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.fetch (ghc-prebuilt)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.checksum (ghc-prebuilt)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.extract (ghc-prebuilt)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.patch (ghc-prebuilt)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Fri Feb  3 09:02:01 CET 2023
:notice:configure --->  Configuring ghc-prebuilt
:debug:configure Preferred compilers: clang macports-clang-14 macports-clang-13 macports-clang-12 macports-clang-11
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (ghc-prebuilt)
:debug:configure Environment: 
:debug:configure CC='/usr/bin/clang'
:debug:configure CC_PRINT_OPTIONS='YES'
:debug:configure CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/.CC_PRINT_OPTIONS'
:debug:configure CFLAGS='-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure CPATH='/opt/local/include'
:debug:configure CPPFLAGS='-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
:debug:configure CXX='/usr/bin/clang++'
:debug:configure CXXFLAGS='-pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:configure F90FLAGS='-pipe -Os -m64'
:debug:configure FCFLAGS='-pipe -Os -m64'
:debug:configure FFLAGS='-pipe -Os -m64'
:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='13.0'
:debug:configure MACPORTS_LEGACY_SUPPORT_DISABLED='1'
:debug:configure OBJC='/usr/bin/clang'
:debug:configure OBJCFLAGS='-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure OBJCXX='/usr/bin/clang++'
:debug:configure OBJCXXFLAGS='-pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'
:debug:configure SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4" && ./configure --prefix=/opt/local 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4" && ./configure --prefix=/opt/local 
:info:configure sh: ./configure: No such file or directory
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.4.4" && ./configure --prefix=/opt/local 
:info:configure Exit code: 127
:error:configure Failed to configure ghc-prebuilt: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/main.log for details.

As mentioned before https://trac.macports.org/ticket/66690?replyto=4#comment:3, if I replace the directory ghc-9.4.4 with a symlink to ghc-9.4.4-aarch64-apple-darwin in the directory "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work", the port gets installed.

I got into this, when I tried to install pandoc.

Last edited 15 months ago by Leucanthemum (previous) (diff)

comment:7 Changed 15 months ago by essandess (Steve Smith)

I see the same issue with MacPorts 2.8.1 on both arm64 and x86_64.

The problem with the latest MacPorts version is that the worksrcpath specified by the Portfile is created as an actual directory, not a symlink to the untarred source contents created by the extract phase. This will be a problem with any port that specifies worksrcpath—I cannot recall why I did this for cabal but I believe that there was a good reason. See below.

This looks like a MacPorts bug to me. I'll issue a ticket.

How to observe the issue. The directory cabal-install-3.8.1.0 should be a symlink to cabal-Cabal-v3.8.1.0.

sudo port -sd patch cabal
# process hangs
^C

ls -l /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_cabal/cabal/work/
total 0
drwxr-xr-x  53 macports  wheel  1696 Feb  3 05:44 cabal-Cabal-v3.8.1.0/
drwxr-xr-x   2 macports  wheel    64 Feb  3 05:44 cabal-install-3.8.1.0/

https://github.com/macports/macports-ports/blob/b9c71b3bf2561a10fd6e0b64ca31859944a6e6f5/lang/cabal/Portfile#L99

    worksrcdir      ${name}-install-${version}
Last edited 15 months ago by essandess (Steve Smith) (previous) (diff)

comment:8 Changed 15 months ago by essandess (Steve Smith)

Cross-reference: #66821

Last edited 15 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:9 Changed 15 months ago by essandess (Steve Smith)

Anyone who needs to hack a fix while this is being addressed could run the command port extract …, then by hand delete the worksrcpath directory, then as sudo -u macports create a symlink with the same name to the actual source directory in work, then proceed as normal with a port install ….

Last edited 15 months ago by essandess (Steve Smith) (previous) (diff)

comment:11 Changed 15 months ago by essandess (Steve Smith)

Resolution: fixed
Status: assignedclosed

In 072fee93aeedc1219c597ad55cc293cc80b3d684/macports-ports (master):

cabal: Fix worksrcdir on MacPorts 2.8.1

Fixes: #66690#comment:3

comment:12 Changed 15 months ago by tramir (Mircea Trandafir)

Can confirm that it works now (MacBook Air M1, MacPorts 2.8.1, MacOS Ventura 13.1).

Note: See TracTickets for help on using tickets.