summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2009-02-04 17:21:27 +0000
committerRobert Buchholz <rbu@gentoo.org>2009-02-04 17:21:27 +0000
commite0462e78620731398ef5e01c802a3f6079c67ae9 (patch)
tree0cf7377ab08e578ea5cfbb8f484681378eaa08ac /net-im/kadu
parentUpdate deps. Per bug #257382. Force thanks to ppc mess. (diff)
downloadgentoo-2-e0462e78620731398ef5e01c802a3f6079c67ae9.tar.gz
gentoo-2-e0462e78620731398ef5e01c802a3f6079c67ae9.tar.bz2
gentoo-2-e0462e78620731398ef5e01c802a3f6079c67ae9.zip
Do allow building against internal libgadu, remove USE flag. This solves bug
#256509 (file collision), bug #247990 (internal library copy) and security bug #244888 (buffer overread in libgadu). Do not strip binaries (bug #251995). (Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'net-im/kadu')
-rw-r--r--net-im/kadu/ChangeLog13
-rw-r--r--net-im/kadu/files/kadu-0.6.0.2-kill-strip.patch39
-rw-r--r--net-im/kadu/kadu-0.6.0.2-r1.ebuild (renamed from net-im/kadu/kadu-0.6.0.1.ebuild)17
-rw-r--r--net-im/kadu/kadu-0.6.0.2.ebuild195
-rw-r--r--net-im/kadu/metadata.xml3
5 files changed, 60 insertions, 207 deletions
diff --git a/net-im/kadu/ChangeLog b/net-im/kadu/ChangeLog
index 09f9a64e3dc4..ddd8d88cff73 100644
--- a/net-im/kadu/ChangeLog
+++ b/net-im/kadu/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-im/kadu
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/ChangeLog,v 1.65 2008/12/21 21:27:18 flameeyes Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/ChangeLog,v 1.66 2009/02/04 17:21:27 rbu Exp $
+
+*kadu-0.6.0.2-r1 (04 Feb 2009)
+
+ 04 Feb 2009; Robert Buchholz <rbu@gentoo.org> metadata.xml,
+ +files/kadu-0.6.0.2-kill-strip.patch, -kadu-0.6.0.1.ebuild, -kadu-0.6.0.2.ebuild,
+ +kadu-0.6.0.2-r1.ebuild:
+ Do allow building against internal libgadu, remove USE flag. This solves bug
+ #256509 (file collision), bug #247990 (internal library copy) and security bug
+ #244888 (buffer overread in libgadu). Do not strip binaries (bug #251995).
21 Dec 2008; Diego E. Pettenò <flameeyes@gentoo.org> metadata.xml:
Fix cla's name in metadata.xml. Thomas, please fix your UTF-8.
diff --git a/net-im/kadu/files/kadu-0.6.0.2-kill-strip.patch b/net-im/kadu/files/kadu-0.6.0.2-kill-strip.patch
new file mode 100644
index 000000000000..b9ede5098623
--- /dev/null
+++ b/net-im/kadu/files/kadu-0.6.0.2-kill-strip.patch
@@ -0,0 +1,39 @@
+From 7ccbae5f87973acf551c943488c93c89ebef6f96 Mon Sep 17 00:00:00 2001
+From: Robert Buchholz <rbu@goodpoint.de>
+Date: Wed, 4 Feb 2009 17:26:46 +0100
+Subject: [PATCH] Kill -s CFLAG for regular build
+
+Binaries are stripped using "make install-strip" and not during compile.
+---
+ configure.ac | 8 --------
+ 1 files changed, 0 insertions(+), 8 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 0f32cfe..30df316 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -802,10 +802,6 @@ if test "$enable_debug" = "yes"; then
+ CXXFLAGS="$CXXFLAGS -ggdb"
+ CFLAGS="$CFLAGS -ggdb"
+ libgadu_CFLAGS="$CFLAGS -ggdb"
+-else
+- CXXFLAGS="$CXXFLAGS -s"
+- CFLAGS="$CFLAGS -s"
+- libgadu_CFLAGS="$CFLAGS -s"
+ fi
+
+
+@@ -820,10 +816,6 @@ if test -z "$enable_macosx"; then
+ SHARED_FLAGS=
+ fi
+ if test "$enable_macosx" = "yes"; then
+- # -s kills dynamic modules
+- CXXFLAGS="`echo $CXXFLAGS | sed 's/ -s//'`"
+- CFLAGS="`echo $CFLAGS | sed 's/ -s//'`"
+-
+ LDFLAGS="$LDFLAGS -framework Carbon -framework QuickTime -lz -framework OpenGL -framework AGL"
+ DYNAMIC_OPT="-dynamic"
+ SO_EXT="dylib"
+--
+1.6.0.6
+
diff --git a/net-im/kadu/kadu-0.6.0.1.ebuild b/net-im/kadu/kadu-0.6.0.2-r1.ebuild
index ac9aef246954..322b820692dc 100644
--- a/net-im/kadu/kadu-0.6.0.1.ebuild
+++ b/net-im/kadu/kadu-0.6.0.2-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/kadu-0.6.0.1.ebuild,v 1.2 2008/07/20 18:17:43 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/kadu-0.6.0.2-r1.ebuild,v 1.1 2009/02/04 17:21:27 rbu Exp $
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils autotools
AGENT="0.4.4" #http://www.kadu.net/w/Agent
TABS="1.1.6" #http://www.kadu.net/w/Tabs
@@ -34,11 +34,11 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="X debug libgadu alsa arts esd voice speech spell nas oss ssl mail extramodules powerkadu kdeenablefinal"
+IUSE="X debug alsa arts esd voice speech spell nas oss ssl mail extramodules powerkadu kdeenablefinal"
DEPEND="=x11-libs/qt-3*
media-libs/libsndfile
- libgadu? ( >=net-libs/libgadu-1.8.0 )
+ >=net-libs/libgadu-1.8.0
alsa? ( media-libs/alsa-lib )
arts? ( kde-base/arts )
esd? ( media-sound/esound )
@@ -46,6 +46,7 @@ DEPEND="=x11-libs/qt-3*
ssl? ( dev-libs/openssl )
speech? ( app-accessibility/powiedz )
spell? ( app-dicts/aspell-pl )"
+RDEPEND=${DEPEND}
SRC_URI="http://www.kadu.net/download/stable/${P}.tar.bz2
extramodules? (
@@ -134,6 +135,9 @@ src_unpack() {
enable_module spell spellchecker
use voice && epatch "${FILESDIR}"/voice-gentoo.patch
+
+ epatch "${FILESDIR}"/${P}-kill-strip.patch
+ eautoreconf
}
src_compile() {
@@ -178,9 +182,8 @@ src_compile() {
fi
local myconf
- myconf="${myconf} --enable-modules --enable-dist-info=Gentoo --enable-pheaders"
+ myconf="${myconf} --enable-modules --enable-dist-info=Gentoo --enable-pheaders --with-existing-libgadu"
econf \
- $(use_with libgadu existing-libgadu) \
$(use_enable kdeenablefinal final) \
$(use_enable voice dependency-tracing) \
$(use_enable debug) \
diff --git a/net-im/kadu/kadu-0.6.0.2.ebuild b/net-im/kadu/kadu-0.6.0.2.ebuild
deleted file mode 100644
index e0bd65876f7e..000000000000
--- a/net-im/kadu/kadu-0.6.0.2.ebuild
+++ /dev/null
@@ -1,195 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/kadu-0.6.0.2.ebuild,v 1.1 2008/11/11 22:38:37 cla Exp $
-
-inherit flag-o-matic eutils
-
-AGENT="0.4.4" #http://www.kadu.net/w/Agent
-TABS="1.1.6" #http://www.kadu.net/w/Tabs
-LED_NOTIFY="0.18" #http://www.kadu.net/~blysk/
-FILTERING="20080224" #http://www.kadu.net/~pinkworm/filtering/
-SCREENSHOT="20080104"
-OSD_NOTIFY="0.4.2" #http://www.kadu.net/forum/viewtopic.php?t=8879
-PROFILES="0.3.1" #http://www.kadu.net/forum/viewtopic.php?t=6282
-FIREWALL="0.7.5.1"
-
-SPELLCHECKER="20071230"
-MAIL="0.3.3"
-
-POWERKADU="2.0.4"
-ANONYM_CHECK="0.2"
-ANTYSTRING="0.2"
-AUTOHIDE="0.2.1"
-AUTOSTATUS="0.1"
-CENZOR="0.2"
-SPLITMESG="0.2"
-WORDFIX="0.3"
-PARSEREXT="0.1.1"
-
-DESCRIPTION="QT client for popular in Poland Gadu-Gadu IM network"
-HOMEPAGE="http://kadu.net/"
-
-LICENSE="GPL-2"
-
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-
-IUSE="X debug libgadu alsa arts esd voice speech spell nas oss ssl mail extramodules powerkadu kdeenablefinal"
-
-DEPEND="=x11-libs/qt-3*
- media-libs/libsndfile
- libgadu? ( >=net-libs/libgadu-1.8.0 )
- alsa? ( media-libs/alsa-lib )
- arts? ( kde-base/arts )
- esd? ( media-sound/esound )
- nas? ( media-libs/nas )
- ssl? ( dev-libs/openssl )
- speech? ( app-accessibility/powiedz )
- spell? ( app-dicts/aspell-pl )"
-
-SRC_URI="http://www.kadu.net/download/stable/${P}.tar.bz2
- extramodules? (
- http://www.kadu.net/~blysk/led_notify-${LED_NOTIFY}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-profiles-${PROFILES}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-osdhints_notify-${OSD_NOTIFY}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-firewall-${FIREWALL}.tar.bz2
- http://kadu.net/~arvenil/tabs/download/${PV}/kadu-tabs-${TABS}.tar.bz2
- http://www.kadu.net/download/modules_extra/filtering/filtering-${FILTERING}.tar.bz2
- http://www.kadu.net/download/modules_extra/screenshot/screenshot-${SCREENSHOT}.tar.bz2
- http://misiek.jah.pl/assets/2008/2/8/agent-${AGENT}.tar.gz )
- powerkadu? (
- http://www.kadu.net/~dorr/moduly/kadu-powerkadu-${POWERKADU}.tar.bz2
- http://kadu.net/~patryk/anonymous_check/anonymous_check-${ANONYM_CHECK}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-antistring-${ANTYSTRING}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-auto_hide-${AUTOHIDE}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-autostatus-${AUTOSTATUS}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-cenzor-${CENZOR}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-split_messages-${SPLITMESG}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-word_fix-${WORDFIX}.tar.bz2
- http://www.kadu.net/~dorr/moduly/kadu-parser_extender-${PARSEREXT}.tar.bz2 )
- mail? (
- http://www.kadu.net/~weagle/mail/mail-${MAIL}.tar.bz2 )
- spell? (
- http://www.kadu.net/download/modules_extra/spellchecker/spellchecker-${SPELLCHECKER}.tar.bz2
- )"
-
-S="${WORKDIR}"/${PN}
-
-enable_module() {
- if use ${1}; then
- mv "${WORKDIR}"/${2} "${WORKDIR}"/kadu/modules/ || die "Error moving module ${2}"
- module_config ${2} m
- fi
-}
-
-module_config() {
- sed -i -r "s/(^module_${1}\\s*=\\s*).*/\\1${2}/" .config
-}
-
-spec_config() {
- sed -i -r "s/(^${2}\\s*=\\s*).*//" modules/${1}/spec
- echo "${2}=${3}" >> modules/${1}/spec
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Disabling autodownload for modules and icons
- rm -f "${WORKDIR}"/kadu/modules/*.web
- rm -f "${WORKDIR}"/kadu/varia/themes/icons/*.web
-
- # Disabling all modules and iconsets for further activation via USE flags
- sed .config -i -e 's/=m/=n/g'
- sed .config -i -e 's/=y/=n/g'
-
- # Enable default icon theme
- sed .config -i -e 's/icons_default=n/icons_default=y/'
-
- # Enable default emoticon theme
- sed .config -i -e 's/emoticons_penguins=n/emoticons_penguins=y/'
-
- # Enabling extra modules
- enable_module extramodules agent
- enable_module extramodules osdhints_notify
- enable_module extramodules led_notify
- enable_module extramodules tabs
- enable_module extramodules profiles
- enable_module extramodules firewall
- enable_module extramodules filtering
- enable_module extramodules screenshot
-
- # Enabling powerkadu and it's dependencies
- enable_module powerkadu powerkadu
- enable_module powerkadu anonymous_check
- enable_module powerkadu antistring
- enable_module powerkadu auto_hide
- enable_module powerkadu autostatus
- enable_module powerkadu cenzor
- enable_module powerkadu split_messages
- enable_module powerkadu word_fix
- enable_module powerkadu parser_extender
-
- enable_module mail mail
- enable_module spell spellchecker
-
- use voice && epatch "${FILESDIR}"/voice-gentoo.patch
-}
-
-src_compile() {
- filter-flags -fno-rtti
-
- # Enabling default iconset
- module_config icons_default y
-
- # Enabling default emoticons
- module_config emoticons_penguins y
-
- # Enabling dependencies that are needed by other modules
- module_config account_management m
- module_config autoaway m
- module_config autoresponder m
- module_config config_wizard m
- module_config dcc m
- module_config default_sms m
- module_config docking m
- module_config hints m
- module_config notify m
- module_config history m
- module_config sms m
- module_config sound m
- module_config desktop_docking m
- module_config migration m
-
- use speech && module_config speech m
- use ssl && module_config encryption y
- use alsa && module_config alsa_sound m
- use arts && module_config arts_sound m
- use esd && module_config esd_sound m
- use nas && module_config nas_sound m
- use voice && module_config voice m
- use X && module_config x11_docking m
-
- # Some fixes
- if use arts; then
- einfo "Fixing modules spec files"
- spec_config arts_sound MODULE_INCLUDES_PATH "\"$(kde-config --prefix)/include $(kde-config --prefix)/include/artsc\""
- spec_config arts_sound MODULE_LIBS_PATH $(kde-config --prefix)/lib
- fi
-
- local myconf
- myconf="${myconf} --enable-modules --enable-dist-info=Gentoo --enable-pheaders"
- econf \
- $(use_with libgadu existing-libgadu) \
- $(use_enable kdeenablefinal final) \
- $(use_enable voice dependency-tracing) \
- $(use_enable debug) \
- ${myconf} || die
- emake || die
-}
-
-src_install() {
- emake \
- DESTDIR="${D}" \
- install || die
-}
diff --git a/net-im/kadu/metadata.xml b/net-im/kadu/metadata.xml
index 27321ee6f9dd..cb3e1c6bdccb 100644
--- a/net-im/kadu/metadata.xml
+++ b/net-im/kadu/metadata.xml
@@ -11,9 +11,6 @@
<flag name='config_wizard'>Enables configuration wizard module</flag>
<flag name='extraicons'>Enables extra icon set</flag>
<flag name='extramodules'>Enables extra module in kadu</flag>
- <flag name='libgadu'>Build against existing libgadu rather than
- built-in
- </flag>
<flag name='mail'>Enables mail module in kadu</flag>
<flag name='powerkadu'>Installs extra powerkadu modules</flag>
<flag name='speech'>Enables speech module in kadu</flag>