Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60595 closed defect (fixed)

gnutls: patch failure

Reported by: mf2k (Frank Schima) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.6.99
Keywords: Cc: cjones051073 (Chris Jones)
Port: gnutls

Description (last modified by mf2k (Frank Schima))

$ port outdated 
The following installed ports are outdated:
gnutls                         3.6.13_1 < 3.6.14_0       

$ sudo port upgrade outdated 
Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.
Warning: cltversion: For a possible fix, please see: https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt
--->  Computing dependencies for gnutls
--->  Fetching archive for gnutls
--->  Attempting to fetch gnutls-3.6.14_0+doc.darwin_19.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/gnutls
--->  Attempting to fetch gnutls-3.6.14_0+doc.darwin_19.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/gnutls
--->  Attempting to fetch gnutls-3.6.14_0+doc.darwin_19.x86_64.tbz2 from https://packages.macports.org/gnutls
--->  Fetching distfiles for gnutls
--->  Verifying checksums for gnutls
--->  Extracting gnutls
--->  Applying patches to gnutls
Error: Failed to patch gnutls: command execution failed
Error: See /opt/local/var/macports/logs/_opt_mports_macports-ports_devel_gnutls/gnutls/main.log for details.

Error is:

:info:patch Executing:  cd "/opt/local/var/macports/build/_opt_mports_macports-ports_devel_gnutls/gnutls/work/gnutls-3.6.14" && /usr/bin/patch -p0 < '/opt/mports/macports-ports/devel/gnutls/files/patch-configure.ac.diff'
:debug:patch system:  cd "/opt/local/var/macports/build/_opt_mports_macports-ports_devel_gnutls/gnutls/work/gnutls-3.6.14" && /usr/bin/patch -p0 < '/opt/mports/macports-ports/devel/gnutls/files/patch-configure.ac.diff'
:info:patch patching file configure.ac
:info:patch Hunk #1 FAILED at 126.
:info:patch 1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej

Attachments (1)

main.log (8.7 KB) - added by mf2k (Frank Schima) 4 years ago.

Download all attachments as: .zip

Change History (14)

Changed 4 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 4 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Version: 2.6.99

comment:3 Changed 4 years ago by Schamschula (Marius Schamschula)

I didn't notice this, as I still am test building on Mojave. Looking into it!

comment:4 Changed 4 years ago by cjones051073 (Chris Jones)

mf2k - Side comment but you should pay attention to the warning

Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.
Warning: cltversion: For a possible fix, please see: https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt

not addressing that can cause problems...

comment:5 Changed 4 years ago by cjones051073 (Chris Jones)

b.t.w. looks like the 10.15 specific patch file is no longer required. Just removing it seems to build fine here.

comment:6 Changed 4 years ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:7 Changed 4 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In e35f21831c1ce06f864d20acd73229b3c2e845ee/macports-ports (master):

gnutls: update Catalina patch

Closes: #60595

comment:8 Changed 4 years ago by mf2k (Frank Schima)

@cjones051073: Understood but I believe that warning to be in error. I have the command line tools properly installed.

comment:9 Changed 4 years ago by cjones051073 (Chris Jones)

No, the warning is not in error. You need to read the http link it directs you at and follow the instructions there.

Last edited 4 years ago by cjones051073 (Chris Jones) (previous) (diff)

comment:10 Changed 4 years ago by cjones051073 (Chris Jones)

just to expand. You might well have command line tools installed. Thats not the problem. The issue is an Xcode update has likely wiped out the installation receipts for it, which means MacPorts cannot determine its version, and this can cause issues. You need to follow the instructions in the http link to reinstall it (or, if you prefer, just remove it entirely. Having the CLT installed is really no longer necessary).

comment:11 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Just for reference, I experienced the warning yesterday on a Catalina system that has only ever had the command line tools installed and has never had Xcode installed. So an Xcode update is apparently not the only way to get into whatever the situation is.

comment:12 Changed 4 years ago by cjones051073 (Chris Jones)

See the logic at

https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/cltversion-1.0.tcl#L28

and then

https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/cltversion-1.0.tcl#L53

in order to get the warning above, the pkgutil checks at line 28 must fail, and then you must have one or other of

  • /usr/lib/libxcselect.dylib and /Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib

or

  • /usr/bin/make

installed.

comment:13 Changed 4 years ago by cjones051073 (Chris Jones)

b.t.w. I also suspect an OS upgrade might be another way the CLT receipts go missing...

Last edited 4 years ago by cjones051073 (Chris Jones) (previous) (diff)
Note: See TracTickets for help on using tickets.