Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174191 - Request NEW ebuild for Aegisub
Summary: Request NEW ebuild for Aegisub
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.malakith.net/aegiwiki/Unix...
Whiteboard: [sunrise-overlay]
Keywords: EBUILD, InOverlay
: 213561 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-11 18:38 UTC by Fatal1ty
Modified: 2012-02-02 17:57 UTC (History)
13 users (show)

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


Attachments
media-video/aegisub-9999.ebuild (aegisub-9999.ebuild,1.97 KB, text/plain)
2008-03-16 10:54 UTC, juantxorena@gmail.com
Details
media-video/aegisub-2.2.0_pre2069.ebuild (aegisub-2.2.0_pre2069.ebuild,1.98 KB, text/plain)
2008-03-16 12:13 UTC, juantxorena@gmail.com
Details
media-video/aegisub-2.1_pre1981.ebuild (aegisub-2.1_pre1981.ebuild,1.73 KB, text/plain)
2008-03-16 20:01 UTC, juantxorena@gmail.com
Details
aegisub.png (aegisub.png,2.38 KB, image/png)
2008-03-16 20:02 UTC, juantxorena@gmail.com
Details
yet another aegisub ebuild. (aegisub-9999.ebuild,1.62 KB, text/plain)
2008-07-20 11:36 UTC, Vladimir Smirnov (RETIRED)
Details
1-st patch (autogen.patch,743 bytes, patch)
2008-07-20 11:36 UTC, Vladimir Smirnov (RETIRED)
Details | Diff
2-nd patch (ffmpeg.patch,1.61 KB, patch)
2008-07-20 11:37 UTC, Vladimir Smirnov (RETIRED)
Details | Diff
aegisub-2.1_pre2425.ebuild (aegisub-2.1_pre2425.ebuild,1.53 KB, text/plain)
2008-11-28 17:12 UTC, Rickard Närström
Details
aegisub-2.1_pre2425-as-needed.patch (aegisub-2.1_pre2425-as-needed.patch,11.28 KB, patch)
2008-11-28 17:13 UTC, Rickard Närström
Details | Diff
Fixes sandbox violation by dumbing down the audio lib tests (aegisub-9999-sandbox.patch,903 bytes, patch)
2009-02-15 18:37 UTC, Michał Ziąbkowski
Details | Diff
aegis 2.1.8 r3362 rebuild (aegisub-2.1.8_pre3362.ebuild,1.65 KB, text/plain)
2009-09-29 07:44 UTC, Benjamin Southall
Details
aclocal patch for aegis 2.1.8 r3362 (aclocal.patch,436 bytes, text/plain)
2009-09-29 07:46 UTC, Benjamin Southall
Details
aegisub-2.1.8_pre3362.ebuild with wxGTK[X] (aegisub-2.1.8_pre3362.ebuild.diff,864 bytes, patch)
2009-12-16 13:13 UTC, Petr Pisar
Details | Diff
media-video/aegisub-2.1.8 (aegisub-2.1.8.ebuild,1.67 KB, text/plain)
2010-03-24 10:05 UTC, Petr Pisar
Details
Patch for ebuild to fix compilation with recent ffmpeg versions (0.6 or above). (aegisub-2.1.8-ffmpeg-0.6-fix.patch,349 bytes, text/plain)
2010-11-10 17:12 UTC, Benjamin Weggenmann
Details
use system libass (aegisub-2.1.8-external-libass.patch,1.97 KB, patch)
2010-12-14 10:07 UTC, Nikoli
Details | Diff
reworked ebuild (aegisub-2.1.8.ebuild,1.69 KB, text/plain)
2010-12-14 10:09 UTC, Nikoli
Details
patch (aegisub-2.1.8-do-not-verify-audiolibs.patch,2.61 KB, patch)
2011-01-13 16:41 UTC, Nikoli
Details | Diff
aegisub-2.1.9_pre5585.ebuild uses system libass and libffms2 (aegisub-2.1.9_pre5585.ebuild,1.30 KB, text/plain)
2011-09-03 22:36 UTC, Nikoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fatal1ty 2007-04-11 18:38:51 UTC
Can anyone make ebuild for aegisub? ( http://www.malakith.net/aegiwiki/Unix_Instructions )

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-11 19:01:51 UTC
Not until there are needed dependencies in the tree (like wxGTK-2.8); plus we are not really into live svn ebuilds. Please reopen once they've released something.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-03-16 10:32:09 UTC
*** Bug 213561 has been marked as a duplicate of this bug. ***
Comment 3 juantxorena@gmail.com 2008-03-16 10:54:09 UTC
Created attachment 146292 [details]
media-video/aegisub-9999.ebuild

A live svn ebuild for aegisub. Please, re-open this bug (which depends on bug #213559, btw). I know that isn't going to be added to portage until a release is made, but leave it open so people can follow the "development", can use the svn ebuild if they want and can find something when they search for "aegisub". There are more open bugs with live svn ebuilds only.
Comment 4 juantxorena@gmail.com 2008-03-16 12:13:22 UTC
Created attachment 146303 [details]
media-video/aegisub-2.2.0_pre2069.ebuild

Ok, since it seems that this won't be re-opened since a not-live-svn ebuild is made, here is one for the lastest working version, the one that I have been using since its "release" (older ones also work). I forgot uploading the icon and the desktop entry, but I won't do it if this isn't going to be reopened, they won't be very useful.
Comment 5 juantxorena@gmail.com 2008-03-16 20:01:42 UTC
Created attachment 146336 [details]
media-video/aegisub-2.1_pre1981.ebuild

Ok, a new ebuild without svn, that fetches a tarball from the webpage of a developer of the program.
Comment 6 juantxorena@gmail.com 2008-03-16 20:02:36 UTC
Created attachment 146338 [details]
aegisub.png

The icon, must be placed in files dir.
Comment 7 Markus Ullmann (RETIRED) gentoo-dev 2008-03-16 20:03:00 UTC
has an ebuild now -> reopen
Comment 8 Michele Castellano 2008-04-05 14:57:19 UTC
Hi All,
I tried to install this ebuild but I obatined some errors. I discovered trying run manually the configure that it's not necessary give the flag libass (only necessary if you don't want).
I edited the ebuild changing the line 'econf --with-libass --prefix=/usr \' in 'econf "--prefix=/usr" \'. So the ebuild run for me.

This is my emerge --info:

Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686)
=================================================================
System uname: 2.6.24-gentoo-r3 i686 AMD Athlon(TM) XP 2800+
Timestamp of tree: Sat, 05 Apr 2008 02:15:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 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.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
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/config"
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/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ing.unibo.it/gentoo/ ftp://mirror.ing.unibo.it/gentoo/ "
LINGUAS="it"
MAKEOPTS="-j2"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/Dottout /usr/portage/local/layman/pro-audio /usr/portage/local/layman/sunrise /usr/portage/local /usr/portage/local/layman"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext 7zip X X10 X509 a52 aac aalib acl acpi additions alsa apache2 audacious audiofile automount autostart avahi bash-completion berkdb bgpclassless binary-drivers bluetooth bonjour branding bugzilla bzip2 cairo caps cdda cddb cdparanoia cdr cli cpudetection cracklib crypt cups cvs daap dbus dedicated device-mapper dga directv divx doc dri dssi dts dv dvb dvd dvdnav dvdr dvdread eds emboss emf enca encode epydoc esd evo exif fam fame fat ffmpeg filepicker firefox fix-connected-rt flac flash fortran fping freebox fuse gd gdbm geoip gif gimp glsa gmail gmedia gnome gnutls gpg gpm groupwise grub gsm gstreamer gtk gtkhtml hal hddtemp hfs iconv icq id3 id3tag idea image imagemagick imap imlib imlib2 injection inkjar innodb inode ipod iproute2 ipsec iptv ipv6 isdnlog it jabber jack java javascript john jpeg jpeg2k kde kerberos keyring l7filter ladcca ladspa lame langpacks latex lcms ldap ldap-sasl libburn libcaca libnotify libsamplerate libwww lm_sensors logrotate lua lzo mad madwifi mailwrapper maps matroska mbox md5sum meanwhile menu-plugin mhash midi mikmod mime mjpeg mmap mmx mmxext mng mono motif mozdevelop mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mplayer msdav msn mssql mudflap multicall multipath multiuser musepack musicbrainz mysql nano-syntax nat nautilus ncurses net netbeans netjack netmeeting network nls nodrm normalize nptlonly nsplugin ntfs odbc offensive ogg openal opengl openmp openntpd openssh openssl optimisememory oracle oracle7 orathreads oscar ospfapi oss overlays pam pango passwordsave pbxt pcre pda pdf perl php pidgin pipe player plotutils plugins png portage portaudio postscript ppds pppd prediction profile psyco pulseaudio python qt3 qt3support qt4 quicktime rar readline real realmedia realms reflection reiser4 reiserfs rewrite rhythmbox rpm rrdcgi rss rtc rtsp rubrica ruby samba sametime savedconfig scanner schedule sdk sdl sdl-image session signature-log signatures silc skins snmp sound soundtouch source speex spell spl sqlite sse sse2 ssl startup-notification stats stream subtitles subversion svg svga svgz sylpheed szip tagwriting tcl tcp-zebra tcpd tcpmd5 tcpwrapper tetex tftp themes theora threads tiff timestats tk toolbar tos totem transcode truetype tv tv_check twolame unicode unzip urandom v4l v4l2 vamp vcd video videos vidix vorbis wav wavpack weather webdav wifi win32codecs wireshark wma wmf wmp wxwindows x11vnc x264 x86 xattr xchatdccserver xcomposite xen xext xfce xfs xft xine xml xorg xosd xpm xprint xrandr xscreensaver xulrunner xv xvid yahoo yv12 zapnet zaptel zeroconf zip zlib zrtp zsh-completion zvbi" ALSA_CARDS="via82xx" 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 juantxorena@gmail.com 2008-04-05 21:38:46 UTC
(In reply to comment #8)
> Hi All,
> I tried to install this ebuild but I obatined some errors. I discovered trying
> run manually the configure that it's not necessary give the flag libass (only
> necessary if you don't want).
> I edited the ebuild changing the line 'econf --with-libass --prefix=/usr \' in
> 'econf "--prefix=/usr" \'. So the ebuild run for me.
>

Which ebuild? The live svn one or the 1981 revision one? The last one works good, but not the other one, since is a live svn and works sometimes. About the libass thing, is quite useless to compile this without supporting it.

However, the lastest versions of aegisub can't use the external libass lib. Libass is a standalone version of the subtitle rendering lib in mplayer, but is quite old and unmaintained comparing to the one in mplayer.

About the compiling problems, with the actual revision and unofficial tarballs there are problems with sandbox violations. I'm in contact with the only developer of the program who works on the non-windows specific stuff, but neither he or me haven't too much time, so the progress is slow, but not halted.

For now, we must use the 1981 version.
Comment 10 Vladimir Smirnov (RETIRED) gentoo-dev 2008-07-20 11:36:33 UTC
Created attachment 160907 [details]
yet another aegisub ebuild.

Dirty hack to prevent sandbox from do access violation.
Needs 2 patches - one for autogen.sh and one for ffmpeg includes.
Comment 11 Vladimir Smirnov (RETIRED) gentoo-dev 2008-07-20 11:36:50 UTC
Created attachment 160909 [details, diff]
1-st patch
Comment 12 Vladimir Smirnov (RETIRED) gentoo-dev 2008-07-20 11:37:03 UTC
Created attachment 160910 [details, diff]
2-nd patch
Comment 13 L.J. 2008-10-22 04:28:12 UTC
My build fails on here -> http://dpaste.com/86044/

Any solution?
Comment 14 Rickard Närström 2008-11-28 17:12:25 UTC
Created attachment 173662 [details]
aegisub-2.1_pre2425.ebuild

New ebuild for snapshot of reversion 2425.
Comment 15 Rickard Närström 2008-11-28 17:13:23 UTC
Created attachment 173664 [details, diff]
aegisub-2.1_pre2425-as-needed.patch

Solve -Wl,--as-needed problems with reversion 2425, needed by my ebuild
Comment 16 Alexey Shildyakov 2009-01-05 00:32:37 UTC
I have bug when emerge aegisub-2.1_pre2425.ebuild:
>>> Source configured.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-19948.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /dev/dsp
A: /dev/dsp
R: /dev/dsp
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC1
A: /dev/snd/controlC1
R: /dev/snd/controlC1
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC1
A: /dev/snd/controlC1
R: /dev/snd/controlC1
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC1
A: /dev/snd/controlC1
R: /dev/snd/controlC1
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC1
A: /dev/snd/controlC1
R: /dev/snd/controlC1
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

F: open_wr
S: deny
P: /dev/snd/controlC0
A: /dev/snd/controlC0
R: /dev/snd/controlC0
C: ./conftest

And also have bug when emerge aegisub-9999.ebuild by Vladimir:

http://pastebin.ru/300172
Comment 17 Michał Ziąbkowski 2009-02-15 18:37:17 UTC
Created attachment 182147 [details, diff]
Fixes sandbox violation by dumbing down the audio lib tests
Comment 18 Benjamin Southall 2009-07-10 10:06:12 UTC
The SRC_URI should be 
SRC_URI="http://www.mahou.org/~verm/aegisub/${MY_P}.tar.gz http://www.mahou.org/~verm/aegisub/archives/${MY_P}.tar.gz"
if the ebuild version isn't going to be updated at the same rate as upstream releases revision snapshots in order for the package to fetch and then install.
Apologies for not submitting a patch, but I thought a simple one line patch would be superflous.

Comment 19 Benjamin Southall 2009-09-29 07:44:20 UTC
Created attachment 205563 [details]
aegis 2.1.8 r3362 rebuild 

this ebuild works with current non svn ffmpeg in tree
Comment 20 Benjamin Southall 2009-09-29 07:46:35 UTC
Created attachment 205564 [details]
aclocal patch for aegis 2.1.8 r3362 

this fixes aclocal for the ebuild and works on any aegisub tarball newer than 2.1.6 r3104
Comment 21 Petr Pisar 2009-12-16 13:13:55 UTC
Created attachment 213191 [details, diff]
aegisub-2.1.8_pre3362.ebuild with wxGTK[X]

This adds RDEPEND on wxGTK[X] (does not compile otherwise) and moves epatch into src_prepare().
Comment 22 Petr Pisar 2009-12-17 17:27:16 UTC
I compiled 2.1.8_pre3362, but video files can not be processed because last x86 stable ~ffmpeg-0.5 is too old. Aegisub has this inside configure.in:

###################
# Required packages
###################
m4_define([libavcodec_required_version], [52.27.0])  # (r18642)
m4_define([libavformat_required_version], [52.32.0]) # (r18642)
m4_define([libavutil_required_version], [50.3.0])    # (r18642)
m4_define([libpostproc_required_version], [51.2.0])  # (r18642)
m4_define([libswscale_required_version], [0.7.1])    # (r18642)

Thus I added minimal ffmpeg rdependency:

ffmpeg? ( >=media-video/ffmpeg-0.5_p18642 )

and unmasked media-video/ffmpeg-0.5_p20373.

Both packages compiled. I'm able to open video file now, it shows first frame, I can seek in the video. But the application freezes on video play-back.

Does somebody know which ffmpeg snapshot is suitable for Aegisub? Or is it bug in Aegisub itself?
Comment 23 Vladimir Berezhnoy 2009-12-17 18:10:05 UTC
I've never seen aegisub being able to play any video files since I've started using it two years ago.
Comment 24 Michal Andrzejczak 2010-03-24 01:03:18 UTC
Would be great if someone made an ebuild for the latest release.
Comment 25 Petr Pisar 2010-03-24 10:05:45 UTC
Created attachment 225093 [details]
media-video/aegisub-2.1.8

This is ebuild for Aeagisub-2.1.8. Together with media-video/ffmpeg-0.5_p20601-r1, it can play video and audio.

I added nls and oss USE flags, removed a patch and manual freedesktop integration as it is provided by upstream.
Comment 26 Michal Andrzejczak 2010-03-24 12:44:28 UTC
(In reply to comment #25)
> Created an attachment (id=225093) [details]
> media-video/aegisub-2.1.8
> 
> This is ebuild for Aeagisub-2.1.8. Together with
> media-video/ffmpeg-0.5_p20601-r1, it can play video and audio.
> 
> I added nls and oss USE flags, removed a patch and manual freedesktop
> integration as it is provided by upstream.
> 

The compilation stops with a linker error (or so I think). Here's the whole log: http://pastebin.ca/1851417

and my emerge --info:

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)
=================================================================                                  
System uname: Linux-2.6.33-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.0.1
Timestamp of tree: Tue, 23 Mar 2010 20:45:02 +0000                                                       
app-shells/bash:     4.1_p2-r1                                                                           
dev-java/java-config: 2.1.10                                                                             
dev-lang/python:     2.6.5, 3.1.2                                                                        
dev-util/cmake:      2.8.1                                                                               
sys-apps/baselayout: 2.0.1                                                                               
sys-apps/openrc:     0.6.1                                                                               
sys-apps/sandbox:    2.2                                                                                 
sys-devel/autoconf:  2.13, 2.65                                                                          
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1                                                            
sys-devel/binutils:  2.20.1                                                                              
sys-devel/gcc:       4.4.3                                                                               
sys-devel/gcc-config: 1.4.1                                                                              
sys-devel/libtool:   2.2.6b                                                                              
virtual/os-headers:  2.6.33                                                                              
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                           
ACCEPT_LICENSE="*"                                                                                       
CBUILD="x86_64-pc-linux-gnu"                                                                             
CFLAGS="-O2 -march=native -pipe"                                                                         
CHOST="x86_64-pc-linux-gnu"                                                                              
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                               
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/terminfo"                                                                               
CXXFLAGS="-O2 -march=native -pipe"                                                                                              
DISTDIR="/usr/portage/distfiles"                                                                                                
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                 
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                                                                    
LANG="pl_PL.UTF-8"                                                                                                              
LC_ALL="pl_PL.UTF-8"                                                                                                            
LDFLAGS="-Wl,-O1,--as-needed"                                                                                                   
LINGUAS="pl"                                                                                                                    
MAKEOPTS="-s -j2"                                                                                                               
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="/var/lib/layman/kde /var/lib/layman/roslin /var/lib/layman/sunrise /var/lib/layman/multimedia /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdr cli cracklib crypt curl custom-cflags custom-cxxflags cxx dbus dri dts dvd dvdr emboss encode evo faac faad fam ffmpeg firefox flac fortran ftp gdbm gif hal iconv inotify ipv6 joystick jpeg kde kdehiddenvisibility lame libnotify lzma mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly ogg opengl openmp pam pch pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session smp sndfile spell spl sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd threads thunar tiff truetype unicode usb vorbis wavpack x264 xcb xcomposite xml xorg xulrunner 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 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="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" RUBY_TARGETS="ruby18" SANE_BACKENDS="none" USERLAND="GNU" VIDEO_CARDS="none nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 27 Petr Pisar 2010-03-24 13:33:19 UTC
That's really weired as configure FFMPEG check should compile, link and run code calling av_register_all() and it passed:

checking whether FFMPEG works... yes

What version of media-video/ffmpeg do you have?
Does your avformat library (part of ffmpeg) provide av_register_all symbol?

$ nm --dynamic --defined-only /usr/lib/libavformat.so | grep av_register_all
00014ed0 T av_register_all

(Adjust library path, /usr/lib64 probably.)
Comment 28 Michal Andrzejczak 2010-03-24 13:44:20 UTC
(In reply to comment #27)
> That's really weired as configure FFMPEG check should compile, link and run
> code calling av_register_all() and it passed:
> 
> checking whether FFMPEG works... yes
> 
> What version of media-video/ffmpeg do you have?
> Does your avformat library (part of ffmpeg) provide av_register_all symbol?
> 
> $ nm --dynamic --defined-only /usr/lib/libavformat.so | grep av_register_all
> 00014ed0 T av_register_all
> 
> (Adjust library path, /usr/lib64 probably.)
> 

I had ffmpeg-0.5_p21602 but I dowgraded it to ffmpeg-0.5_p20601-r1 and still the same error.
The av_register_all symbol is present:
# nm --dynamic --defined-only /usr/lib64/libavformat.so | grep av_register_all
00000000000176a0 T av_register_all
Comment 29 Petr Pisar 2010-03-24 14:33:34 UTC
(In reply to comment #28)
> The av_register_all symbol is present:
> # nm --dynamic --defined-only /usr/lib64/libavformat.so | grep av_register_all
> 00000000000176a0 T av_register_all
> 
The only reason I can image is, you have installed yet another libavformat (and other ffmpeg dynamic libraries) somewhere else that is broken and linker uses the broken one instead of the right one from /usr/lib64.

You can check used library file at link time e.g. by strace (strace -fq -eopen make, where make is re-run after failed compilation (move into /var/tmp/portage/...)).

There can exist other reason why linker refuse to use proper library (e.g. architecture mismatch), but that should result in linker error or warning.

I'm sorry I can't help you more.

At least you can try to revert --with-provider-* configure options argument from `ffmpegsource' to `ffmpeg' value in the ebuild. I made this change because aegisub said `ffmpeg' implementation is deprecated.
Comment 30 Michal Andrzejczak 2010-03-24 16:02:12 UTC
(In reply to comment #29)
> You can check used library file at link time e.g. by strace (strace -fq -eopen
> make, where make is re-run after failed compilation (move into
> /var/tmp/portage/...)).

Well, I did that but it doesn't give me much clue. Here's part of the log which I think is important: http://paste2.org/p/733365

Comment 31 Petr Pisar 2010-03-24 16:24:14 UTC
(In reply to comment #30)
> (In reply to comment #29)
> > You can check used library file at link time e.g. by strace (strace -fq -eopen
> > make, where make is re-run after failed compilation (move into
> > /var/tmp/portage/...)).
> 
> Well, I did that but it doesn't give me much clue. Here's part of the log which
> I think is important: http://paste2.org/p/733365
> 

Unfortunatelly too late. Start the output where libtool/gcc/ld is executed. You can trace execve syscall to get the marker (strace -eopen,execve make). You can redirect stderr to stdout and grep for "avformat" to get more sparse listing.
Comment 32 Michal Andrzejczak 2010-03-24 18:47:51 UTC
(In reply to comment #31)
> Unfortunatelly too late. Start the output where libtool/gcc/ld is executed. You
> can trace execve syscall to get the marker (strace -eopen,execve make). You can
> redirect stderr to stdout and grep for "avformat" to get more sparse listing.
> 
Here's the log: http://pastebin.ca/1851651

Also, changing from ffmpegsource to ffmpeg doesn't help :(
Comment 33 Petr Pisar 2010-03-24 19:30:42 UTC
(In reply to comment #32)
> (In reply to comment #31)
> > Unfortunatelly too late. Start the output where libtool/gcc/ld is executed. You
> > can trace execve syscall to get the marker (strace -eopen,execve make). You can
> > redirect stderr to stdout and grep for "avformat" to get more sparse listing.
> > 
> Here's the log: http://pastebin.ca/1851651
> 
You forget -f option for strace apparently, thus it did not traced forked children. Last command I provided was just a pseudo code to get idea how `-e' option works.

Please do something like 
$ strace -fq -eopen make 2>&1 | grep avformat

You should see bunch of failed open(".../libavformat.so") and the last one should succeed giving you real location of avformat library used when linking.
Comment 34 Michal Andrzejczak 2010-03-24 19:54:10 UTC
(In reply to comment #33)
> You forget -f option for strace apparently, thus it did not traced forked
> children. Last command I provided was just a pseudo code to get idea how `-e'
> option works.
> 
> Please do something like 
> $ strace -fq -eopen make 2>&1 | grep avformat
> 
> You should see bunch of failed open(".../libavformat.so") and the last one
> should succeed giving you real location of avformat library used when linking.
> 
Oh, I'm sorry, here's the new output: http://paste2.org/p/733547
Also:
eternaldnb aegisub-2.1.8 # grep avformat_version /usr/include/libavformat/*
/usr/include/libavformat/avformat.h:unsigned avformat_version(void);
eternaldnb aegisub-2.1.8 #

Hope that's helpful.
Comment 35 Petr Pisar 2010-03-24 20:17:20 UTC
(In reply to comment #34)
> Oh, I'm sorry, here's the new output: http://paste2.org/p/733547

The good news: linker opens proper library.
The bad news: I don't know what's wrong.

> Also:
> eternaldnb aegisub-2.1.8 # grep avformat_version /usr/include/libavformat/*
> /usr/include/libavformat/avformat.h:unsigned avformat_version(void);
> eternaldnb aegisub-2.1.8 #
> 
That's right, otherwise building failed on compilation before linking.

You can try to launch the last failing command by hand (http://pastebin.ca/1851417, line 1251) in proper directory. You can try to build aegisub outside portage with them same (line 14) options or without any of them.

Frankly, I can't help you.
Comment 36 Denilson Sá Maia 2010-03-24 20:35:53 UTC
Just to tell you that I've just tested this ebuild with the latest stable package versions from Gentoo/amd64, and it works for me.

To the guy with issues: try running revdep-rebuild (usually video package updates break a lot of libs, and revdep-rebuild fixes them)
Comment 37 Michal Andrzejczak 2010-03-24 22:38:16 UTC
(In reply to comment #36)
> To the guy with issues: try running revdep-rebuild (usually video package
> updates break a lot of libs, and revdep-rebuild fixes them)
> 

Already did that. I'm gonna do emerge -e @world this weekend, hopefully, and see if that helps.
Comment 38 Alexey Shildyakov 2010-03-25 06:08:45 UTC
If it is your mistake linked with invalid manually installation of packages and broken libs, you should get as result of "emerge -e @world" any packages, that don't emerge. If it will be I'll tell you about one program what removed broken links to invalid libs in the system.
Comment 39 Benjamin Weggenmann 2010-11-10 17:12:38 UTC
Created attachment 253907 [details]
Patch for ebuild to fix compilation with recent ffmpeg versions (0.6 or above).

Recent ffmpeg versions require __STDC_CONSTANT_MACROS to be defined when compiling C++ sources. Therefore, the check for ffmpeg fails during ./configure, causing aegisub to be compiled without ffmpeg support, which in turn rendered it unable to open video or audio streams.
The attached patch (for the sunrise overlay version of aegisub-2.1.8.ebuild) appends "-D__STDC_CONSTANT_MACROS" to CXXFLAGS (there might be a better way to do this, but I am not sure how). Opening video and audio streams now works again.
Comment 40 Nikoli 2010-12-14 10:07:30 UTC
Created attachment 257107 [details, diff]
use system libass
Comment 41 Nikoli 2010-12-14 10:09:44 UTC
Created attachment 257108 [details]
reworked ebuild

perl and ruby are unsupported by upstream and removed in trunk
enable ffmpeg by default
correct deps
intltool is build depend
use system libass
build fails with ffmpeg-0.6_p25767
USE="-ffmpeg" was broken
cosmetics, no need for MY_P(V)

P.S. current svn fails to build with:
video_display.h:71: error: ISO C++ forbids declaration of ‘list’ with no type
video_display.h:71: error: invalid use of ‘::’
video_display.h:71: error: expected ‘;’ before ‘<’ token
video_display.cpp: In constructor ‘VideoDisplay::VideoDisplay(VideoBox*, wxTextCtrl*, wxTextCtrl*, wxComboBox*, wxWindow*, AssFile*)’:
video_display.cpp:159: error: ‘slots’ was not declared in this scope
Comment 42 Jouni Rinne 2010-12-27 19:19:35 UTC
(In reply to comment #41)
> Created an attachment (id=257108) [details]
> reworked ebuild
> 
> perl and ruby are unsupported by upstream and removed in trunk
> enable ffmpeg by default
> correct deps
> intltool is build depend
> use system libass
> build fails with ffmpeg-0.6_p25767
> USE="-ffmpeg" was broken
> cosmetics, no need for MY_P(V)
> 

Nikoli: the patch ${P}-do-not-verify-audiolibs.patch is missing, can you add it?
Comment 43 Nikoli 2011-01-13 16:41:16 UTC
Created attachment 259726 [details, diff]
patch
Comment 44 Nikoli 2011-01-30 18:17:46 UTC
In multimedia overlay :)
+*aegisub-9999 (30 Jan 2011)
+*aegisub-3.0_pre4897 (30 Jan 2011)
+*aegisub-2.1.8 (30 Jan 2011)
Comment 45 cyberbat 2011-01-30 19:06:08 UTC
aegisub-3.0_pre4897 from multimedia overlay works for me
Comment 46 Nikoli 2011-07-04 23:31:11 UTC
Please test aegisub-2.1.9_pre5440.ebuild from multimedia overlay, it builds fine with wxGTK-2.8.11.0 and ffmpeg-0.7.1
Comment 47 Petr Pisar 2011-07-05 11:11:35 UTC
(In reply to comment #46)
> Please test aegisub-2.1.9_pre5440.ebuild from multimedia overlay, it builds
> fine with wxGTK-2.8.11.0 and ffmpeg-0.7.1

In final linking aegisub-2.1, I get error:

libsubtitle_provider.a(libsubtitle_provider_a-subtitles_provider.o): In function `LibassSubtitlesProviderFactory::CreateProvider(wxString)':
subtitles_provider.cpp:(.text._ZN30LibassSubtitlesProviderFactory14CreateProviderE8wxString[LibassSubtitlesProviderFactory::CreateProvider(wxString)]+0x16): undefined reference to `LibassSubtitlesProvider::LibassSubtitlesProvider()'
collect2: ld returned 1 exit status

# qlist -IUv x11-libs/wxGTK media-libs/libass media-video/ffmpeg virtual/ffmpeg
media-libs/libass-0.9.11 (fontconfig)
media-video/ffmpeg-0.7_rc1 (3dnow 3dnowext aac alsa bzip2 encode hardcoded-tables jpeg2k mmx mmxext mp3 rtmp sdl speex theora threads truetype video_cards_nvidia vorbis xvid zlib)
virtual/ffmpeg-0.6.90 (encode jpeg2k mp3 sdl theora threads)
x11-libs/wxGTK-2.8.11.0 (X opengl sdl)

Compiled with:

 * Package:    media-video/aegisub-2.1.9_pre5440
 * Repository: multimedia
 * Maintainer: nikoli@lavabit.com
 * USE:        alsa elibc_glibc ffmpeg kernel_linux nls spell userland_GNU x86
 * FEATURES:   sandbox userpriv usersandbox

Configure results:

Configure settings
  Install prefix:        /usr
  SVN Revision:          5440
  Debug                  no 
  CXXFLAGS               -march=athlon-tbird -O2 -pipe -fomit-frame-pointer -Wall -Wextra -Wno-unused-parameter -Wno-long-long -fpermissive -fno-strict-aliasing -std=c
++98 -pipe -O2
  CPPFLAGS               
  LDFLAGS                -Wl,-O1 -Wl,--as-needed

Default Settings
  Video Provider:        ffmpegsource
  Audio Provider:        ffmpegsource
  Subtitle Provider:     NONE
  Audio Player:          openal

Scripting Engines
  auto3 Lua:             no 
  auto4 Lua:             no (disabled)
  auto4 Perl:            no 
  auto4 Ruby:            no 

Audio Players
  ALSA:                  yes (disabled)
  OpenAL:                no (disabled)
  OSS:                   no (disabled)
  PortAudio:             no (disabled)
  PulseAudio:            no 

A/V Support
  FFMPEG:                yes 
                         (required for video providers)

A/V Providers
  FFMPEG:                no (deprecated)
  FFmpegSource:          yes 

Subtitle Providers:
  CSRI (ASA):            no  
  libASS                 no  
                         (both require iconv and fontconfig)

Misc Packages
  Hunspell:              yes  (disabled)
  universalchardet:      yes
Comment 48 Nikoli 2011-07-05 11:27:12 UTC
Petr, you need >=libass-0.9.12, fixed dep in ebuilds, thanks.
Comment 49 hakushka 2011-07-05 11:50:55 UTC
(In reply to comment #46)
> Please test aegisub-2.1.9_pre5440.ebuild from multimedia overlay, it builds
> fine with wxGTK-2.8.11.0 and ffmpeg-0.7.1

successfully built and works for me
Comment 50 Nikoli 2011-07-05 13:34:50 UTC
Sergey, what sound formats work fine for you? For me aac works, but aegisub crashes with vorbis and ac3.

ffmpeg-0.7.1
Comment 51 hakushka 2011-07-05 14:05:11 UTC
(In reply to comment #50)
> Sergey, what sound formats work fine for you? For me aac works, but aegisub
> crashes with vorbis and ac3.
> 
> ffmpeg-0.7.1

You are right, AAC and MP3 works, but after downloading the AC3 audio format gives an error
«FFmpegSource audio provider: Failed to get audio samples: \U6b656553\U20676e69\U73207369\U72657665\U20796c65\U6b6f7262\u6e65»

and vorbis not load: the add dialog audio tracks there is no progress. Crashes are not seen.
Comment 52 Nikoli 2011-09-03 22:36:51 UTC
Created attachment 285463 [details]
aegisub-2.1.9_pre5585.ebuild uses system libass and libffms2

Upstream removed internal libass and libffms2 (ffmpegsource), no patching is now required.
Comment 53 Nikoli 2011-12-14 07:06:56 UTC
RC is now available (aegisub-2.1.9_pre5995), all bugs for milestone are closed:
http://devel.aegisub.org/milestone/2.1.9
Comment 54 Vladimir Berezhnoy 2012-01-08 19:59:53 UTC
media-video/aegisub-2.1.9_pre5995 fails to build for me with

frame_main.cpp: In member function ‘bool FrameMain::SaveSubtitles(bool, bool)’:
frame_main.cpp:781: error: expected type-specifier before ‘Aegisub’
frame_main.cpp:781: error: expected ‘)’ before ‘::’ token
frame_main.cpp:781: error: expected ‘{’ before ‘::’ token
frame_main.cpp:781: error: ‘::UserCancelException’ has not been declared
Comment 55 Nikoli 2012-01-10 21:50:45 UTC
2.1.9 tag was added, ebuild is in overlay. Works fine for me. Vladimir, does it build for you?
Comment 56 Vladimir Berezhnoy 2012-01-11 04:42:33 UTC
(In reply to comment #55)
> 2.1.9 tag was added, ebuild is in overlay. Works fine for me. Vladimir, does it
> build for you?

thanks, 2.1.9 installed fine
Comment 57 Maxim Koltsov (RETIRED) gentoo-dev 2012-02-02 17:57:29 UTC
Added to tree at last, sorry for delay. Thanks to Nikoli.