Re: building pinentry-mac

Hanspeter Niederstrasser <[email protected]> Thu, 18 Apr 2024 07:24:13 -0500
Newsgroups gmane.os.apple.fink.general
Organization Snaggled Works
Message-ID <[email protected]>
On 4/17/24 4:40 PM, Scott Hannahs via Fink-users wrote:
>> On Apr 17, 2024, at 15:47, [email protected] wrote:
>>
>> On 2024-04-16 20:11, Scott Hannahs via Fink-users wrote:
>>> Seem to have some sort of problem using the xcodebuild system under
>>> Sonoma / Xcode 15.  Not sure where the first error is, it seems to be
>>> trying to stash files in the /var/empty/Library folder which should
>>> not and does not exist.
>>> Then it has a problem looking at the “Core simulator version”
>>> Then it has problems building the simulator files in /var/empty and we
>>> are back at the original problem.
>>> Any insights?  Do I need to setup an Xcode simulator to build this?
>>> -Scott
>>> sudo -u fink-bld [ENV] sh -c /tmp/fink.yh_Th
>>> /tmp/fink.W9wti
>>> #!/bin/sh -ev
>>> 	# Don't use new Xcode build system with Xcode10+
>>> 	if [ `xcodebuild -version 2>/dev/null | head -n 1 | cut -f 2 -d ' ' |
>>> cut -f 1 -d.` -ge 10 ]; then
>>> 		perl -pi -e 's|xcodebuild .*$|$& -UseNewBuildSystem=NO|g' Makefile
>>> 	fi
>>> xcodebuild -version 2>/dev/null | head -n 1 | cut -f 2 -d ' ' | cut -f 1 -d.
>>> sudo -u fink-bld [ENV] sh -c /tmp/fink.3QH3x
>>> make
>>> xcodebuild -project pinentry-mac.xcodeproj -target pinentry-mac
>>> -configuration Release build  -UseNewBuildSystem=NO
>>> 2024-04-14 21:58:19.607 xcodebuild[53023:3433695] [MT]
>>> DVTDownloadable: Error creating downloadable cache directory
>>> file:///var/empty/Library/Caches/com.apple.dt.Xcode/Downloads/
>>> 2024-04-14 21:58:19.617 xcodebuild[53023:3433696] CoreSimulator
>>> detected version change.  Framework version (947.13) does not match
>>> existing job version (932.2).  Attempting to remove the stale service
>>> in order to add the expected version.
>>> Command line invocation:
>>>     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
>>> -project pinentry-mac.xcodeproj -target pinentry-mac -configuration
>>> Release build -UseNewBuildSystem=NO
>>> User defaults from command line:
>>>     IDEPackageSupportUseBuiltinSCM = YES
>>>     UseNewBuildSystem = NO
>>> 2024-04-14 21:58:20.234 xcodebuild[53023:3433795] Error
>>> Domain=com.apple.CoreSimulator.SimError Code=400 "Unable to determine
>>> SimDeviceSet for subscriptions,
>>> set_path=/var/empty/Library/Developer/CoreSimulator/Devices"
>>> UserInfo={NSLocalizedDescription=Unable to determine SimDeviceSet for
>>> subscriptions,
>>> set_path=/var/empty/Library/Developer/CoreSimulator/Devices,
>>> NSUnderlyingError=0x6000002fd890 {Error Domain=NSPOSIXErrorDomain
>>> Code=12 "Cannot allocate memory"
>>> UserInfo={NSLocalizedFailureReason=Allocation or initialization
>>> failed., NSLocalizedDescription=Failed to initialize simulator device
>>> set.}}}
>>
>> Pinentry-mac is frozen upstream since 2021 [1], so it's not surprising that it's not working with newer Xcode. I haven't been able to find a suitable fix for pinentry-mac. Do you need pinentry-mac or will any of the other pinentry packages work? There are newer pinentry releases than our v1.1.1.1, but they require much newer Qt5 than what we have (there are CLI, Qt4, and fltk variants as well).
>>
>> [1] https://github.com/GPGTools/pinentry-mac
> 
> I don’t know if I need it, I got an error code from gpg-tools that was asking for pinentry-mac.  I have a request into them asking if it is necessary or if it should have been bundled.  Or if other pinentry versions will work?  I will wait for the gpg-tools folks to respond.
> 
> Should probably OS version restrict it?

I've updated the other possible pinentry packages and dist restricted 
pinentry-mac. I've no idea how the gpg-tools differentiate between the 
different flavors, although the non-mac variants should all be similar 
(just different toolkit to manage the UI).

Hanspeter

-- 
Ad Astra



_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users