Nethack fails during patching on Ventura 13.2

2023-02-06 Thread Jon Lasser
MacPorts 2.8.1, ran selfupdate, updated all installed ports.

* ok* jon@MadMax ~% *sudo port clean --dist nethack*

--->  Cleaning nethack

* ok* jon@MadMax ~% *sudo port install nethack*

--->  Computing dependencies for nethack

--->  Fetching archive for nethack

--->  Attempting to fetch nethack-3.6.6_0.darwin_22.arm64.tbz2 from 
https://packages.macports.org/nethack

--->  Attempting to fetch nethack-3.6.6_0.darwin_22.arm64.tbz2 from 
http://mirror.fcix.net/macports/packages/nethack

--->  Attempting to fetch nethack-3.6.6_0.darwin_22.arm64.tbz2 from 
https://ywg.ca.packages.macports.org/mirror/macports/packages/nethack

--->  Fetching distfiles for nethack

--->  Attempting to fetch nethack-366-src.tgz from 
https://distfiles.macports.org/nethack

--->  Verifying checksums for nethack

--->  Extracting nethack

--->  Applying patches to nethack


At this point it did nothing and CPU usage went to zero. I hit enter twice, and 
got this:

Error: Failed to patch nethack: command execution failed

Error: See 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_nethack/nethack/main.log
 for details.

Error: Follow https://guide.macports.org/#project.tickets if you believe there

is a bug.

Error: Processing of port nethack failed

1 jon@MadMax ~% 


The bottom of the logfile reads:

:debug:patch patch phase started at Mon Feb  6 12:09:21 PST 2023

:debug:patch Executing org.macports.patch (nethack)

:notice:patch --->  Applying patches to nethack

:info:patch --->  Applying patch-gamestate-dir.diff

:debug:patch Creating patch directory: 
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_nethack/nethack/work/nethack-3.6.6

:debug:patch Environment: 

:debug:patch CC_PRINT_OPTIONS='YES'

:debug:patch 
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_nethack/nethack/work/.CC_PRINT_OPTIONS'

:debug:patch CPATH='/opt/local/include'

:debug:patch DEVELOPER_DIR='/Library/Developer/CommandLineTools'

:debug:patch LIBRARY_PATH='/opt/local/lib'

:debug:patch MACOSX_DEPLOYMENT_TARGET='13.0'

:debug:patch SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'

:info:patch Executing:  cd 
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_nethack/nethack/work/nethack-3.6.6"
 && /usr/bin/patch -p1 < 
'/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/games/nethack/files/patch-gamestate-dir.diff'

:debug:patch system:  cd 
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_nethack/nethack/work/nethack-3.6.6"
 && /usr/bin/patch -p1 < 
'/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/games/nethack/files/patch-gamestate-dir.diff'

:info:patch File to patch: No file found--skip this patch? [y] 3 out of 3 hunks 
ignored--saving rejects to Oops.rej

:info:patch Command failed:  cd 
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_nethack/nethack/work/nethack-3.6.6"
 && /usr/bin/patch -p1 < 
'/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/games/nethack/files/patch-gamestate-dir.diff'

:info:patch Exit code: 1

:error:patch Failed to patch nethack: command execution failed

:debug:patch Error code: CHILDSTATUS 97029 1

:debug:patch Backtrace: command execution failed

:debug:patch while executing

:debug:patch "system {*}$notty {*}$callback {*}$nice $fullcmdstring"

:debug:patch invoked from within

:debug:patch "command_exec patch "" "< '$patch'""

:debug:patch (procedure "portpatch::patch_main" line 41)

:debug:patch invoked from within

:debug:patch "$procedure $targetname"

:error:patch See 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_nethack/nethack/main.log
 for details.


Anything obvious I should do?

--
Web: twoideas.org / Twitter: @disappearinjon / Mailing list: bit.ly/difficultsf


Re: [EXTERNAL] Re: Getting errors when upgrading to Ventura

2023-02-06 Thread Mannucci, Anthony J (US 3350) via macports-users
Ryan,

Thanks. Great advice. I did a combination of your suggestions (e.g. peruse the 
myports.txt file and separately install cctools) and now I’m back up!

-Tony

From: Ryan Schmidt 
Date: Sunday, February 5, 2023 at 4:14 PM
To: "Mannucci, Anthony J (335G)" 
Cc: MacPorts Users 
Subject: [EXTERNAL] Re: Getting errors when upgrading to Ventura



On Feb 5, 2023, at 16:25, Mannucci, Anthony J wrote:



Each failure will need individual investigation by reading the main.log file.

404 errors when fetching archives are not a problem. When MacPorts cannot fetch 
an archive, it builds from source. If *that* fails, *that's* a problem.

Some of the ports you mentioned, like perl5.16 and llvm-3.3, are ancient and 
may not be buildable on Ventura, or even if they build they may have bugs that 
were fixed a long, long time ago. Use newer versions of these ports, for 
example perl5.34 and llvm-15.

The cctools failure is explained in the error message. Clean the port and try 
again. Probably you want to run "sudo port install cctools" without specifying 
any variant, to let MacPorts pick the best variant for your system, if indeed 
you need to install the port at all. If you don't know that you need the port, 
don't install it. MacPorts will install it if it's needed as a dependency later.

You should probably read through the list of ports in myports.txt and remove 
any that you do not explicitly want rather than just reinstalling all the ports 
you had on your old system, some of which may have at one point been needed as 
a dependency of something but which aren't anymore.





Re: dia port (from source) fails to install on Ventura 13.1 (with M1 chip)

2023-02-06 Thread Kenneth Wolcott
Hi Ryan;

  Thank you!  It installs fine now.  Now I just need to re-learn how
to use dia :-)

Thanks,
Ken

On Mon, Feb 6, 2023 at 1:21 AM Ryan Schmidt  wrote:
>
> On Feb 5, 2023, at 13:46, Kenneth Wolcott wrote:
> >
> >  The dia port (from source) fails to install on Ventura 13.1 (with M1 chip).
> >
> >  The compressed install log file is attached.
>
> Thanks for adding your log to this ticket...
>
> https://trac.macports.org/ticket/66013
>
> ...which is hopefully now fixed. Wait an hour, selfupdate, and try again.
>
>


Re: mac and ssl/openssl

2023-02-06 Thread Riccardo Mottola via macports-users

Hi Ryan,

Ryan Schmidt wrote:

I tested that 10.13 doesn't have, so GNUMail doesn't compile.

Did Mac switch to a different ssl version and/or changed the location of it? 
with which version?
Do you have experience supporting it?
I'd like to keep GNUMail working on vintage macs, but also support newer ones.

https://web.archive.org/web/20221129062249/http://lists.apple.com/archives/macnetworkprog/2015/Jun/msg00025.html



so except of rewriting the code... the solution is to use MacPorts 
openssl and package it inside the app, I see.


Thanks,
Riccardo



Re: dia port (from source) fails to install on Ventura 13.1 (with M1 chip)

2023-02-06 Thread Ryan Schmidt
On Feb 5, 2023, at 13:46, Kenneth Wolcott wrote:
> 
>  The dia port (from source) fails to install on Ventura 13.1 (with M1 chip).
> 
>  The compressed install log file is attached.

Thanks for adding your log to this ticket...

https://trac.macports.org/ticket/66013

...which is hopefully now fixed. Wait an hour, selfupdate, and try again.