Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268781 - [PATCH] app-office/openoffice python bindings broken when using python2.6
Summary: [PATCH] app-office/openoffice python bindings broken when using python2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-06 03:59 UTC by Aldo Cassola
Modified: 2009-11-28 21:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix for uno.py as applied to openoffice upstream (pyuno-python-2.6-uno-import.diff,1.27 KB, patch)
2009-05-06 11:42 UTC, Aldo Cassola
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aldo Cassola 2009-05-06 03:59:44 UTC
After upgrading python to 2.6 and running python-updater, some openoffice's python scripts (such as mailmerge.py stop working). The issue has been reported upstream and in SuSE, and a fix is available: See 
http://www.openoffice.org/issues/show_bug.cgi?id=100997
https://bugzilla.novell.com/show_bug.cgi?id=448776

Reproducible: Always

Steps to Reproduce:
This is just an example of one script failing. The above urls show some more examples.

1. Update to python2.6
2. Run oowriter
3. Go to Tools->Option->Openoffice.org Writer->E-mail Merge
4. Enter your neighboring smtp server settings and press Test Settings


Actual Results:  
The test settings action will always fail. Regardless of settings. The connection is not even established.

Expected Results:  
The test should run successfully when the correct settings are entered, including establishing an smtp connection to the server
Comment 1 Aldo Cassola 2009-05-06 11:42:20 UTC
Created attachment 190494 [details, diff]
fix for uno.py as applied to openoffice upstream
Comment 2 Aldo Cassola 2009-05-07 11:56:07 UTC
BTW this is my emerge info

$ emerge --info                                                 
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-tuxonice-r1-lean i686)                                            
=================================================================               
System uname: Linux-2.6.29-tuxonice-r1-lean-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-gentoo-2.0.0                                                         
Timestamp of tree: Thu, 07 May 2009 11:30:01 +0000                              
app-shells/bash:     4.0_p17-r1                                                 
dev-java/java-config: 1.3.7-r1, 2.1.7                                           
dev-lang/python:     2.6.2                                                      
dev-util/cmake:      2.6.3-r1                                                   
sys-apps/baselayout: 2.0.0                                                      
sys-apps/openrc:     0.4.3-r2                                                   
sys-apps/sandbox:    1.9                                                        
sys-devel/autoconf:  2.13, 2.63-r1                                              
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2          
sys-devel/binutils:  2.19.1-r1                                                  
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6a                                                     
virtual/os-headers:  2.6.28-r1                                                  
ACCEPT_KEYWORDS="x86 ~x86"                                                      
CBUILD="i686-pc-linux-gnu"                                                      
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"                         
CHOST="i686-pc-linux-gnu"                                                       
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb"                                                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                        
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"                       
DISTDIR="/usr/portage/distfiles"                                                
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                  
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                           
LANG="en_US.utf8"                                                               
LC_ALL="en_US.utf8"                                                             
LDFLAGS="-Wl,-O1"                                                               
LINGUAS="en es"                                                                 
MAKEOPTS="-j3"                                                                  
PKGDIR="/usr/portage/packages"                                                  
PORTAGE_CONFIGROOT="/"                                                          
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                  
PORTAGE_TMPDIR="/var/tmp"                                                       
PORTDIR="/usr/portage"                                                          
PORTDIR_OVERLAY="/usr/local/portage"                                            
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                  
USE="3dnow 3dnowext X a52 aac aalib acl acpi aim akode alsa amarok apache2 arts asm avahi avi berkdb bitmap-fonts bluetooth branding bzip2 cairo cddb cdparanoia cdr cdrom cli cracklib crypt cups dbus dlloader doc dri dts dvd dvdr dvdread dvi eap-tls eds emboss encode esd evo exif fam fbsplash ffmpeg firefox flac flash foomaticdb fortran gdbm gif gimp gimpprint glitz gnome gnutls gpm gstreamer gtk gtk2 hal iconv ipod ipv6 isdnlog jpeg kde kde4 kdeprefix ldap libg++ libnotify mad matroska midi mikmod mmx mmxext mp3 mp4 mpeg mpeg2 mplayer mudflap musicbrainz ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp openssl opensslcrypt oss pam pcre pdf pdflib perl phonon png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl startup-notification subtitles svg svga sysfs tcpd theora tiff truetype truetype-fontstype1-fonts udev unicode usb v4l v4l2 vcd vorbis win32codecs x86 xine xml xorg xosd xulrunner xv xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiationproxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Aldo Cassola 2009-05-17 19:52:54 UTC
Just wanted to add this only applies to OOo 3.0, as v3.1 already has this patch.
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2009-11-28 21:56:16 UTC
Already fixed upstream, closing