Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357609 - [patch] >=media-video/mkvtoolnix-4.4.0 fails to build with boost-1.46
Summary: [patch] >=media-video/mkvtoolnix-4.4.0 fails to build with boost-1.46
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 356479
  Show dependency tree
 
Reported: 2011-03-06 10:05 UTC by Myk Taylor
Modified: 2011-04-15 23:42 UTC (History)
1 user (show)

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


Attachments
mkvtoolnix code patch (mkvtoolnix-boost-1_46.patch,306 bytes, patch)
2011-03-06 10:06 UTC, Myk Taylor
Details | Diff
mkvtoolnix manifest and ebuild patch (mkvtoolnix_boost-1_46_ebuild.patch,4.47 KB, patch)
2011-03-06 10:07 UTC, Myk Taylor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myk Taylor 2011-03-06 10:05:28 UTC
media-video/mkvtoolnix-4.4.0 and media-video/mkvtoolnix-4.5.0 fail to build with boost-1.46 due to boost filesystem API v3 becoming the default.  This is easily fixed by adding a
  #define BOOST_FILESYSTEM_VERSION 2
to source files that include boost/filesystem.hpp.  Patch to ebuilds attached.

Reproducible: Always

Steps to Reproduce:
1. upgrade to boost-1.46 (see bug 356479)
2. attempt to compile mkvtoolnix
Actual Results:  
build failure

Expected Results:  
build success

# emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5,
glibc-2.11.3-r0, 2.6.36-tuxonice-r3 x86_64)
=================================================================
System uname:
Linux-2.6.36-tuxonice-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-gentoo-1.12.14
Timestamp of tree: Sun, 06 Mar 2011 08:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm AdobeFlash-10.1 skype-eula
PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt
/usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/sandbox.d
/etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d
/etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages
news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn
unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.llarian.net/
http://gentoo.arcticnetwork.ca/source/
http://gentoo.mirrors.easynews.com/linux/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en-US en vi zh_TW zh"
MAKEOPTS="-j1"
PKGDIR="/var/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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi adns alsa amd64 ao audiofile avahi
bash-completion berkdb bidi blas branding bzip2 cairo calendar caps cdda cddb
cdparanoia cdr cjk cli consolekit cracklib crypt cscope css cups curl cxx dbus
dga djvu dri dts dvd dvdr emboss encode exif expat fam ffmpeg fftw firefox flac
fontconfig foomaticdb fortran ftp gd gdbm gdu geoip geolocation ggi gif gimp
gmp gnutls gphoto2 gpm graphviz gsm gstreamer gtk gtkhtml iconv icu idn
ieee1394 imagemagick imap imlib ipod java java6 javascript jbig jikes jpeg
jpeg2k kde kerberos lame lcms ldap libnotify libsamplerate lm_sensors lzma lzo
mad matroska mikmod mmap mmx mng modules mono mp3 mp4 mpeg mplayer mudflap
multilib musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin ogg
openal openexr opengl openmp pam pango pch pcre pdf perl phonon plasma
plotutils png policykit portaudio ppds pppd python qt3support qt4 quicktime raw
readline samba sasl scanner sdl semantic-desktop session slang slp smp sndfile
snmp sox speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3
startup-notification svg sysfs syslog szip taglib tcl tcpd theora threads tiff
tk truetype udev unicode usb v4l v4l2 vcd vdpau vim-syntax vnc vorbis wavpack
webkit wifi wmf wxwidgets x264 xcb xcomposite xine xinerama xml xmp xorg xosd
xpm xprint xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000
atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968
fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx
via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop
empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions
alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file
authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user
autoindex cache cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load
memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm
earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip
navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing
tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LINGUAS="en-US en vi zh_TW zh" NETBEANS_MODULES="*"
PHP_TARGETS="php5-3" RUBY_TARGETS="jruby ruby18" USERLAND="GNU"
VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2
ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal
rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Myk Taylor 2011-03-06 10:06:32 UTC
Created attachment 264901 [details, diff]
mkvtoolnix code patch

goes in media-video/mkvtoolnix/files
Comment 2 Myk Taylor 2011-03-06 10:07:02 UTC
Created attachment 264903 [details, diff]
mkvtoolnix manifest and ebuild patch

apply to ebuilds
Comment 3 Myk Taylor 2011-03-06 10:07:57 UTC
patches tested on amd64 and x86, with both boost-1.46.0 and boost-1.42.0-r2

Comment 4 tman 2011-03-06 13:59:42 UTC
now maybe can sb put it in portage tree plz

thanks
Comment 5 tman 2011-03-13 09:11:18 UTC
could someone tell me how is this patchrd to use, as long as no the portage tree?
Comment 6 Tim Harder gentoo-dev 2011-03-13 21:18:59 UTC
(In reply to comment #5)
> could someone tell me how is this patchrd to use, as long as no the portage
> tree?

I'll add the patch to the tree as soon as boost-1.46 is officially added to the tree in some form. Patching ebuilds to support packages that aren't in the tree sets a bad precedent.

Feel free to ping this bug again after boost-1.46 is added to the tree.

In the meantime, just add mkvtoolnix to your personal overlay along with the provided patch.
Comment 7 Tim Harder gentoo-dev 2011-03-14 01:50:27 UTC
Fixed in mkvtoolnix-4.6.0 in CVS.