Hi Peter,

This issue has been addressed in packaging [0]. After resolving a few
other issues, regarding new upstream release, it will be uploaded.

Thanks for submitting the bug report,
Janos

[0] 
http://anonscm.debian.org/gitweb/?p=collab-maint/uwsgi.git;a=commit;h=c8518303b95d6fad820c91023ef8fa42137d8d9e



On Wed, Jan 18, 2012 at 00:53, peter green <plugw...@p10link.net> wrote:
> package: uwsgi
> version: 0.9.8.3-2
> severity: serious
> tags: patch
> x-debbugs-cc: ja...@resenje.org
>
> Unfortunately the patch submitted for 640347 was incorrect. The architecture
> in the "openjdk-6-<arch>" part of the path needs to be the debian
> architecture name not the java architecture name (which is ambiguous). This
> error causes the package to FTBFS on architectures where the debian
> architecture and java architecture differ. Debian and java architecture
> names differ on armel, powerpc, armhf, sh4, and powerpcspe
>
> In addition to further confuse matters java-arch.sh was returning incorrect
> java architecture names on armhf, sh4, powerpcspe and s390x, that has been
> sorted in a recent upload of javahelper for armhf, sh4 and powerpcspe. At
> the time of writing it's still an issue on s390x. Still I can poke the s390x
> buildd guys for a rebuild when that is sorted so don't let it stop you
> uploading this fix.
>
> Anyway I prepared a fix for the debian architecture names VS java
> architecture names issue and then ran a test build on armel. Unfortunately
> it failed with "strict aliasing" errors in the python2.7 plugin. I then
> tested the package on amd64 and ran into the same issue.
>
> gcc -pthread -fPIC -shared -o /uwsgi-0.9.8.3/python27_plugin.so -I. -O2
> -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wextra
> -Wno-unused-parameter -Wno-missing-field-initializers
> -DUWSGI_BUILD_DATE="\"17 January 2012 19:52:09\"" -DUWSGI_HAS_IFADDRS
> -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL
> -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_TIMER_USE_TIMERFD_NOINC
> -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_EMBEDDED -DUWSGI_UDP
> -DUWSGI_UUID -DUWSGI_VERSION="\"0.9.8.3-debian\"" -DUWSGI_VERSION_BASE="0"
> -DUWSGI_VERSION_MAJOR="9" -DUWSGI_VERSION_MINOR="8"
> -DUWSGI_VERSION_REVISION="3" -DUWSGI_VERSION_CUSTOM="\"debian\""
> -DUWSGI_ASYNC -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI
> -DUWSGI_YAML -DUWSGI_LIBYAML -DUWSGI_JSON -DUWSGI_LDAP -DUWSGI_ZEROMQ
> -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE -I/usr/include/libxml2
> -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_SQLITE3
> -DUWSGI_PLUGIN_DIR=\"/uwsgi-0.9.8.3\" -DUWSGI_SPOOLER
> -I/usr/include/python2.7 -I/usr/include/python2.7 -Wno-unused-parameter
> -Wno-strict-prototypes -Dpython_plugin=python27_plugin
> -L/usr/lib/python2.7/config -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker
> -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
> /uwsgi-0.9.8.3/plugins/python27/../python/python_plugin.c
> /uwsgi-0.9.8.3/plugins/python27/../python/pyutils.c
> /uwsgi-0.9.8.3/plugins/python27/../python/pyloader.c
> /uwsgi-0.9.8.3/plugins/python27/../python/wsgi_handlers.c
> /uwsgi-0.9.8.3/plugins/python27/../python/wsgi_headers.c
> /uwsgi-0.9.8.3/plugins/python27/../python/wsgi_subhandler.c
> /uwsgi-0.9.8.3/plugins/python27/../python/gil.c
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c
> /uwsgi-0.9.8.3/plugins/python27/../python/profiler.c
> /uwsgi-0.9.8.3/plugins/python27/../python/symimporter.c -lpthread -ldl
> -lutil -lm -lpython2.7
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_add_cron’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:256:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_register_rpc’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:500:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_attach_daemon’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:517:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_signal_registered’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:529:3: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_is_connected’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:785:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_send’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:820:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_advanced_sendfile’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:884:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_warning’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:937:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_log’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:950:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_spooler_freq’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:1184:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_load_plugin’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:1614:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_multicast’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:1635:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_reload’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2183:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_set_blocking’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2191:3: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_disconnect’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2245:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_grunt’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2393:3: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_suspend’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2431:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_cache_del’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2634:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_cache_set’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2671:2: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_cache_exists’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2694:4: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2699:3: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c: In function
> ‘py_uwsgi_queue_push’:
> /uwsgi-0.9.8.3/plugins/python27/../python/uwsgi_pymodule.c:2721:4: error:
> dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
> cc1: all warnings being treated as errors
> *** unable to build python27 plugin ***
> make: *** [debian/stamp-plugin-python] Error 1
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
> root@debian:/uwsgi-0.9.8.3#
>
> I took the easy fix for this and enabled -fno-strict-aliasing for python 2.x
> plugins (there was already code to apply the flag but only with older gcc
> versions. I just removed the gcc version check).
>
> Patch is attatched, it has been test on armel, armhf and amd64.
>
> P.S. I have put the patch author in cc for this bug report so that they are
> aware of the distinction between debian architectures and java architectures
> for any similar patches they submit in future.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to