[fink:package-submissions] #4996 python34-3.4.7-1 update and skip broken test on APFS in InfoTest

Jack Howarth via Fink-tracker <[email protected]>
Newsgroups gmane.os.apple.fink.tracker
Message-ID <59b09882dab7b9351ce39178.package-submissions@fink.p.sourceforge.net>


---

** [package-submissions:#4996] python34-3.4.7-1 update and skip broken test on APFS in InfoTest**

**Status:** open
**Group:** Undergoing_Validation
**Created:** Thu Sep 07, 2017 12:53 AM UTC by Jack Howarth
**Last Updated:** Thu Sep 07, 2017 12:53 AM UTC
**Owner:** Daniel Johnson


Update the package to the current 3.4.7 release. Also the current test_undecodable_filename is broken on APFS so the following Info file changes skips it when run on a APFS volume.

~~~
Index: python34.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/languages/python34.info,v
retrieving revision 1.11
diff -u -r1.11 python34.info
--- python34.info	29 Apr 2017 16:18:24 -0000	1.11
+++ python34.info	7 Sep 2017 00:39:01 -0000
@@ -1,8 +1,8 @@
 # -*- coding: ascii; tab-width: 4; x-counterpart: python34.patch -*-
 Info2: <<
 Package: python%type_pkg[python]
-Version: 3.4.6
-Revision: 2
+Version: 3.4.7
+Revision: 1
 Type: python 3.4
 Maintainer: Daniel Johnson <[email protected]>
 Depends: <<
@@ -46,13 +46,14 @@
 Provides: argparse-py%type_pkg[python], futures-py%type_pkg[python], enum34-py%type_pkg[python], pathlib-py%type_pkg[python]
 
 Source: https://www.python.org/ftp/python/%v/Python-%v.tar.xz
-Source-MD5: 3e42a7d46c850f76fe8d47ab306bd744
+Source-MD5: fba7c150dd2366f9523fa13b88736dea
 # Upstream no longer provides doc tarballs. :(
 #Source2: https://www.python.org/ftp/python/doc/3.4.3/python-3.4.3-docs-html.tar.bz2
 #Source2-MD5: cb6bd508aff25471fb4f32cc848a8c5b
 PatchFile: %n.patch
 PatchFile-MD5: f4072bf83a399fc8516920d70f492d6c
 PatchScript: <<
+	#!/bin/sh -ex
 	sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
 	# /tmp and /var/tmp are symlinks to /private/tmp and /private/var/tmp
 	# on OS X. That's fine except it can cause tests in some packages to
@@ -60,6 +61,13 @@
 	perl -pi -e "s|'/tmp', '/var/tmp'|'/private/tmp', '/private/var/tmp'|" Lib/tempfile.py
 	perl -pi -e 's/ -lSystemStubs//' ./configure
 	perl -pi -e 's/-O3/-fwrapv -O3/' ./configure
+	# Skip broken test on APFS that tries to explicitly to open(2) a file with a filename that is an illegal byte
+	# sequence and APFS returns EILSEQ a as a result.
+	# See  https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/APFS_Guide/FAQ/FAQ.html
+	# APFS accepts only valid UTF-8 encoded filenames for creation, and preserves both case and normalization of the filename on disk in all variants.
+	if [ `diskutil info / | grep -c "APFS"` -gt 0 ] ; then
+		perl -pi -e "s|unittest.skipUnless\(support.TESTFN_UNDECODABLE|unittest.skipUnless\(0|" Lib/test/test_httpservers.py
+	fi
 <<
 
 UseMaxBuildJobs: true
~~~

Tested on 10.13 with 'fink -m'


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/fink/package-submissions/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/fink/admin/package-submissions/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Fink-tracker mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.tracker
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.