Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234043 - app-emulation/vice: ebuild for new version 2.0
Summary: app-emulation/vice: ebuild for new version 2.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://www.viceteam.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 00:49 UTC by aeneas
Modified: 2008-08-13 13:11 UTC (History)
0 users

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


Attachments
Ebuild for app-emulation/vice 2.0 (vice-2.0.ebuild,2.41 KB, text/plain)
2008-08-06 00:51 UTC, aeneas
Details
Diff from vice-1.22 ebuild in portage to new 2.0 ebuild (vice-1.22-to-2.0.ebuild.diff,2.40 KB, patch)
2008-08-06 00:52 UTC, aeneas
Details | Diff
Patch to make the new PAL emulation work on gtk+ (vice-2.0-gnome-palemu.patch,723 bytes, patch)
2008-08-06 00:53 UTC, aeneas
Details | Diff
Patch to fix the gtk+ UI for big endian platforms (vice-2.0-gtk-bigendian-fix.patch,1.60 KB, patch)
2008-08-06 00:54 UTC, aeneas
Details | Diff
New metadata file with parsid local USE flag (metadata.xml,343 bytes, text/plain)
2008-08-06 00:55 UTC, aeneas
Details
DIFF from vice-1.22 ebuild metadata.xml in portage to new metadata.xml above (vice-1.22-to-2.0-metadata.xml.diff,399 bytes, patch)
2008-08-06 00:55 UTC, aeneas
Details | Diff
Resubmitted ebuild with ~x86 (vice-2.0.ebuild,2.41 KB, text/plain)
2008-08-06 01:01 UTC, aeneas
Details
Diff from vice-1.22 ebuild in portage to resubmitted 2.0 ebuild (vice-1.22-to-2.0.ebuild.diff,2.40 KB, patch)
2008-08-06 01:02 UTC, aeneas
Details | Diff
Revised ebuild (vice-2.0.ebuild,2.14 KB, text/plain)
2008-08-10 11:56 UTC, aeneas
Details
Diff from vice-1.22 ebuild in portage to revised 2.0 ebuild (vice-1.22-to-2.0.ebuild.diff,2.86 KB, text/plain)
2008-08-10 11:57 UTC, aeneas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aeneas 2008-08-06 00:49:35 UTC
VICE 2.0 is out (http://www.viceteam.org);  ebuild attached.



Reproducible: Always

Steps to Reproduce:
Comment 1 aeneas 2008-08-06 00:51:45 UTC
Created attachment 162329 [details]
Ebuild for app-emulation/vice 2.0

Changes from vice-1.22 ebuild currently in portage:
 - Version bump to 2.0
 - USE flags:
     - gif, jpeg, xv, dga and xrandr flags added (these functionalities, and the dependencies they pulled in, were automatically enabled and unable to be deselected in the 1.22 ebuild, very un-gentoo-like)
     - ipv6, mmap, oss, zlib and X flags added
     - ffmpeg reinstated for new version (removed from ebuilds in portage due to bug #187699; this bug does not apply to this version, which builds correctly with ffmpeg support against media-video/ffmpeg in stable portage)
     - parsid - new local use flag to enable experimental support for parallel port SID hardware
 - Patches:
     gnome-palemu.patch: makes new PAL emulation work on gtk+
     gtk-bigendian-fix: fix gtk+ UI for big-endian platforms
 
 This ebuild works fine (compiles and runs) as-is.  Has been tested on x86 and amd64.
Comment 2 aeneas 2008-08-06 00:52:31 UTC
Created attachment 162330 [details, diff]
Diff from vice-1.22 ebuild in portage to new 2.0 ebuild
Comment 3 aeneas 2008-08-06 00:53:35 UTC
Created attachment 162331 [details, diff]
Patch to make the new PAL emulation work on gtk+
Comment 4 aeneas 2008-08-06 00:54:03 UTC
Created attachment 162332 [details, diff]
Patch to fix the gtk+ UI for big endian platforms
Comment 5 aeneas 2008-08-06 00:55:00 UTC
Created attachment 162333 [details]
New metadata file with parsid local USE flag
Comment 6 aeneas 2008-08-06 00:55:39 UTC
Created attachment 162335 [details, diff]
DIFF from vice-1.22 ebuild metadata.xml in portage to new metadata.xml above
Comment 7 aeneas 2008-08-06 01:01:10 UTC
Created attachment 162336 [details]
Resubmitted ebuild with ~x86

...aaaand I've just realised that the ebuild I attached above is keyworded x86 instead of ~x86.  Corrected version attached (this is the only difference between this attachment and attachment #1 [details]).
Comment 8 aeneas 2008-08-06 01:02:36 UTC
Created attachment 162337 [details, diff]
Diff from vice-1.22 ebuild in portage to resubmitted 2.0 ebuild 

Diff from current 1.22 ebuild in portage to resubmitted 2.0 ebuild (with ~x86 instead of x86).
Comment 9 aeneas 2008-08-10 11:56:05 UTC
Created attachment 162615 [details]
Revised ebuild

After communication with a VICE developer (thanks Hannu!) and some in-depth testing, I have tidied up the ebuild a bit.

Changes from previously submitted version:
- sed patches in src_unpack() removed, as they are not needed for this version
- gnome no longer relies on libgnomeui and all the extra packages it pulls in; instead relies only on gtk+:2, atk and pango
- libXaw is no longer required if building with gnome USE flag
Comment 10 aeneas 2008-08-10 11:57:38 UTC
Created attachment 162617 [details]
Diff from vice-1.22 ebuild in portage to revised 2.0 ebuild

Diff from current 1.22 ebuild in portage to revised 2.0 ebuild.

The revised ebuild works (builds and runs) as-is; tested on x86 and amd64.
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2008-08-10 20:39:00 UTC
Why would parsid not just always be enabled?
Comment 12 aeneas 2008-08-11 12:36:32 UTC
(In reply to comment #11)
> Why would parsid not just always be enabled?
 
Because it's an experimental piece of code that most users will have no use for (but those users who do have a use for it will most definitely want it)?

If the consensus/developer decision is to not have a parsid USE flag, then I'm fine with it going that way - I know there are arguments both ways.  I did think about it, but decided on balance that it was worth a separate USE flag, especially considering its experimental nature and limited use (and high desirability for those who can use it).  I am happy to be corrected, though :-)
Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2008-08-11 19:33:12 UTC
Ok, it's in portage.

I turned on parsid unconditionally since I don't see a down-side right now and it doesn't pull in any additional deps.  If it doesn't work out, the use flag can be added later.

Nice work on the ebuild and patches.
Comment 14 Gregg Casillo 2008-08-12 18:10:51 UTC
Ran into a ffmpeg related snafu while compiling. With ffmpeg-0.4.9_p20080328 installed, I get this error:

x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fomit-frame-pointer -I/usr/kde/3.5/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wl,-O1 -o xcbm2  alarm.o attach.o autostart.o charset.o clkguard.o clipboard.o cmdline.o cbmdos.o cbmimage.o color.o crc32.o datasette.o debug.o dma.o emuid.o event.o findpath.o fliplist.o gcr.o info.o init.o initcmdline.o interrupt.o ioutil.o joystick.o kbdbuf.o keyboard.o lib.o libm_math.o log.o machine-bus.o machine.o main.o mouse.o network.o palette.o ram.o rawfile.o resources.o romset.o screenshot.o snapshot.o sound.o sysfile.o translate.o traps.o util.o vsync.o zfile.o zipcode.o ../src/cbm2/libcbm2.a ../src/drive/iecieee/libdriveiecieee.a ../src/drive/ieee/libdriveieee.a ../src/drive/libdrive.a ../src/parallel/libparallel.a ../src/vdrive/libvdrive.a ../src/sounddrv/libsounddrv.a ../src/gfxoutputdrv/libgfxoutputdrv.a ../src/printerdrv/libprinterdrv.a ../src/rs232drv/librs232drv.a ../src/monitor/libmonitor.a ../src/diskimage/libdiskimage.a ../src/fsdevice/libfsdevice.a ../src/tape/libtape.a ../src/imagecontents/libimagecontents.a ../src/fileio/libfileio.a ../src/serial/libserial.a ../src/core/libcore.a ../src/sid/libsid.a ../src/crtc/libcrtc.a ../src/vicii/libvicii.a ../src/raster/libraster.a ../src/video/libvideo.a ../src/arch/unix/libarch.a ../src/arch/unix/gui/libarchgui.a ../src/arch/unix/x11/libx11ui.a ../src/arch/unix/x11/xaw/libxawui.a ../src/arch/unix/x11/xaw/widgets/libwidgets.a ../src/arch/unix/libarch.a ../src/arch/unix/gui/libarchgui.a ../src/arch/unix/x11/libx11ui.a      -lXrandr -lXxf86vm -lGL -lXaw -lXpm -lXmu -lXt -lXv -lXext -lX11 -lSM -lICE -lbsd -lnsl     -lasound -lmp3lame -lavformat -lavcodec -lavutil   -lreadline -ljpeg -lgif -lpng  -lz -lbsd -lnsl  -lbsd -lm  -L/usr/kde/3.5/lib64 -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 -lSDL -lpthread
../src/arch/unix/libarch.a(ffmpeglib.o): In function `ffmpeglib_open':
ffmpeglib.c:(.text+0x3b): undefined reference to `img_convert'
collect2: ld returned 1 exit status
make[3]: *** [xvic] Error 1
make[3]: *** Waiting for unfinished jobs....
../src/arch/unix/libarch.a(ffmpeglib.o): In function `ffmpeglib_open':
ffmpeglib.c:(.text+0x3b): undefined reference to `img_convert'
collect2: ld returned 1 exit status
make[3]: *** [xplus4] Error 1
../src/arch/unix/libarch.a(ffmpeglib.o): In function `ffmpeglib_open':
ffmpeglib.c:(.text+0x3b): undefined reference to `img_convert'
collect2: ld returned 1 exit status
make[3]: *** [x64] Error 1
../src/arch/unix/libarch.a(ffmpeglib.o): In function `ffmpeglib_open':
ffmpeglib.c:(.text+0x3b): undefined reference to `img_convert'
collect2: ld returned 1 exit status
make[3]: *** [xpet] Error 1
../src/arch/unix/libarch.a(ffmpeglib.o): In function `ffmpeglib_open':
ffmpeglib.c:(.text+0x3b): undefined reference to `img_convert'
collect2: ld returned 1 exit status
make[3]: *** [xcbm2] Error 1
../src/arch/unix/libarch.a(ffmpeglib.o): In function `ffmpeglib_open':
ffmpeglib.c:(.text+0x3b): undefined reference to `img_convert'
collect2: ld returned 1 exit status
make[3]: *** [x128] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-emulation/vice-2.0/work/vice-2.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-emulation/vice-2.0/work/vice-2.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/vice-2.0/work/vice-2.0/src'
make: *** [all-recursive] Error 1

For reference, my emerge info:

Portage 2.2_rc7 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r6-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-glibc2.2.5
Timestamp of tree: Tue, 12 Aug 2008 12:45:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.62-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -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/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ http://files.gentoo.org http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://prometheus.cs.wmich.edu/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9"
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 arts audiofile bash-completion berkdb bzip2 cddb cdparanoia cdr cli cracklib crypt ctype dvd dvdread encode ffmpeg flac gdbm gif iconv imap imlib innodb ivtv joystick jpeg kde kdeenablefinal kdehiddenvisibility kdexdeltas libwww lirc lm_sensors mad maildir matroska midi mime mjpeg mmx mng modperl mp3 mpeg mudflap multilib mysql na_dd na_icons ncurses nfs nls nptl nptlonly nvidia ogg openal opengl openmp pcre perl php png python qt quicktime readline samba sasl sdl spamassassin speex spl sse sse2 ssl svg sysfs tcpd theora tiff transcode truetype unicode usb v4l v4l2 vhosts vim-syntax vorbis vpopmail x264 xine xml xorg xpm 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 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 negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 15 Gregg Casillo 2008-08-12 18:12:10 UTC
Correction, I have ffmpeg-0.4.9_p20080326 installed.
Comment 16 aeneas 2008-08-13 13:11:53 UTC
(In reply to comment #14)

Not sure if this bug should be reopened or if a new one should be started for this issue?

Anyway it appears that bug #187699 rears its ugly head again. Building/running against ffmpeg-0.4.9_p20070616 (the current stable version) works fine, but ffmpeg-0.4.9_p20080326 seems to have changed something (probably) involving swscaler which has caused this bug to resurface (can't work out exactly what, at least not yet).

As per the resolution of bug #187699, the only course of action seems to be to remove the ffmpeg flag (and change src_compile in the ebuild to include --disble-ffmpeg).  Although the current ebuild works fine with the current stable portage tree, it doesn't work with the up-and-coming ffmpeg versions (at least not as they stand).

Oh, and mea culpa:  using the ffmpeg flag should specify media-video/ffmpeg as a dependency (which the current 2.0 ebuild does not, which is entirely my bad).  Vice will build and run quite happily with --enable-ffmpeg without the ffmpeg libraries installed (albeit without the ffmpeg functionality in the finished build, despite what the build output might suggest) - it doesn't complain or leave any indication that this is happening, though.