Description
Mounir Lamouri (volkmar) (RETIRED)
![]() Created attachment 159833 [details, diff]
Patch to btg-0.9.7 to btg-0.9.8_rc3 (with extra packages from sunrise)
Patch for last portage version of btg.
It is using extra packages from sunrise overlay (see bugs #225295 and #225287).
There is a patch (see future attachements) for a --as-needed bug. This bug is already corrected in svn version. Hope it will be in 0.9.8 release.
Created attachment 159834 [details, diff]
Patch to make btg-0.9.8_rc3 compiling with CURL use flag and --as-needed ldflag
This patch make btg-0.9.8_rc3 compiling with curl USE FLAG and --as-needed LDFLAG.
It has been submitted to btg's dev team and is already in svn version. I hope it will be in next release.
Created attachment 159836 [details, diff]
Patch to btg-0.9.7 to btg-0.9.8_rc3 (without extra packages from sunrise)
Same as btg-0.9.8_rc3-with-extra-packages.patch but without extra packages from sunrise.
It will be working on a basic configuration.
Created attachment 159994 [details, diff]
Patch to btg-0.9.7 to btg-0.9.8 (without extra packages from sunrise)
btg 0.9.8 just came out.
That makes me think/realize many things.
First of all, I discover the SigC compilation bug on my system. Actually, it a compatibily issue with libsigc++-2.2*. So i've juste change dep for libsigc++-2.0*. I don't think it's the best way to do but it's working. I will report this problem to btg dev team. May be it should be better to use the patch from Tiziano ?
About the last report i've made to them (compile failed with curl enabled and ldflag --as-needed). It has been fixed for this release so the patch is now useless.
I've quickly read the new doc to verify how we can enhance the ebuild. I've found ncurses is not in dep list. Even if it is a sys package, I assume it has to be added ? (i add it in the patch)
I also saw "pango" dep but i didn't found any reference of it in the documentation and in m4 files. There are other ones (gcrypt, gpg, tasn1 and all webinterface related) but I suppose they must be there for something. If I have some time in next days I will look at that.
For the moment, here is the patch for the new version.
Created attachment 159995 [details, diff]
Patch to btg-0.9.7 to btg-0.9.8 (with extra packages from sunrise)
Same patch as above but with two packages (only in sunrise) that prevent using internal build of plotmm and xmlrpc-epi.
I can't compile the 0.9.8 release: -pc-linux-gnu/4.3.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../lib64/crtn.o -march=athlon64 -march=athlon64 -Wl,-soname -Wl,libbtgcore.so.0 -o .libs/libbtgcore.so.0.0.0 /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libboost_iostreams-mt-s.a(zlib.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/libboost_iostreams-mt-s.a: could not read symbols: Bad value collect2: ld returned 1 exit status emerge --info: Portage 2.2_rc1 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r3-mythtv x86_64) ================================================================= System uname: Linux-2.6.25-gentoo-r3-mythtv-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5 Timestamp of tree: Sun, 13 Jul 2008 10:30:02 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.5, 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=athlon64 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="Manifest distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="" 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/local/portage /usr/local/maintainer" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X acl alsa amd64 berkdb cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog midi mmx mmxext mudflap ncurses nptl nptlonly opengl openmp pam pcre perl pppd python readline reflection session spl sse sse2 sse3 ssl tcpd unicode xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS (In reply to comment #6) > I can't compile the 0.9.8 release: > > -pc-linux-gnu/4.3.1/../../.. -lstdc++ -lm -lc -lgcc_s > /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/crtendS.o > /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../lib64/crtn.o > -march=athlon64 -march=athlon64 -Wl,-soname -Wl,libbtgcore.so.0 -o > .libs/libbtgcore.so.0.0.0 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: > /usr/lib/libboost_iostreams-mt-s.a(zlib.o): relocation R_X86_64_32 against `a > local symbol' can not be used when making a shared object; recompile with -fPIC > /usr/lib/libboost_iostreams-mt-s.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > > emerge --info: > > Portage 2.2_rc1 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, > 2.6.25-gentoo-r3-mythtv x86_64) > ================================================================= > System uname: > Linux-2.6.25-gentoo-r3-mythtv-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5 > Timestamp of tree: Sun, 13 Jul 2008 10:30:02 +0000 > app-shells/bash: 3.2_p39 > dev-lang/python: 2.5.2-r4 > dev-python/pycrypto: 2.0.1-r6 > sys-apps/baselayout: 2.0.0 > sys-apps/openrc: 0.2.5 > sys-apps/sandbox: 1.2.18.1-r2 > sys-devel/autoconf: 2.13, 2.62-r1 > sys-devel/automake: 1.5, 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=athlon64 -O2 -pipe -fomit-frame-pointer" > CHOST="x86_64-pc-linux-gnu" > CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config > /usr/kde/3.5/shutdown /usr/share/config" > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf > /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ > /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild > /etc/splash /etc/terminfo /etc/udev/rules.d" > CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" > DISTDIR="/usr/portage/distfiles" > FEATURES="Manifest distlocks parallel-fetch preserve-libs sandbox sfperms > strict unmerge-orphans userfetch" > GENTOO_MIRRORS="http://distfiles.gentoo.org > http://distro.ibiblio.org/pub/linux/distributions/gentoo" > LDFLAGS="" > 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/local/portage /usr/local/maintainer" > SYNC="rsync://rsync.gentoo.org/gentoo-portage" > USE="3dnow 3dnowext X acl alsa amd64 berkdb cli cracklib crypt cups dri fortran > gdbm gpm iconv isdnlog midi mmx mmxext mudflap ncurses nptl nptlonly opengl > openmp pam pcre perl pppd python readline reflection session spl sse sse2 sse3 > ssl tcpd unicode xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" > APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm > authn_default authn_file authz_dbm authz_default authz_groupfile authz_host > authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir > disk_cache env expires ext_filter file_cache filter headers include info > log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling > status unique_id userdir usertrack vhost_alias" ELIBC="glibc" > INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz > cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" > LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia" > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, > LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS > Does the 0.9.7 release working with the same configuration ? 0.9.7 seems to compile fine. There is a Thread in the Gentoo Forum from some Users with the same problem. http://forums.gentoo.org/viewtopic-t-600362-highlight-btg.html (In reply to comment #8) > 0.9.7 seems to compile fine. There is a Thread in the Gentoo Forum from some > Users with the same problem. > > http://forums.gentoo.org/viewtopic-t-600362-highlight-btg.html > I think your issue is quite the same as this one between gnash and boost : bug #212943. It was resolved with this patch : http://bugs.gentoo.org/attachment.cgi?id=149609 and the explanation are here : https://savannah.gnu.org/bugs/?22840 As I've not 64 bits system I can't test anything but I'm going to try to write a patch. Created attachment 161319 [details, diff]
Patch trying to fix boost linking error
If I've understand what I've read, this patch should help you emerging btg-0.9.8. As it is fully un-tested, I don't provide an ebuild with it but you only have to add this line just at the end of the src_unpack :
epatch "${FILESDIR}/${P}-boostlink.patch"
Please, report the result.
(In reply to comment #10) > Created an attachment (id=161319) [edit] > Patch trying to fix boost linking error > > If I've understand what I've read, this patch should help you emerging > btg-0.9.8. As it is fully un-tested, I don't provide an ebuild with it but you > only have to add this line just at the end of the src_unpack : > epatch "${FILESDIR}/${P}-boostlink.patch" > > Please, report the result. > Not work for me. New ebuild install not stable boost and fail compile, require libtorrent library. In portage system libtorrent conflicts with rb_torrent and with new boost i cant compile rb_torrent =( (In reply to comment #10) > Created an attachment (id=161319) [edit] > Patch trying to fix boost linking error > > If I've understand what I've read, this patch should help you emerging > btg-0.9.8. As it is fully un-tested, I don't provide an ebuild with it but you > only have to add this line just at the end of the src_unpack : > epatch "${FILESDIR}/${P}-boostlink.patch" > > Please, report the result. > Patch works on btg-0.9.9-rc1. Created attachment 170832 [details, diff]
patch against btg-0.9.7.ebuild
btg-0.9.8.ebuild
- added things from Mounir Lamouri
- added warnings for webinterface
- sed patch to let btg compile with rb_libtorrent-0.13.1
Created attachment 170833 [details, diff]
patch against btgd-init
- added reload option (to reread passwd file)
Created attachment 170837 [details, diff]
patch against btg-0.9.7.ebuild
btg-0.9.9_rc1.ebuild
Created attachment 170841 [details, diff] patch against btg-0.9.7.ebuild btg-9999.ebuild - svn ebuild - needs rb_libtorrent-0.14, see bug #245731 Created attachment 179919 [details]
Updated patch with EAPI 2
Just a small update for EAPI 2.
This patch http://bugs.gentoo.org/attachment.cgi?id=161319 fixes the following compile error with ver. 0.9.9_rc3 =ERROR= /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libboost_iostreams-mt-s.a(zlib.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/libboost_iostreams-mt-s.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[3]: *** [libbtgcore.la] Error 1 make[3]: Leaving directory `/home/kodiakmax/downloads/btg-devel/trunk/bcore' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/kodiakmax/downloads/btg-devel/trunk/bcore' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kodiakmax/downloads/btg-devel/trunk' make: *** [all] Error 2 ==EMERGE INFO== Portage 2.2_rc17 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.28-sabayon x86_64) ================================================================= System uname: Linux-2.6.28-sabayon-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-glibc2.2.5 Timestamp of tree: Wed, 28 Jan 2009 22:15:01 +0000 distcc 3.0 x86_64-pc-linux-gnu [disabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r2 sys-apps/sandbox: 1.3.3 sys-devel/autoconf: 2.13, 2.63 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.1-r1 sys-devel/binutils: 2.18-r4 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Os -march=x86-64 -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/share/config/kdm /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /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/skel /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-Os -march=x86-64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-s -j3" 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/local/portage/layman/sabayon" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="7Zip X a52 aac aalib accessibility acl acpi aiglx aim alsa amd64 arts artswrappersuid audiofile avahi berkdb bidi bluetooth branding bzip2 cairo cdda cddb cdr chm cjk cli config_wizard cpudetection cracklib crypt css cups dbox2 dbus device-mapper dga dri dts dv dvb dvd dvdr dvdread dvi dxr3 emboss encode extramodules fam fame fat ffmpeg fftw firefox flac flash foomatic-db fortran freetype gcj gdbm gif gimpprint gnutls gphoto2 gpm gs gsm gstreamer gtk hal hfs iconv icq ieee1394 imap inotify ipod ipv6 irc irda isdnlog jabber jack jfs jingle joystick jpeg kde kdeenablefinal kdehiddenvisibility kdeprefix kerberos kickoff kipi lame lcd ldap libnotify live lj lm_sensors logitech-mouse lzo mad mail midi mikmod mjpeg mmx mng mozdevelop mp3 mp3rtp mpeg msn mudflap multilib musepack musicbrainz ncurses network new-login nls nptl nptlonly nsplugin ntfs ogg openal openexr opengl openmp pam pcmcia pcre pda pdf perl png povray ppds pppd pulseaudio python qt3 qt3support qt4 quicktime quotas rar rdesktop readline reflection reiserfs rss scanner sdl session slp sms speex spell spl sse sse2 ssl startup-notification stream svg sysfs tcpd theora tiff tracker truetype udev unicode usb v4l v4l2 visualization voice vorbis weather wifi wmf x264 xcb xfs xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc yahoo zeroconf 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_ownerauthz_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" APACHE2_MPMS="prefork" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Any updates? I can't seem to apply the patch. ------------------------------------------- patching file btg-0.9.7.ebuild Hunk #1 FAILED at 1. Hunk #2 FAILED at 53. Hunk #3 FAILED at 81. 3 out of 3 hunks FAILED -- saving rejects to file btg-0.9.7.ebuild.rej ------------------------------------------- I think the 0.9.7 ebuild has been updated since the creation of these patches and I don't have the knowledge to update the patch. 1.0.0 committed |