Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247492 - sci-mathematics/octave-3.0.3 octave-3.0.1-fix_handle_for_plotyy.patch is broken
Summary: sci-mathematics/octave-3.0.3 octave-3.0.1-fix_handle_for_plotyy.patch is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-18 20:13 UTC by emil karlson
Modified: 2009-07-08 01:55 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emil karlson 2008-11-18 20:13:25 UTC
a=1:7; hold on; plotyy(a,a,a,a)

fails

this fixes the problem for me

$ diff -u /usr/share/octave/3.0.3/m/plot/plotyy.m plotyy.m
--- /usr/share/octave/3.0.3/m/plot/plotyy.m     2008-11-18 20:40:43.137825000 +0200
+++ plotyy.m    2008-11-18 21:15:11.207329100 +0200
@@ -72,7 +72,7 @@
     endif
   else
     f = get (0, "currentfigure");
-    if (isempty (f))
+    if (isempty(f) || isempty (get(f, "children")))
       ax(1) = axes ();
       ax(2) = axes ();
     else

Sometimes I really hate filing bugs to upstream just to find out they are caused by ancient debian patches randomly included in ebuilds. If there is something that could have been done better, please, upstream collaboration makes thing easier for each and every one of us.

Reproducible: Always




$ emerge --info
Portage 2.2_rc14 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.28-rc4 x86_64)
=================================================================
System uname: Linux-2.6.28-rc4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Tue, 18 Nov 2008 16:46:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -g -Dliputtassa_emil"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=native -g -Dliputtassa_emil"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="en fi en_GB"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
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="/usr/local/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science"
SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage/"
USE="R X a52 aac acl acpi alisp alsa amd64 amr ansi bash-completion berkdb bluetooth branding bzip2 cairo cblas cdr cli clisp cracklib crypt cscope css curl dbus doc dri dvd dvdr dvdread eds elliptic emboss encode evo extra fam ffmpeg fftw firefox flac fontconfig fontforge fortran fortran95 ftp galois games gd gdbm gif git glib gmp gnuplot gnutls gpm graphics gstreamer gtk hal iconv idn image imagemagick imlib ipv6 isdnlog ithreads javascript jpeg jpeg2k kde kdehiddenvisibility kipi kpathsea lapack laptop latex libnotify lzo mad matroska md5sum midi mikmod mmap mmx modplug mono mp2 mp3 mp4 mp4live mpeg mpeg2 mpi mpi_njtree mplayer mudflap multilib multitarget musepack music ncurses net netpbm network new-clx npp nptl nptlonly ogg opengl openmp pam pcre pdf perl perlsuid plotutils png ppds pppd profile ps pstricks publishers python qt3 qt3support qt4 quicktime readline redland reflection rtsp samba science sdl sdl-image server session smp sparse spl sse sse2 ssl ssse3 startup-notification stream subversion supernodal svg svm symlink sysfs tcpd teletext tex4ht theora threads threadsafe threadsonly tiff timidity toolbar trace truetype unicode usb vim vim-syntax vorbis wav x264 xattr xcb xcomposite xine xml xorg xosd xpm xrandr xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fi en_GB" USERLAND="GNU" VIDEO_CARDS="i810 radeon intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2009-07-08 01:55:42 UTC
Thanks much for your note. I've removed this patch completely
from the octave-3.2 ebuild.

Best,
Markus