Skip to contentSkip to conversation

python: Upgrade both python and python-native to 2.7.14

PATCH In review Derek Straka 4 participants 5 messages Jan 29, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python: Upgrade both python and python-native to 2.7.14

Rebased:
- python/01-use-proper-tools-for-cross-build.patch
- python/fix-makefile-for-ptest.patch
- python/parallel-makeinst-create-bindir.patch

Removed Upstreamed Patch:
- python/Don-t-use-getentropy-on-Linux.patch

Updated license checksum for changes in the copyright date. The license terms remain unchanged

Added an extra do_compile item to create the native pgen that no longer gets compiled by default

Update the json manifest with the latest dependency set

---
 ...on-native_2.7.13.bb => python-native_2.7.14.bb} |  6 ++++
 meta/recipes-devtools/python/python.inc            |  6 ++--
 .../01-use-proper-tools-for-cross-build.patch      | 17 +++++----
 .../python/Don-t-use-getentropy-on-Linux.patch     | 41 ----------------------
 .../python/python/fix-makefile-for-ptest.patch     |  6 ++--
 .../python/parallel-makeinst-create-bindir.patch   | 12 +++----
 .../python/python/python2-manifest.json            |  8 +++--
 .../python/{python_2.7.13.bb => python_2.7.14.bb}  |  1 -
 8 files changed, 34 insertions(+), 63 deletions(-)
 rename meta/recipes-devtools/python/{python-native_2.7.13.bb => python-native_2.7.14.bb} (94%)
 delete mode 100644 meta/recipes-devtools/python/python/Don-t-use-getentropy-on-Linux.patch
 rename meta/recipes-devtools/python/{python_2.7.13.bb => python_2.7.14.bb} (99%)
meta/recipes-devtools/python/python-native_2.7.14.bb renamed from meta/recipes-devtools/python/python-native_2.7.13.bb +6 -0
similarity index 94%
rename from meta/recipes-devtools/python/python-native_2.7.13.bb
rename to meta/recipes-devtools/python/python-native_2.7.14.bb
index 2b74003..622cb38 100644
@@ -36,6 +36,12 @@ do_configure_append() {
 	autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi
 }
 
+# Regenerate all of the generated files
+# This ensures that pgen and friends get created during the compile phase
+do_compile_prepend() {
+    oe_runmake regen-all
+}
+
 do_install() {
 	oe_runmake 'DESTDIR=${D}' install
 	install -d ${D}${bindir}/${PN}
meta/recipes-devtools/python/python.inc +3 -3
index b40f551..979b601 100644
@@ -5,12 +5,12 @@ SECTION = "devel/python"
 # bump this on every change in contrib/python/generate-manifest-2.7.py
 INC_PR = "r1"
 
-LIC_FILES_CHKSUM = "file://LICENSE;md5=6b60258130e4ed10d3101517eb5b9385"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f741e51de91d4eeea5930b9c3c7fa69d"
 
 SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz"
 
-SRC_URI[md5sum] = "53b43534153bb2a0363f08bae8b9d990"
-SRC_URI[sha256sum] = "35d543986882f78261f97787fd3e06274bfa6df29fac9b4a94f73930ff98f731"
+SRC_URI[md5sum] = "1f6db41ad91d9eb0a6f0c769b8613c5b"
+SRC_URI[sha256sum] = "71ffb26e09e78650e424929b2b457b9c912ac216576e6bd9e7d204ed03296a66"
 
 # python recipe is actually python 2.x
 # also, exclude pre-releases for both python 2.x and 3.x
meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch +10 -7
index 366ce3e..e795a74 100644
@@ -9,6 +9,9 @@ Signed-off-by: Paul Eggleton <[email protected]>
 Rebased for python-2.7.9
 Signed-off-by: Alejandro Hernandez <[email protected]>
 
+Rebased for python-2.7.14
+Signed-off-by: Derek Straka <[email protected]>
+
 Index: Python-2.7.13/Makefile.pre.in
 ===================================================================
 --- Python-2.7.13.orig/Makefile.pre.in
@@ -30,14 +33,14 @@ Index: Python-2.7.13/Makefile.pre.in
  
  # Create build directory and generate the sysconfig build-time data there.
  # pybuilddir.txt contains the name of the build dir and is used for
-@@ -681,7 +682,7 @@ Modules/pwdmodule.o: $(srcdir)/Modules/p
- 
- $(GRAMMAR_H): @GENERATED_COMMENT@ $(GRAMMAR_INPUT) $(PGEN)
+@@ -663,7 +663,7 @@
+ 	# Regenerate Include/graminit.h and Python/graminit.c
+ 	# from Grammar/Grammar using pgen
  	@$(MKDIR_P) Include
--	$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
-+	$(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
- $(GRAMMAR_C): @GENERATED_COMMENT@ $(GRAMMAR_H)
- 	touch $(GRAMMAR_C)
+-	$(PGEN) $(srcdir)/Grammar/Grammar \
++	$(HOSTPGEN) $(srcdir)/Grammar/Grammar \
+ 		$(srcdir)/Include/graminit.h \
+ 		$(srcdir)/Python/graminit.c
  
 @@ -1121,27 +1122,27 @@ libinstall:	build_all $(srcdir)/Lib/$(PL
  			$(DESTDIR)$(LIBDEST)/distutils/tests ; \
meta/recipes-devtools/python/python/Don-t-use-getentropy-on-Linux.patch deleted +0 -41

41 lines not on this page · raw message

meta/recipes-devtools/python/python/fix-makefile-for-ptest.patch +3 -3
index 669112d..90dcd57 100644
@@ -15,7 +15,7 @@ diff -ruN a/Makefile.pre.in b/Makefile.pre.in
 +TESTOPTS=	-l -v $(EXTRATESTOPTS)
  TESTPROG=	$(srcdir)/Lib/test/regrtest.py
 -TESTPYTHON=	$(RUNSHARED) ./$(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS)
--test:		all platform
+-test:		@DEF_MAKE_RULE@ platform
 -		-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
 +TESTPYTHON=	$(RUNSHARED) $(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS)
 +test:		build-test
@@ -26,8 +26,8 @@ diff -ruN a/Makefile.pre.in b/Makefile.pre.in
  		-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
  		$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
  
-+build-test:	all platform
++build-test:	@DEF_MAKE_RULE@ platform
 +
- testall:	all platform
+ testall:	@DEF_MAKE_RULE@ platform
  		-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
  		$(TESTPYTHON) $(srcdir)/Lib/compileall.py
meta/recipes-devtools/python/python/parallel-makeinst-create-bindir.patch +6 -6
index 951cb46..abab41e 100644
@@ -8,12 +8,12 @@ Upstream-Status: Pending
 
 --- Python-2.7.3.orig/Makefile.pre.in
 +++ Python-2.7.3/Makefile.pre.in
-@@ -1008,7 +1008,7 @@ LIBPL=		$(LIBP)/config
+@@ -1187,7 +1187,7 @@
  LIBPC=		$(LIBDIR)/pkgconfig
-
- libainstall:	all python-config
+ 
+ libainstall:	@DEF_MAKE_RULE@ python-config
 -	@for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC); \
 +	@for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC) $(BINDIR); \
-	do \
-		if test ! -d $(DESTDIR)$$i; then \
-			echo "Creating directory $$i"; \
+ 	do \
+ 		if test ! -d $(DESTDIR)$$i; then \
+ 			echo "Creating directory $$i"; \
meta/recipes-devtools/python/python/python2-manifest.json +6 -2
index 03d4bbd..723e513 100644
@@ -680,6 +680,7 @@
             "${libdir}/python2.7/cgi.py"
         ],
         "rdepends": [
+            "compression",
             "contextlib",
             "core",
             "crypt",
@@ -692,7 +693,8 @@
             "shell",
             "textutils",
             "threading",
-            "unixadmin"
+            "unixadmin",
+            "zlib"
         ],
         "summary": "Python Internet Protocol servers"
     },
@@ -838,9 +840,11 @@
             "${libdir}/python2.7/shutil.py"
         ],
         "rdepends": [
+            "compression",
             "core",
             "io",
-            "unixadmin"
+            "unixadmin",
+            "zlib"
         ],
         "summary": "Python shell-like functionality"
     },
meta/recipes-devtools/python/python_2.7.14.bb renamed from meta/recipes-devtools/python/python_2.7.13.bb +0 -1
similarity index 99%
rename from meta/recipes-devtools/python/python_2.7.13.bb
rename to meta/recipes-devtools/python/python_2.7.14.bb
index dbafb95..13455ff 100644
@@ -28,7 +28,6 @@ SRC_URI += "\
   file://parallel-makeinst-create-bindir.patch \
   file://use_sysroot_ncurses_instead_of_host.patch \
   file://add-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch \
-  file://Don-t-use-getentropy-on-Linux.patch \
   file://pass-missing-libraries-to-Extension-for-mul.patch \
   file://support_SOURCE_DATE_EPOCH_in_py_compile_2.7.patch \
 "
Signature · 1 line
2.7.4
#1 lore raw

✗ patchtest: failure for python: Upgrade both python and python-native to 2.7.14 (rev3)

== Series Details ==

Series: python: Upgrade both python and python-native to 2.7.14 (rev3)
Revision: 3
URL : https://patchwork.openembedded.org/series/10723/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 1c896b34d2)

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
#2 lore raw
In reply to Derek Straka
Quoted 12 lines · Derek Straka

Rebased:
  - python/01-use-proper-tools-for-cross-build.patch
  - python/fix-makefile-for-ptest.patch
  - python/parallel-makeinst-create-bindir.patch

Removed Upstreamed Patch:
  - python/Don-t-use-getentropy-on-Linux.patch

Updated license checksum for changes in the copyright date.  The license
terms remain unchanged

Quoted 7 lines

Added an extra do_compile item to create the native pgen that no longer
gets compiled by default

Update the json manifest with the latest dependency set

Your patch was merged into master so if there are tweaks they need to be in a patch against master now please.

Cheers,

Richard

#3 lore raw

Thanks. Last I checked it was just in master-next. I'll send the patch for the manifest once I get off the train.

Quoted 28 lines · Richard Purdie
Quoted 12 lines · Derek Straka

Rebased:
- python/01-use-proper-tools-for-cross-build.patch
- python/fix-makefile-for-ptest.patch
- python/parallel-makeinst-create-bindir.patch

Removed Upstreamed Patch:
- python/Don-t-use-getentropy-on-Linux.patch

Updated license checksum for changes in the copyright date. The license
terms remain unchanged

Quoted 7 lines

Added an extra do_compile item to create the native pgen that no longer
gets compiled by default

Update the json manifest with the latest dependency set

Your patch was merged into master so if there are tweaks they need to be in a patch against master now please.

Cheers,

Richard

#4 lore raw

Awesome!, it seems that the script did save us from a couple of annoying RDEPEND bugs on this new release!

Thanks Derek!

Quoted 35 lines · Derek Straka

Thanks. Last I checked it was just in master-next. I'll send the patch for the manifest once I get off the train.

On Jan 29, 2018 5:18 PM, "Richard Purdie" <[email protected] <mailto:[email protected]>> wrote:

On Mon, 2018-01-29 at 16:49 -0500, Derek Straka wrote:
> Rebased:
> - python/01-use-proper-tools-for-cross-build.patch
> - python/fix-makefile-for-ptest.patch
> - python/parallel-makeinst-create-bindir.patch
>
> Removed Upstreamed Patch:
> - python/Don-t-use-getentropy-on-Linux.patch
>
> Updated license checksum for changes in the copyright date. The > license
> terms remain unchanged
>
> Added an extra do_compile item to create the native pgen that no > longer
> gets compiled by default
>
> Update the json manifest with the latest dependency set >
> Signed-off-by: Derek Straka <[email protected] <mailto:[email protected]>>

Your patch was merged into master so if there are tweaks they need to be in a patch against master now please.

Cheers,

Richard