[fink:package-submissions] #4995 python35-3.5.4-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 </p/fink/package-submissions/4995/6934e68a62bd66f68ae95dcaf9779deab4aef451.package-submissions@fink.p.sourceforge.net>
Filed issue upstream as http://bugs.python.org/issue31380


---

** [package-submissions:#4995] python35-3.5.4-1 update and  skip broken test on APFS in InfoTest**

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


Update the package to the current 3.5.4 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: python35.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/languages/python35.info,v
retrieving revision 1.10
diff -u -r1.10 python35.info
--- python35.info	29 Apr 2017 16:18:24 -0000	1.10
+++ python35.info	7 Sep 2017 00:35:37 -0000
@@ -1,8 +1,8 @@
 # -*- coding: ascii; tab-width: 4; x-counterpart: python35.patch -*-
 Info2: <<
 Package: python%type_pkg[python]
-Version: 3.5.3
-Revision: 2
+Version: 3.5.4
+Revision: 1
 Type: python 3.5
 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: 57d1f8bfbabf4f2500273fb0706e6f21
+Source-MD5: fb2780baa260b4e51cbea814f111f303
 # Doc tarball missing upstream.
 #Source2: https://www.python.org/ftp/python/doc/%v/python-%v-docs-html.tar.bz2
 #Source2-MD5: c576463076f94da8daaf39f8eaeacd14
 PatchFile: %n.patch
 PatchFile-MD5: fe6cda68c332c5934f795434f21e6b92
 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.