Potential feature change for fink

Alexander Hansen <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <[email protected]>
I’ve created a git branch named show-xquartz-release-version ( https://github.com/fink/fink/tree/show-xquartz-release-version ) which changes the version of system-xfree86*

Background:  we used to have a working version test for X11, but that became nonfunctional at some point (I haven’t delved in the commit history for that).   It was decided just to encode “7.2” as the version, corresponding to the Xorg-7.2 codebase, along with an Epoch of 2.

However, given our recent issues with certain Xquartz versions, it seems like it would be useful for us to track the XQuartz version.  We do track the versions of certain components based on their .pc files, but that isn’t a reliable indicator of an Xquartz release; the most notable break was in libXt between XQuartz-2.8 and 2.9, and its .pc didn’t even change versions. 

My approach has been to query the receipts database in order to get the aggregate XQuartz version.  This is similar to what we do for the Xcode CL tools for the “xcode” (not “xcode.app”) version.  

$ fink list -t system-xfree86
Scanning package description files..........
Information about 9932 packages read in 2 seconds.
 i 	system-xfree86	3:2.7.112-3	[placeholder for user installed x11]
 i 	system-xfree86-dev	3:2.7.112-3	[placeholder for user installed x11 development tools]
 i 	system-xfree86-manual-install	3:2.7.112-3	Manually installed X11 components
 i 	system-xfree86-shlibs	3:2.7.112-3	[placeholder for user installed x11 shared libraries]

The epoch has been changed to 3 because the Xquartz version is less than 7.2.  I don’t think we actually track the system-xfree86 version anywhere, but there’s no reason not to be consistent.  I have XQuartz-2.7.11 installed, but the package info gives ‘2.7.112':

$ pkgutil --pkg-info org.macosforge.xquartz.pkg
package-id: org.macosforge.xquartz.pkg
version: 2.7.112
volume: /
location: 
install-time: 1478014088

One downside to this approach is that if somebody removes the receipt the versioning will be lost.  If somebody has an alternative approach to get at the aggregate XQuartz version based on the currently installed files or the output from executables, I’m open to using that.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.