Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138093 - dev-games/ogre ~amd64 keyword request
Summary: dev-games/ogre ~amd64 keyword request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement with 1 vote (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 145565 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-26 12:15 UTC by Sergey Belyashov
Modified: 2007-11-17 16:05 UTC (History)
6 users (show)

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


Attachments
new ebuild version (ogre-1.2.1-r1.ebuild,2.42 KB, text/plain)
2006-06-28 03:46 UTC, Sergey Belyashov
Details
files/ogre-no-samples.patch (ogre-no-samples.patch,334 bytes, patch)
2006-06-28 03:49 UTC, Sergey Belyashov
Details | Diff
Patch fixing segfault for demo DeferredShading (ogre-1.2.1-deferredshading-double-precision.patch,1.64 KB, patch)
2006-06-29 11:17 UTC, Sergey Belyashov
Details | Diff
ogre-1.2.1-r1.ebuild (ogre-1.2.1-r1.ebuild,2.69 KB, text/plain)
2006-06-29 22:29 UTC, Sergey Belyashov
Details
files/ogre-1.2.1-config-disable-samples.patch (ogre-1.2.1-config-disable-samples.patch,1.22 KB, patch)
2006-06-29 22:30 UTC, Sergey Belyashov
Details | Diff
files/ogre-1.2.1-pkgconfig-double-precision.patch (ogre-1.2.1-pkgconfig-double-precision.patch,973 bytes, patch)
2006-06-29 22:30 UTC, Sergey Belyashov
Details | Diff
files/ogre-1.2.1-sdl-isfullscreen-freesurface.patch (ogre-1.2.1-sdl-isfullscreen-freesurface.patch,1.15 KB, patch)
2006-06-29 22:30 UTC, Sergey Belyashov
Details | Diff
dev-games/ogre-1.2.2_p1-r1.ebuild (ogre-1.2.2_p1-r1.ebuild,2.79 KB, text/plain)
2006-07-28 09:33 UTC, Sergey Belyashov
Details
dev-games/ogre/files/ogre-1.2.1-sdl-isfullscreen.patch (ogre-1.2.1-sdl-isfullscreen.patch,510 bytes, patch)
2006-07-28 09:37 UTC, Sergey Belyashov
Details | Diff
dev-games/ogre-1.2.2_p1-r1.ebuild (ogre-1.2.2_p1-r1.ebuild,3.11 KB, text/plain)
2006-07-30 07:05 UTC, Sergey Belyashov
Details
files/ogre-pkgconfig-exthash.patch (ogre-pkgconfig-exthash.patch,474 bytes, patch)
2006-07-30 07:06 UTC, Sergey Belyashov
Details | Diff
files/ogre-sdl-cfgtk.patch (ogre-sdl-cfgtk.patch,434 bytes, patch)
2006-07-30 11:21 UTC, Sergey Belyashov
Details | Diff
dev-games/ogre-1.2.2_p1-r1.ebuild (ogre-1.2.2_p1-r1.ebuild,3.10 KB, text/plain)
2006-07-30 11:27 UTC, Sergey Belyashov
Details
dev-games/ogre-1.2.3.ebuild (ogre-1.2.3.ebuild,2.79 KB, text/plain)
2006-09-21 06:31 UTC, Sergey Belyashov
Details
files/ogre-1.2.1-config-disable-samples.patch (ogre-1.2.1-config-disable-samples.patch,1.26 KB, patch)
2006-10-10 04:30 UTC, Sergey Belyashov
Details | Diff
dev-games/ogre-1.2.4.ebuild (ogre-1.2.4.ebuild,3.28 KB, text/plain)
2006-11-15 05:06 UTC, Sergey Belyashov
Details
dev-games/ogre-1.2.4.ebuild (ogre-1.2.4.ebuild,2.80 KB, text/plain)
2006-11-15 05:14 UTC, Sergey Belyashov
Details
dev-games/ogre-1.2.4-r1.ebuild (ogre-1.2.4-r1.ebuild,3.32 KB, patch)
2006-11-27 07:53 UTC, Sergey Belyashov
Details | Diff
files/cegui-0.5.0.patch (cegui-0.5.0.patch,3.70 KB, patch)
2006-11-27 07:53 UTC, Sergey Belyashov
Details | Diff
dev-games/ogre-1.2.5.ebuild (ogre-1.2.5.ebuild,2.90 KB, text/plain)
2007-01-27 13:03 UTC, Sergey Belyashov
Details
dev-games/ogre-1.2.5.ebuild (ogre-1.2.5.ebuild,2.90 KB, text/plain)
2007-01-27 13:53 UTC, Sergey Belyashov
Details
output of applying the patch (ogre-1.2.1-config-disable-samples.patch-25136.out,6.83 KB, text/plain)
2007-02-01 11:49 UTC, ville
Details
files/ogre-1.2.1-config-disable-samples.patch (ogre-1.2.1-config-disable-samples.patch,1.22 KB, patch)
2007-02-01 19:26 UTC, Sergey Belyashov
Details | Diff
files/ogre-1.2.1-config-disable-samples.patch (ogre-1.2.1-config-disable-samples.patch,1.60 KB, patch)
2007-02-07 19:28 UTC, Sergey Belyashov
Details | Diff
files/cegui-0.5.0.patch (cegui-0.5.0.patch,3.70 KB, patch)
2007-02-07 19:29 UTC, Sergey Belyashov
Details | Diff
changes which need for install samples for ogre-1.4.2 (ogre-1.4.2.ebuild-samples.patch,2.07 KB, patch)
2007-06-22 17:48 UTC, Sergey Belyashov
Details | Diff
dev-games/ogre-1.4.2.ebuild (ogre-1.4.2.ebuild,2.58 KB, text/plain)
2007-06-22 17:52 UTC, Sergey Belyashov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Belyashov 2006-06-26 12:15:54 UTC
I test ogre-1.2.1.ebuild on both AMD64 (3 machines with video nvidia) and x86 (5 machines with video: nvidia, radeon, and i810) platforms. My game project and examples works fine. But ebuild committed to portage is without ~amd64 keyword... Why?!? There is no libglademm dependency which is -amd64. And it is no reasons to add ~amd64 to KEYWORDS. IMHO.
----------------------------------------------------------
System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.15
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
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/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/X11 /etc/env.d /etc/gconf /etc/init.d /etc/pam.d /etc/revdep-rebuild /etc/terminfo /etc/udev"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
gentoo.mirror"
LANG="ru_RU.UTF-8"
LINGUAS="en ru"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --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="X a52 aac acpi alsa amd64 arts audiofile avi bash-completion bitmap-fonts browserplugin bzip2 cdr cg cli crypt curl cvs dbus devil dga dri dts dvd dvdr dvdread emboss encode esd ffmpeg firefox flac foomaticdb fortran gif glut gmp gnome gpm graphviz gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 isdnlog java jpeg kde kdeenablefinal lcms libcaca lm_sensors logrotate lzw lzw-tiff mad mbox mikmod mmap mng motif mozilla mp3 mpeg mplayer nas ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl oss pam pam_console pcre pdflib perl png ppds pppd python qt quicktime rdesktop readline reflection rtc sdl session slang spell spl ssl subversion tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode urandom usb userlocales utf8 v4l2 vcd vorbis wmf xanim xerces-c xine xml xml2 xmms xorg xpm xv xvid xvmc zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_en linguas_ru userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sergey Belyashov 2006-06-26 12:18:23 UTC
Sorry, I make mistake in last sentence. Must be:
"And it is no reasons to remove ~amd64 from KEYWORDS. IMHO."
Comment 2 Michael Weyershäuser 2006-06-26 17:57:35 UTC
We can't test every ebuild in portage whether it works on AMD64 or not, we don't have the manpower for that (and it wouldn't make sense). We rely on users telling us "this works for me" or "this should work on AMD64 beccause the author says so" so we can concentrate on packages there is actually a demand for.

Testing ogre-1.2.1 on ~amd64 I came across a problem when building with USE="cegui cg devil double-precision examples openexr":

x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/crtbeginS.o  .libs/OgreSDLConfig.o .libs/OgreSDLInput.o .libs/OgreSDLTimer.o .libs/OgreSDLPlatform.o  -Wl,--rpath -Wl,/usr/lib/opengl/xorg-x11/lib -L/var/tmp/portage/ogre-1.2.1/image//usr/lib/opengl/xorg-x11/lib -L/usr/lib/opengl/xorg-x11/lib -lGL -L/usr/lib -L/var/tmp/portage/ogre-1.2.1/image//usr/lib -lGLU -L/var/tmp/portage/ogre-1.2.1/image//usr/lib64 -L/usr/lib64 -lOgreMain -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../ -L/var/tmp/portage/devil-1.6.7-r1/work/DevIL-1.6.7/src-IL/src -lCg -lILU -lIL -lz -ldl -lSDL -lpthread -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/crtn.o  -march=k8 -msse3 -Wl,-z -Wl,defs -Wl,-soname -Wl,libOgrePlatform.so -o .libs/libOgrePlatform.so
.libs/OgreSDLInput.o: In function `Ogre::SDLInput::processBufferedMouse()':
OgreSDLInput.cpp:(.text+0x8de): undefined reference to `Ogre::Cursor::addToX(double)'
OgreSDLInput.cpp:(.text+0x90e): undefined reference to `Ogre::Cursor::addToY(double)'
collect2: ld returned 1 exit status
libtool: install: error: relink `libOgrePlatform.la' with the above command before installing it
make[5]: *** [install-platformLTLIBRARIES] Error 1
make[5]: Leaving directory `/var/tmp/portage/ogre-1.2.1/work/ogrenew/PlatformManagers/SDL/src'
make[4]: *** [install-am] Error 2
make[4]: Leaving directory `/var/tmp/portage/ogre-1.2.1/work/ogrenew/PlatformManagers/SDL/src'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/var/tmp/portage/ogre-1.2.1/work/ogrenew/PlatformManagers/SDL/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/ogre-1.2.1/work/ogrenew/PlatformManagers/SDL'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ogre-1.2.1/work/ogrenew/PlatformManagers'
make: *** [install-recursive] Error 1

Without any additional USE flags enabled (only sdl) it compiled fine for me.

gentoo ogre # emerge --info
Portage 2.1.1_pre1-r2 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-suspend2-r7-Dudebox-Edition x86_64)
=================================================================
System uname: 2.6.16-suspend2-r7-Dudebox-Edition x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59d
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -msse3"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage_overlay"
SYNC="rsync://server/gentoo-portage"
USE="amd64 X alsa apache2 arts avi berkdb bitmap-fonts cli crypt cups dri eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly opengl pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype-fonts type1-fonts unicode usb xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de userland_GNU video_cards_dummy"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 SpanKY gentoo-dev 2006-06-26 18:27:44 UTC
partially works is not acceptable

last time i tried on amd64, a bunch of the demos would simply segfault
Comment 4 Sergey Belyashov 2006-06-27 13:58:02 UTC
I try to emerge ogre with USE="double-precision threads examples cg devil sdl". My first result is same as Michael Weyersh
Comment 5 Sergey Belyashov 2006-06-27 13:58:02 UTC
I try to emerge ogre with USE="double-precision threads examples cg devil sdl". My first result is same as Michael Weyershäuser. And I wrote bug to ogre's forum (http://www.ogre3d.org/phpBB2/viewtopic.php?t=21849).
After I try to unmerge previous ogre version and remerge with flags shown above. OGRE emerges correctly!!! I try to run all of provided examples. All works properly except DeferredShading (it segfaults with "double free or corruption").
Later I 'll try to test ogre with all possible USE flags enable and report results. 

none: My video driver is nvidia-glx-1.0.8756 (media-video/nvidia-kernel-1.0.8756).
Comment 6 SpanKY gentoo-dev 2006-06-27 20:11:48 UTC
ive built ogre many times in the past on my amd64, but that doesnt make it usuable

re-open the bug after you've done some real testing
Comment 7 Sergey Belyashov 2006-06-28 03:43:49 UTC
I wrote new ebuild version which supports USE-flag "doc" and fix some stupid bugs (only for doc and samples).
I test on one of my AMD64 boxes this ebuild. Tests: BSP, Compositor, FracialAnimation, Gui, OceanDemo does not run in all cases. Common error: "Unknown". BSP does not work because I haven't quake3 installed. And when I say "all passes" You must read as: "all passed except BSP, Compositor...".

Results of tests (samples which run WITHOUT errors I do not post here):

- USE="cg devil examples sdl cegui doc double-precision openexr threads"
    DeferredShading: ***double free or corruption

- USE="cg devil examples sdl cegui doc double-precision -openexr -threads"
    DeferredShading: ***double free or corruption

- USE="cg devil examples sdl -cegui doc double-precision -openexr threads"
    DeferredShading: ***double free or corruption

- USE="cg devil examples sdl cegui doc double-precision -openexr threads"
    DeferredShading: ***double free or corruption

- USE="cg devil examples sdl -cegui -doc -double-precision -openexr -threads"
    all passed

- USE="-cg devil examples -sdl cegui doc -double-precision -openexr -threads"
    CelShading - no main scene, only overlays
    Fresnel - no water
    Grass - segfault

- USE="cg devil examples -sdl cegui doc -double-precision -openexr -threads"
    all passed

- USE="cg devil examples sdl cegui doc -double-precision -openexr -threads"
    all passed

- USE="cg -devil examples sdl -cegui -doc -double-precision -openexr -threads"
    all passed without textures (all work, but were yellow/black as zebra)

DeferredShading only fails if double-precision enabled. IMHO, this is not AMD64 specific bug.

I think, that only Compositor, FacialAnimation, Gui, and OceanDemo contain errors which cause problems on AMD64. But OGRE is not only these demos. (my project for example works fine) ;-)

Also. It is impossible (in some cases) to install ogre when previous instance exists in system. To protect people time (compilation is very long) I add to ebuild checking for this cause. Also I add simple patch which decrease building time when examples not needed.

If You try to repeat that all do not forget to change /usr/share/OGRE/Samples/bin/plugins.cfg (/usr/local to /usr) after each ogre emerging. You must create /usr/share/OGRE/Samples/bin/ogre.cfg (with write rights) manually if want to run samples without copy to temporary directory.
--------------------------------------------------------------------------
Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.15
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
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/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://192.168.14.25/pub/gentoo"
LANG="ru_RU.UTF-8"
LINGUAS="en ru"
MAKEOPTS="-j8 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://is-server/gentoo-portage"
USE="X a52 acpi alsa amd64 arts avi bash-completion bitmap-fonts browserplugin bzip2 cdr cg cli crypt cups curl dbus devil dga dri dts dvd dvdr dvdread emboss encode esd expat ffmpeg firefox flac foomaticdb freetype gdbm gif gmp gnome gpm graphviz gs gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 isdnlog java javascript jpeg jpeg2k kde kdeenablefinal lcms lm_sensors logrotate lzw lzw-tiff mad mbox mikmod mmap mng motif mozilla mp3 mpeg mplayer nas nasm ncurses network nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam pam_console pcre pdflib perl png pppd python qt quicktime readline reflection rtc samba sdl session slang slp spell spl ssl subversion tcpd theora threads tiff timidity truetype truetype-fonts type1-fonts unicode usb userlocales v4l2 vorbis wmf xine xml xml2 xmms xorg xpm xv xvid xvmc zlib elibc_glibc kernel_linux linguas_en linguas_ru userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

P.S.: Is it Real testing?
Comment 8 Sergey Belyashov 2006-06-28 03:46:46 UTC
Created attachment 90347 [details]
new ebuild version

Ebuild which I use.
Comment 9 Sergey Belyashov 2006-06-28 03:49:15 UTC
Created attachment 90349 [details, diff]
files/ogre-no-samples.patch

this patch used by my ebuild for decrease compilation time when no examples needed.
Comment 10 Simon Stelling (RETIRED) gentoo-dev 2006-06-28 03:51:34 UTC
As long as there are segfaults and double frees, it's not really material for ~amd64. It doesn't matter whether it is arch-specific or not, I just don't like adding keywords to something that does only work partially. If you can provide a patch which fixes these issues, I'm more than happy to look at it again.
Comment 11 SpanKY gentoo-dev 2006-06-28 19:29:18 UTC
Comment on attachment 90349 [details, diff]
files/ogre-no-samples.patch

this could be done in such a way to send upstream as a configure flag --enable-examples/--disable-examples
Comment 12 Sergey Belyashov 2006-06-29 11:17:12 UTC
Created attachment 90450 [details, diff]
Patch fixing segfault for demo DeferredShading

This patch fixes segfault of DeferredShading demo in double-precision mode. This is not amd64 bug. And I sent it upstream.
Comment 13 Simon Stelling (RETIRED) gentoo-dev 2006-06-29 11:46:50 UTC
cool, thanks. i opened bug 138515 to track the issue seperately
Comment 14 Sergey Belyashov 2006-06-29 22:29:15 UTC
Created attachment 90505 [details]
ogre-1.2.1-r1.ebuild

This ebuild accumulates all my bug fixing and functionality adding patches.

I add to this ebuild support for "--disable-samples" key which be added by ogre-1.2.1-config-disable-samples.patch.

To this ebuild is added some SDL patch which reduces segfault possibility and provides isFullScreen method implementation. This patch is not amd64 specific.

To this ebuild added config patch which adds to OGRE.pc (using by pkg-config) -DSOGRE_DOUBLE_PRECISION key when configure ran with --enable-double key. Else it is not possible to determine necessity of this key.
Comment 15 Sergey Belyashov 2006-06-29 22:30:00 UTC
Created attachment 90506 [details, diff]
files/ogre-1.2.1-config-disable-samples.patch
Comment 16 Sergey Belyashov 2006-06-29 22:30:25 UTC
Created attachment 90507 [details, diff]
files/ogre-1.2.1-pkgconfig-double-precision.patch
Comment 17 Sergey Belyashov 2006-06-29 22:30:56 UTC
Created attachment 90508 [details, diff]
files/ogre-1.2.1-sdl-isfullscreen-freesurface.patch
Comment 18 Sergey Belyashov 2006-06-29 22:35:45 UTC
Oh. I forget to write that all of this patches  I sent upsream (to the patch tracker).
Comment 19 Sergey Belyashov 2006-06-30 01:14:31 UTC
patch which add --disable-samples I cannot not send to OGRE developers because in they cvs same already presents.
Comment 20 Marçal Juan Llaó 2006-07-02 17:09:00 UTC
The ebuild for version 1.2.1 can't emerge with "double-precision" use flag. Is solved with "files/ogre-1.2.1-pkgconfig-double-precision.patch" patch?

I can't compile the basic application due to a undefined reference: "/home/marcalj/marcalj/Programacio/ogre/tutorial1/src/ExampleFrameListener.h:71: undefined reference to `Ogre::StringConverter::toString(float, unsigned short, unsigned short, char, std::_Ios_Fmtflags)'

And some people solved this with 1.0.X version without double-precision.
Thanks.

PD: I use x86.
Comment 21 Sergey Belyashov 2006-07-03 00:53:44 UTC
(In reply to comment #19)
> The ebuild for version 1.2.1 can't emerge with "double-precision" use flag. Is
> solved with "files/ogre-1.2.1-pkgconfig-double-precision.patch" patch?
> 
> I can't compile the basic application due to a undefined reference:
> "/home/marcalj/marcalj/Programacio/ogre/tutorial1/src/ExampleFrameListener.h:71:
> undefined reference to `Ogre::StringConverter::toString(float, unsigned short,
> unsigned short, char, std::_Ios_Fmtflags)'
> 
> And some people solved this with 1.0.X version without double-precision.
> Thanks.
> 
> PD: I use x86.
> 

Patch files/ogre-1.2.1-pkgconfig-double-precision.patch adds to OGRE.pc to the CFLAGS "-DOGRE_DOUBLE_PRECISION" flag (when used double-precision). To compile your basic appication (do not forget to make OGRE before with above patch) try use:
g++ `pkg-config --cflags` `pkg-config --libs` <source.name.cpp>
Comment 22 Marçal Juan Llaó 2006-07-03 04:05:01 UTC
Wow, I suppose that the ebuild for version 1.2.1 works great compiling with x86 and DOUBLE_PRECISION...

I can resolve the issue with this code in the "SampleApp.cpp"

#define OGRE_DOUBLE_PRECISION 1

I haven't to recompile with the patch.

Thanks for all.
Comment 23 Sergey Belyashov 2006-07-28 09:33:04 UTC
Created attachment 92933 [details]
dev-games/ogre-1.2.2_p1-r1.ebuild

Modified ebuild for current stable version - 1.2.2_p1.
This ebuild use next additional patches:
ogre-1.2.1-config-disable-samples.patch
ogre-1.2.1-deferredshading-double-precision.patch
ogre-1.2.1-pkgconfig-double-precision.patch
ogre-1.2.1-sdl-isfullscreen.patch
Comment 24 Sergey Belyashov 2006-07-28 09:37:02 UTC
Created attachment 92934 [details, diff]
dev-games/ogre/files/ogre-1.2.1-sdl-isfullscreen.patch

This patch will be included in next versions of ogre-1.2
This is not a bug fix. It is enhancement only.
Comment 25 Sergey Belyashov 2006-07-28 09:58:47 UTC
All patches listen here (except ogre-1.2.1-config-disable-samples.patch) at this time are included to 1.2 cvs branch (will be in next ogre versions).

All non CEGUI demos emerged by this ebuild are works fine.

Note: this ebuild contain some "hacks" which sets permissions 666 to the demo config files. It cause warnings when merging. But it makes possibility to start demos without copying to other directory.
Comment 26 Sergey Belyashov 2006-07-30 07:05:13 UTC
Created attachment 93058 [details]
dev-games/ogre-1.2.2_p1-r1.ebuild

More fixed ebuild.
Only one config file of samles have world writable rights (ogre.cfg).
It isn't need to edit /usr/share/OGRE/Samples/bin/plugins.cfg before start any Ogre demo.
Added support for -DEXT_HASH to the CFLAGS provided by pkg-config.
Comment 27 Sergey Belyashov 2006-07-30 07:06:10 UTC
Created attachment 93060 [details, diff]
files/ogre-pkgconfig-exthash.patch

needed by dev-games/ogre-1.2.2_p1-r1.ebuild
Comment 28 Sergey Belyashov 2006-07-30 11:21:54 UTC
Created attachment 93073 [details, diff]
files/ogre-sdl-cfgtk.patch

this patch needed for support GTK+ config window with SDL platform.
Comment 29 Sergey Belyashov 2006-07-30 11:27:53 UTC
Created attachment 93075 [details]
dev-games/ogre-1.2.2_p1-r1.ebuild

Added support for GTK+ config window (gtk USE flag).
Added dev-util/pkgconfig to dependencies.
Comment 30 Simon Stelling (RETIRED) gentoo-dev 2006-08-30 08:43:01 UTC
*** Bug 145565 has been marked as a duplicate of this bug. ***
Comment 31 Sergey Belyashov 2006-09-21 06:31:26 UTC
Created attachment 97636 [details]
dev-games/ogre-1.2.3.ebuild

New version of Ogre.
All my patches are included by developers.
I test it on pentium-m (i686), pentium4 (i686) and amd64 boxes. All works fine.
Comment 32 Sergey Belyashov 2006-10-10 04:30:54 UTC
Created attachment 99275 [details, diff]
files/ogre-1.2.1-config-disable-samples.patch

early I mark this patch obsolete, but it needed for latest ebuild
Comment 33 Ruf 2006-10-13 00:38:07 UTC
(In reply to comment #31)
> Created an attachment (id=99275) [edit]
> files/ogre-1.2.1-config-disable-samples.patch
> 
> early I mark this patch obsolete, but it needed for latest ebuild
> 

1.2.3 ebuild works fine as long as I don't specify SDL use flag. It compiles with SDL, but when we compile our project with 1.2.3, ogrelogo pic doesn't load, everything displayed is really really buggy (objects are missing textures, etc) and program simply hangs after displaying first frame. Without SDL flag our project runs smoothly and without any problems.

Btw, files/ogre-1.2.1-config-disable-samples.patch which was added lately, doesn't apply. Old patch works fine. It seems they differ only in line endings.

Portage 2.1.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.18-gentoo-1 x86_64)
=================================================================
System uname: 2.6.18-gentoo-1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.5
Last Sync: Fri, 13 Oct 2006 05:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="ru_RU.UTF-8"
LINGUAS="en ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --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="amd64 16bit 7zip X Xaw3d a52 aac aalib acl acpi alsa apache2 asf async audiofile bcmath beagle berkdb bidi bitmap-fonts bittorrent bonobo bzip2 c++ cairo calendar caps ccache cdda cddb cdparanoia cdr cdrom cegui cg cgi cjk cli cpudetection crypt css ctype cups curl curlwrappers custom-cflags cvs dbus dbx devil dga dio directfb dlloader dri dts dv dvb dvd dvdr dvdread dxr3 edl eds elibc_glibc emboss encode erandom ethereal evo examples exif expat extensions fam fastcgi fbcon ffmpeg fftw firefox flac fortran freetds ftp gb gd gdb gif gimp gimpprint ginac glitz glut gmail gmailtimestamps gmp gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal hyperwave-api iconv icq idn ieee1394 imagemagick imap imlib inifile innodb input_devices_keyboard input_devices_mouse interbase isdnlog java jpeg junit kde kdeenablefinal kernel_linux ladcca libcaca libedit libgda linguas_en linguas_ru live logitech-mouse lzo lzw lzw-tiff matroska mbox mcal memlimit mhash milter mime mmap mng mnogosearch mono mp3 mpeg mpi mpm-prefork msession msql mysql mysqli mythtv nas ncurses net netcdf nethack network nis nls nptl nptlonly nsplugin ntfs nvidia oci8 offensive openal openexr opengl oracle oscar pam pango pcntl pcre pda pdf perl pic png posix ppds pppd prelude python qdbm qt3 qt4 quicktime rar rc5 rdesktop readline recode reflection reiserfs rtc samba sasl scp sdl server session shared sharedmem simplexml slang slp soap sockets sounds speedo speex spell spl spreadsheet sql sqlite sse-filters ssl subtitles subversion svg sysvipc szip tcltk tcpd tga theora threads tidy tiff tokenizer transcode truetype truetype-fonts type1-fonts unicode usb userland_GNU v4l v4l2 vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa videos vorbis wifi wma wmf wxwindows xanim xattr xface xine xinerama xml xmlrpc xmms xorg xosd xpm xrandr xscreensaver xsl xv xvid xvmc zeo zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 34 Sergey Belyashov 2006-10-13 07:58:30 UTC
Is this problem present in standart demos?
Comment 35 Ruf 2006-10-14 10:42:29 UTC
(In reply to comment #33)
> Is this problem present in standart demos?
> 

I've tested 1.2.3 ebuild on my home machine - same bugs. I've also tested demos - they crash on startup in glibmm. After that I tried with -gtk and +sdl flags - our project worked and demos worked too. So problem seems to be in using both gtk and sdl flags. I'll be able to check -gtk flag on AMD64 box on monday if needed.

Info on this box:

Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.4-r3, 2.6.18-gentoo-1 i686)
=================================================================
System uname: 2.6.18-gentoo-1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 14 Oct 2006 17:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -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/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="ru_RU.UTF-8"
LINGUAS="en ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --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="x86 16bit 7zip X Xaw3d a52 aac aalib acl acpi alsa apache2 asf asm async audiofile bcmath beagle berkdb bidi bitmap-fonts bittorrent bonobo bzip2 c++ cairo calendar caps ccache cdda cddb cdparanoia cdr cdrom cegui cg cgi cjk cli cpudetection crypt css ctype cups curl curlwrappers custom-cflags cvs dbus dbx devil dga dio directfb dlloader dri dts dv dvb dvd dvdr dvdread dxr3 edl eds elibc_glibc emboss encode erandom ethereal evo examples exif expat extensions fam fastcgi fbcon ffmpeg fftw firefox flac fortran freetds ftp gb gd gdb gdbm gif gimp gimpprint ginac glitz glut gmail gmailtimestamps gmp gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtkhtml guile hal hyperwave-api iconv icq idn ieee1394 imagemagick imap inifile innodb input_devices_keyboard input_devices_mouse interbase isdnlog java jpeg junit kde kdeenablefinal kernel_linux ladcca libcaca libedit libgda linguas_en linguas_ru live logitech-mouse lzo mad matroska mbox mcal memlimit mhash mikmod milter mime mmap mmx mmxext mng mnogosearch mono mp3 mpeg mpi msession msql mysql mysqli mythtv nas ncurses net netcdf nethack network nis nls nptl nptlonly nsplugin ntfs nvidia oci8 oci8-instant-client offensive ogg openal openexr opengl oracle oscar pam pango pcntl pcre pda pdf perl pic png posix ppds pppd prelude python qdbm qt3 qt4 quicktime rar rc5 rdesktop readline real recode reflection reiserfs rtc samba sasl scp sdl server session shared sharedmem simplexml slang slp soap sockets sounds speedo speex spell spl spreadsheet sql sqlite sse sse-filters sse2 ssl subtitles subversion svg sybase sybase-ct sysvipc szip tcltk tcpd tga theora threads tidy tiff tokenizer transcode truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa videos vidix vorbis wifi win32codecs wma wmf wxwindows xanim xattr xface xine xinerama xml xmlrpc xmms xorg xosd xpm xrandr xscreensaver xsl xv xvid xvmc zeo zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 36 Sergey Belyashov 2006-10-15 11:45:44 UTC
Yes. I remember this bug.
I think that is common problem for my and official ebuilds (for both architectures). I don't know why and don't want to find this bug. May be it is Ogre bug.
You can simply disable gtk for ogre in /etc/portage/package.use.
Comment 37 Ruf 2006-10-16 02:15:10 UTC
(In reply to comment #35)
> Yes. I remember this bug.
> I think that is common problem for my and official ebuilds (for both
> architectures). I don't know why and don't want to find this bug. May be it is
> Ogre bug.
> You can simply disable gtk for ogre in /etc/portage/package.use.
> 

Yes, thats what I did. So I confirm 1.2.3 works well on both x86 and x86_64. May be its time to move it to 'testing' in portage?
Comment 38 Marçal Juan Llaó 2006-10-26 07:28:09 UTC
(In reply to comment #36)
> 
> Yes, thats what I did. So I confirm 1.2.3 works well on both x86 and x86_64.
> May be its time to move it to 'testing' in portage?
> 

Yes please! :)

Comment 39 Sergey Belyashov 2006-11-15 05:06:56 UTC
Created attachment 101973 [details]
dev-games/ogre-1.2.4.ebuild

ebuild for ogre-1.2.4
I test it only on one amd64 box. All tests (except quake3, because I have not necessary graphic files) and my project are running fine.
Comment 40 Sergey Belyashov 2006-11-15 05:14:34 UTC
Created attachment 101977 [details]
dev-games/ogre-1.2.4.ebuild
Comment 41 Guido 2006-11-24 09:16:11 UTC
FWIW: ogre-1.2.3 worked fine for me on amd64 as long as I did not enable the cegui use flag (emerge failed if cegui was enabled). I just upgraded to ogre-1.2.4 and so far it works just as well. I have not tried enabling the cegui use flag though.

BTW in my experience ogre is pretty useless without devil, maybe devil should be required in stead of optional?
Comment 42 Guido 2006-11-24 14:20:34 UTC
(In reply to comment #40)
Some extra info: ogre-1.2.4 fails to emerge with cegui-0.5.0, but it does emerge correctly with cegui-0.4.1. The current version check in the ebuild is not enough.
Comment 43 Sergey Belyashov 2006-11-27 07:53:21 UTC
Created attachment 102845 [details, diff]
dev-games/ogre-1.2.4-r1.ebuild

Fixed problem with CEGUI 0.5.0 (details here http://www.ogre3d.org/wiki/index.php/Update_Ogre_source_code_with_latest_Cegui_source_code )
Comment 44 Sergey Belyashov 2006-11-27 07:53:50 UTC
Created attachment 102846 [details, diff]
files/cegui-0.5.0.patch
Comment 45 Sergey Belyashov 2006-11-28 02:40:37 UTC
(In reply to comment #40)
> BTW in my experience ogre is pretty useless without devil, maybe devil should
> be required in stead of optional?

devil is optional. If you disable devil then you should provide your own image importer.
Comment 46 Chris Gianelloni (RETIRED) gentoo-dev 2007-01-09 22:56:31 UTC
OK.  Let's clarify the mess above.

Does this work on AMD64, and if so, exactly which patches/changes are required for it to do so?
Comment 47 Sergey Belyashov 2007-01-10 13:33:46 UTC
(In reply to comment #46)
> OK.  Let's clarify the mess above.
> 
> Does this work on AMD64, and if so, exactly which patches/changes are required
> for it to do so?
> 

If you about devil then this question is not for me. I can only repeat my previous answer. I do not try to disable devil in last two versions. Previously disabling devil cause all demos does not work properly.

If you about AMD64 and ogre then I can answer: It works fine for me (on two amd64 boxes and five x86 boxes) without any patches (in this case may be problem with cegui-5.0, but it is common ogre problem) because I do not use cegui. Patches needed for disabling demos and fixing problem with cegui.

Patch files/ogre-1.2.1-config-disable-samples.patch adds --disable-samples option to configure which disables building of examples (compilation faster).

Patch files/cegui-0.5.0.patch solves problem with >=dev-games/cegui-0.5.0

You can simply ignore first of them. Second patch you can ignore too but may be problems with cegui >= 0.5.0.
Comment 48 Sergey Belyashov 2007-01-27 13:03:40 UTC
Created attachment 108276 [details]
dev-games/ogre-1.2.5.ebuild

ebuild for new version of ogre
Comment 49 Sergey Belyashov 2007-01-27 13:53:26 UTC
Created attachment 108281 [details]
dev-games/ogre-1.2.5.ebuild
Comment 50 ville 2007-01-30 22:24:32 UTC
Applying the files/ogre-1.2.1-config-disable-samples.patch
http://bugs.gentoo.org/attachment.cgi?id=99275 fails against the 1.2.5 sources.


// ville
Comment 51 Sergey Belyashov 2007-01-31 08:55:10 UTC
(In reply to comment #50)
> Applying the files/ogre-1.2.1-config-disable-samples.patch
> http://bugs.gentoo.org/attachment.cgi?id=99275 fails against the 1.2.5 sources.

Please post more information about it (error messages, logs and others). 
I retest it again and all works fine for me.
Comment 52 ville 2007-02-01 11:49:37 UTC
Created attachment 108842 [details]
output of applying the patch

output of applying the patch
Comment 53 ville 2007-02-01 11:53:38 UTC
Everything works for me with the following USE-flags and commenting out the files/ogre-1.2.1-config-disable-samples.patch from the ebuild http://bugs.gentoo.org/attachment.cgi?id=108281

USE="cegui devil openexr -cg -doc -double-precision -examples -gtk -sdl -test -threads"


// ville
Comment 54 Sergey Belyashov 2007-02-01 19:26:16 UTC
Created attachment 108888 [details, diff]
files/ogre-1.2.1-config-disable-samples.patch

My misstake. File #99275 contains some gabage which cause this error. I don't know where I take it...
Comment 55 ville 2007-02-04 17:48:05 UTC
Applying the patch in attachment 108888 [details, diff] disables the installation of CEGUI-OGRE.pc, libCEGUIOgreRenderer.so and probably other files required to build programs that use CEGUI with OGRE. This isn't intentional, it's supposed to only disable the building of samples, right?


// ville
Comment 56 Sergey Belyashov 2007-02-04 20:55:56 UTC
Yes. This is my mistake. Can you fix this patch?
Comment 57 Sergey Belyashov 2007-02-07 19:28:33 UTC
Created attachment 109451 [details, diff]
files/ogre-1.2.1-config-disable-samples.patch

Fixed problem with CEGUI
Comment 58 Sergey Belyashov 2007-02-07 19:29:43 UTC
Created attachment 109453 [details, diff]
files/cegui-0.5.0.patch

previous patch version conflicts with new ogre-1.2.1-config-disable-samples.patch
Comment 59 Christoph Mende (RETIRED) gentoo-dev 2007-06-15 18:15:12 UTC
Are the problems still present in ogre 1.4.2? I know it compiles with USE="cegui double-precision", but I can't really figure out how to run those samples
Comment 60 Sergey Belyashov 2007-06-16 06:24:32 UTC
To run samples you must change ebuild for proper installing. See src_unpack() and src_install() in my ogre-1.2.5.ebuild.
I do not try >ogre-1.2.5 because it do not support SDL, which I need.
As you see my ogre-1.2.5.ebuild do not applies any fixes except cegui. It is because these fixes applied by developers. So I think, ogre-1.4.2 should run fine on amd64.
Comment 61 Christoph Mende (RETIRED) gentoo-dev 2007-06-20 23:06:35 UTC
Well, that wasn't exactly helpful ;)
I kinda did what you changed in the ebuild manually inside the temporary build dir of ogre, which didn't quite work for me though, so I'd like to see someone else either running the tests or telling me how exactly they gotta be run
To your objections wrt SDL: ogre is not slotted and it seems like upstream won't continue the 1.2 series, so we're going to keyword the 1.4 series (if any at all)
Comment 62 Sergey Belyashov 2007-06-21 08:58:48 UTC
If you about these lines (part of src_install):
echo "" > Samples/Common/bin/ogre.cfg
sed -e 's,/usr/local,/usr,g' Samples/Common/bin/plugins.cfg >plugins.cfg.tmp
mv plugins.cfg.tmp Samples/Common/bin/plugins.cfg

This is optional part which creates possibility to run examples without changing any files and copying to temporary directory. You can skip these steps but you need change these files manually before first run.
Only examples installed by this ebuild needs these changes. No any other programms depends on them.
Comment 63 Sergey Belyashov 2007-06-22 17:48:42 UTC
Created attachment 122825 [details, diff]
changes which need for install samples for ogre-1.4.2
Comment 64 Sergey Belyashov 2007-06-22 17:52:14 UTC
Created attachment 122826 [details]
dev-games/ogre-1.4.2.ebuild

patched ogre-1.4.2.ebuild.
All demos installed by this ebuild (except BSP, because I have not Quake 3 installed) runs fine for me: Linux bsa 2.6.20-gentoo-r8 #3 SMP PREEMPT Sun Jun 10 16:12:29 MSD 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ AuthenticAMD GNU/Linux
Video: GeForce 6600 256MB
Comment 65 Guido 2007-06-25 20:52:31 UTC
(In reply to comment #64)
> Created an attachment (id=122826) [edit]
> dev-games/ogre-1.4.2.ebuild
> 
> patched ogre-1.4.2.ebuild.
> All demos installed by this ebuild (except BSP, because I have not Quake 3
> installed) runs fine for me: Linux bsa 2.6.20-gentoo-r8 #3 SMP PREEMPT Sun Jun
> 10 16:12:29 MSD 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
> AuthenticAMD GNU/Linux
> Video: GeForce 6600 256MB
> 

Works for me!
Comment 66 Yury Zhuravlev 2007-08-27 10:03:00 UTC
Hello.
in ogre-1.4.3(-r1),ogre-1.4.4 i see this bug on AMD64 and gcc 4.2.0:

/usr/bin/ld: ../../../RenderSystems/GL/src/atifs/src/.libs/libatifs.a(Compiler2Pass.o): relocation R_X86_64_PC32 against `vtable for Compiler2Pass' can not be used when making a shared object; recompile with -fPIC

I compile it without error. I add to C and CXX FLAGS: 
-fpic -fvisibility=default
and in econf:
--enable-shared --with-pic

--enable-static deleted.


http://www.ogre3d.org/phpBB2/viewtopic.php?p=236556&highlight=&sid=ce193664e1d3d7c4af509e6f4e2718c6
Comment 67 Christoph Brill (egore) (RESIGNED) 2007-09-20 21:00:01 UTC
Built completely fine with:

Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r6 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Timestamp of tree: Thu, 20 Sep 2007 17:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.muntinternet.net/pub/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/sunrise /usr/local/overlays/gnome-experimental /usr/local/overlays/java-overlay /usr/local/overlays/philantrop /usr/local/overlays/portage /usr/local/overlays/matsuu"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X a52 aac acl acpi adns aiglx alsa amd64 artworkextra avahi berkdb bitmap-fonts bluetooth cairo cegui cli cracklib crypt cups curl daap dbus devhelp device-mapper dri dts dvd eds epiphany exif extraengine fam ffmpeg firefox flac fontconfig foomaticdb fortran galago gdbm gedit gif gimp glade glitz glut gnome gphoto2 gpm gstreamer gtk guile hal hddtemp http ical iconv imlib inherit-graph inkjar ipv6 isdnlog java javascript joystick jpeg jpeg2k keyring lcms libnotify lm_sensors mad maildir midi mmx mmxext mono mp3 mpeg mpeg2 mudflap mysql mysqli ncurses nforce2 nls nptl nptlonly nsplugin obex ogg openal opengl openmp pam pcre pdf pdo perl php png postfix postscript ppds pppd pulseaudio python quicktime rar readline reflection samba scanner sdl session smp snmp sourceview spell spl sse sse2 ssl ssse3 subversion svg tagwriting tcpd tga theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb valgrind vorbis wmf x264 xorg xpm xv xvid zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="canon casio" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 68 Christoph Brill (egore) (RESIGNED) 2007-09-20 21:01:51 UTC
Sorry, forgot to note that I didn't use any ebuild from here but the one from portage using package.keywords
Comment 69 Nicolas Schlumberger 2007-10-12 17:21:51 UTC
I confirm, that ogre-1.4.5 build on amd64

emerge --info
Portage 2.1.3.12 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.23-kamikaze2 x86_64)
=================================================================
System uname: 2.6.23-kamikaze2 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
Timestamp of tree: Fri, 12 Oct 2007 00:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /usr/X11R6/bin/startx"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/mirror/gentoo/  http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive  --links  --safe-links  --perms  --times  --compress --force --whole-file   --delete  --delete-after  --stats  --timeout=180   --exclude='/distfiles' --exclude='/local'  --exclude='/packages' --exclude=/'overlay'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/overlay/sunrise /usr/portage/overlay/custom-kernels /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo caps cdr cli cracklib crypt cups dbus dga dri dvd dvdr dvdread emboss encode evo exif fam ffmpeg firefox flac foomaticdb fortran gdbm gif gnutls hal iconv ieee1394 ipv6 isdnlog jack java jikes jpeg kde kerberos libnotify lua mad mbox midi mikmod mime mmx mono mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp pam pcre pdf perl pic png pnp ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session snmp spell spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vim-syntax vorbis wifi x264 xine xml xorg xosd xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia v4l vesa"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 70 Samuli Suominen (RETIRED) gentoo-dev 2007-11-17 16:05:08 UTC
~amd64