Hello community,

here is the log from the commit of package python3 for openSUSE:Factory checked 
in at 2013-03-07 07:33:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3 (Old)
 and      /work/SRC/openSUSE:Factory/.python3.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3", Maintainer is "jmate...@suse.com"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3/python3-base.changes     2013-03-01 
08:03:57.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python3.new/python3-base.changes        
2013-03-07 07:33:56.000000000 +0100
@@ -1,0 +2,9 @@
+Fri Mar  1 07:42:21 UTC 2013 - dmuel...@suse.com
+
+- add ctypes-libffi-aarch64.patch:
+  * import aarch64 support for libffi in _ctypes module
+- add aarch64 to the list of lib64 based archs 
+- add movetogetdents64.diff:
+  * port to getdents64, as SYS_getdents is not implemented everywhere
+
+-------------------------------------------------------------------
python3.changes: same change

New:
----
  ctypes-libffi-aarch64.patch
  movetogetdents64.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-base.spec ++++++
--- /var/tmp/diff_new_pack.2KFFqA/_old  2013-03-07 07:34:00.000000000 +0100
+++ /var/tmp/diff_new_pack.2KFFqA/_new  2013-03-07 07:34:00.000000000 +0100
@@ -77,6 +77,9 @@
 Patch08:        python-3.2.3rc2-pypirc-secure.patch
 # POSIX_FADV_WILLNEED throws EINVAL. Use a different constant in test
 Patch09:        python-3.3.0b1-test-posix_fadvise.patch
+# PATCH-FIX-OPENSUSE Import aarch64 support for libffi in _ctypes module
+Patch10:        ctypes-libffi-aarch64.patch
+Patch11:        movetogetdents64.diff
 ### COMMON-PATCH-END ###
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -205,6 +208,8 @@
 %patch07
 %patch08 -p1
 %patch09 -p1
+%patch10 -p1
+%patch11 -p1
 
 # drop Autoconf version requirement
 sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac

++++++ python3-doc.spec ++++++
--- /var/tmp/diff_new_pack.2KFFqA/_old  2013-03-07 07:34:00.000000000 +0100
+++ /var/tmp/diff_new_pack.2KFFqA/_new  2013-03-07 07:34:00.000000000 +0100
@@ -60,6 +60,9 @@
 Patch08:        python-3.2.3rc2-pypirc-secure.patch
 # POSIX_FADV_WILLNEED throws EINVAL. Use a different constant in test
 Patch09:        python-3.3.0b1-test-posix_fadvise.patch
+# PATCH-FIX-OPENSUSE Import aarch64 support for libffi in _ctypes module
+Patch10:        ctypes-libffi-aarch64.patch
+Patch11:        movetogetdents64.diff
 ### COMMON-PATCH-END ###
 ### COMMON-DEF-BEGIN ###
 
@@ -125,6 +128,8 @@
 %patch07
 %patch08 -p1
 %patch09 -p1
+%patch10 -p1
+%patch11 -p1
 
 # drop Autoconf version requirement
 sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac

++++++ python3.spec ++++++
--- /var/tmp/diff_new_pack.2KFFqA/_old  2013-03-07 07:34:00.000000000 +0100
+++ /var/tmp/diff_new_pack.2KFFqA/_new  2013-03-07 07:34:00.000000000 +0100
@@ -76,6 +76,9 @@
 Patch08:        python-3.2.3rc2-pypirc-secure.patch
 # POSIX_FADV_WILLNEED throws EINVAL. Use a different constant in test
 Patch09:        python-3.3.0b1-test-posix_fadvise.patch
+# PATCH-FIX-OPENSUSE Import aarch64 support for libffi in _ctypes module
+Patch10:        ctypes-libffi-aarch64.patch
+Patch11:        movetogetdents64.diff
 ### COMMON-PATCH-END ###
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -176,6 +179,8 @@
 %patch07
 %patch08 -p1
 %patch09 -p1
+%patch10 -p1
+%patch11 -p1
 
 # drop Autoconf version requirement
 sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac

++++++ Python-3.3.0b2-multilib.patch ++++++
--- /var/tmp/diff_new_pack.2KFFqA/_old  2013-03-07 07:34:00.000000000 +0100
+++ /var/tmp/diff_new_pack.2KFFqA/_new  2013-03-07 07:34:00.000000000 +0100
@@ -358,7 +358,7 @@
 +esac
 +
 +case $ARCH:$python_cv_cc_64bit_output in
-+ppc64:yes | powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
++aarch64:yes | ppc64:yes | powerpc64:yes | s390x:yes | sparc64:yes | 
x86_64:yes)
 +  LIB="lib64"
 +  ;;
 +*:*)

++++++ ctypes-libffi-aarch64.patch ++++++
++++ 2345 lines (skipped)

++++++ movetogetdents64.diff ++++++
--- a/Modules/_posixsubprocess.c
+++ b/Modules/_posixsubprocess.c
@@ -176,16 +176,9 @@
  * This structure is very old and stable: It will not change unless the kernel
  * chooses to break compatibility with all existing binaries.  Highly Unlikely.
  */
-struct linux_dirent {
-#if defined(__x86_64__) && defined(__ILP32__)
-   /* Support the wacky x32 ABI (fake 32-bit userspace speaking to x86_64
-    * kernel interfaces) - https://sites.google.com/site/x32abi/ */
+struct linux_dirent64 {
    unsigned long long d_ino;
-   unsigned long long d_off;
-#else
-   unsigned long  d_ino;        /* Inode number */
-   unsigned long  d_off;        /* Offset to next linux_dirent */
-#endif
+   signed   long long d_off;
    unsigned short d_reclen;     /* Length of this linux_dirent */
    char           d_name[256];  /* Filename (null-terminated) */
 };
@@ -228,16 +221,16 @@
         _close_fds_by_brute_force(start_fd, end_fd, py_fds_to_keep);
         return;
     } else {
-        char buffer[sizeof(struct linux_dirent)];
+        char buffer[sizeof(struct linux_dirent64)];
         int bytes;
-        while ((bytes = syscall(SYS_getdents, fd_dir_fd,
-                                (struct linux_dirent *)buffer,
+        while ((bytes = syscall(SYS_getdents64, fd_dir_fd,
+                                (struct linux_dirent64 *)buffer,
                                 sizeof(buffer))) > 0) {
-            struct linux_dirent *entry;
+            struct linux_dirent64 *entry;
             int offset;
             for (offset = 0; offset < bytes; offset += entry->d_reclen) {
                 int fd;
-                entry = (struct linux_dirent *)(buffer + offset);
+                entry = (struct linux_dirent64 *)(buffer + offset);
                 if ((fd = _pos_int_from_ascii(entry->d_name)) < 0)
                     continue;  /* Not a number. */
                 if (fd != fd_dir_fd && fd >= start_fd && fd < end_fd &&
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to