diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2011-02-06 15:06:17 +0000 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2011-02-06 15:06:17 +0000 |
commit | 69a09a9a922005caba20d5ecb5029f3df0d5130d (patch) | |
tree | 42de6e9c4e44ff60038c7ac131b6b7fb75cd604b /net-misc/networkmanager | |
parent | Unset unused variable. (diff) | |
download | gentoo-2-69a09a9a922005caba20d5ecb5029f3df0d5130d.tar.gz gentoo-2-69a09a9a922005caba20d5ecb5029f3df0d5130d.tar.bz2 gentoo-2-69a09a9a922005caba20d5ecb5029f3df0d5130d.zip |
Fix bug #353807 and bug #353549
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/networkmanager')
4 files changed, 249 insertions, 1 deletions
diff --git a/net-misc/networkmanager/ChangeLog b/net-misc/networkmanager/ChangeLog index df6c19704ac6..74dac53b77ec 100644 --- a/net-misc/networkmanager/ChangeLog +++ b/net-misc/networkmanager/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/networkmanager # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.95 2011/01/31 15:17:30 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.96 2011/02/06 15:06:17 qiaomuf Exp $ + +*networkmanager-0.8.2-r5 (06 Feb 2011) + + 06 Feb 2011; Mu Qiao <qiaomuf@gentoo.org> +networkmanager-0.8.2-r5.ebuild, + +files/networkmanager-0.8.2-fix-tests.patch, + +files/networkmanager-0.8.2-fix-timestamp.patch: + Fix bug #353807 and bug #353549 31 Jan 2011; Samuli Suominen <ssuominen@gentoo.org> networkmanager-0.8-r1.ebuild, networkmanager-0.8.1-r6.ebuild, diff --git a/net-misc/networkmanager/files/networkmanager-0.8.2-fix-tests.patch b/net-misc/networkmanager/files/networkmanager-0.8.2-fix-tests.patch new file mode 100644 index 000000000000..dc3a99b11044 --- /dev/null +++ b/net-misc/networkmanager/files/networkmanager-0.8.2-fix-tests.patch @@ -0,0 +1,57 @@ +From 803277ff3b91f721846c90c092bb6306f2073810 Mon Sep 17 00:00:00 2001 +From: Mu Qiao <qiaomuf@gentoo.org> +Date: Sun, 6 Feb 2011 22:23:58 +0000 +Subject: [PATCH] remove tests + Signed-off-by: Mu Qiao <qiaomuf@gentoo.org> + +--- + configure.ac | 1 - + system-settings/plugins/ifnet/Makefile.am | 1 - + system-settings/plugins/ifnet/tests/Makefile.am | 14 -------------- + 3 files changed, 0 insertions(+), 16 deletions(-) + delete mode 100644 system-settings/plugins/ifnet/tests/Makefile.am + +diff --git a/configure.ac b/configure.ac +index 9cb0e9c..6c51a2a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -541,7 +541,6 @@ system-settings/plugins/Makefile + system-settings/plugins/ifupdown/Makefile + system-settings/plugins/ifupdown/tests/Makefile + system-settings/plugins/ifnet/Makefile +-system-settings/plugins/ifnet/tests/Makefile + system-settings/plugins/ifcfg-rh/Makefile + system-settings/plugins/ifcfg-rh/tests/Makefile + system-settings/plugins/ifcfg-rh/tests/network-scripts/Makefile +diff --git a/system-settings/plugins/ifnet/Makefile.am b/system-settings/plugins/ifnet/Makefile.am +index f63f8ca..b09cc8f 100644 +--- a/system-settings/plugins/ifnet/Makefile.am ++++ b/system-settings/plugins/ifnet/Makefile.am +@@ -1,4 +1,3 @@ +-SUBDIRS = . tests + INCLUDES = \ + -I$(top_srcdir)/src/system-settings \ + -I$(top_srcdir)/include \ +diff --git a/system-settings/plugins/ifnet/tests/Makefile.am b/system-settings/plugins/ifnet/tests/Makefile.am +deleted file mode 100644 +index ead3f1f..0000000 +--- a/system-settings/plugins/ifnet/tests/Makefile.am ++++ /dev/null +@@ -1,14 +0,0 @@ +-INCLUDES=-I$(top_srcdir)/system-settings/plugins/ifnet\ +- -I$(top_srcdir)/libnm-glib \ +- -I$(top_srcdir)/libnm-util \ +- -I$(top_srcdir)/include \ +- -I$(top_srcdir)/src/system-settings +-TESTS = check_ifnet +-check_PROGRAMS = check_ifnet +-check_ifnet_SOURCES = test_all.c +-check_ifnet_LDFLAGS = -g +-check_ifnet_CPPFLAGS = $(CHECK_CFLAGS) $(GLIB_CFLAGS) -g +-check_ifnet_LDADD = $(top_srcdir)/libnm-util/libnm-util.la\ +- $(top_srcdir)/system-settings/plugins/ifnet/lib-ifnet-io.la\ +- $(CHECK_LIBS)\ +- $(GLIB_LIBS) +-- +1.7.3.4 + diff --git a/net-misc/networkmanager/files/networkmanager-0.8.2-fix-timestamp.patch b/net-misc/networkmanager/files/networkmanager-0.8.2-fix-timestamp.patch new file mode 100644 index 000000000000..736a58c59dae --- /dev/null +++ b/net-misc/networkmanager/files/networkmanager-0.8.2-fix-timestamp.patch @@ -0,0 +1,23 @@ +From 4b022ed32bb3d729fd21d2e33483fda03c6a6333 Mon Sep 17 00:00:00 2001 +From: Jiří Klimeš <jklimes@redhat.com> +Date: Tue, 23 Nov 2010 18:06:58 +0000 +Subject: core: correct TIMESTAMP type; fixes potential crash when time() is 32bit + +The Crash appeared on some platforms in glib while processing variable +arguments. +--- +diff --git a/src/system-settings/nm-default-wired-connection.c b/src/system-settings/nm-default-wired-connection.c +index 1cda3d9..0d19dea 100644 +--- a/src/system-settings/nm-default-wired-connection.c ++++ b/src/system-settings/nm-default-wired-connection.c +@@ -163,7 +163,7 @@ constructor (GType type, + NM_SETTING_CONNECTION_AUTOCONNECT, TRUE, + NM_SETTING_CONNECTION_UUID, uuid, + NM_SETTING_CONNECTION_READ_ONLY, priv->read_only, +- NM_SETTING_CONNECTION_TIMESTAMP, time (NULL), ++ NM_SETTING_CONNECTION_TIMESTAMP, (guint64) time (NULL), + NULL); + + g_free (id); +-- +cgit v0.8.3-6-g21f6 diff --git a/net-misc/networkmanager/networkmanager-0.8.2-r5.ebuild b/net-misc/networkmanager/networkmanager-0.8.2-r5.ebuild new file mode 100644 index 000000000000..97d6ee6e417f --- /dev/null +++ b/net-misc/networkmanager/networkmanager-0.8.2-r5.ebuild @@ -0,0 +1,161 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/networkmanager-0.8.2-r5.ebuild,v 1.1 2011/02/06 15:06:17 qiaomuf Exp $ + +EAPI="2" + +inherit autotools eutils gnome.org linux-info + +# NetworkManager likes itself with capital letters +MY_PN=${PN/networkmanager/NetworkManager} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Network configuration and management in an easy way. Desktop environment independent." +HOMEPAGE="http://www.gnome.org/projects/NetworkManager/" +SRC_URI="${SRC_URI//${PN}/${MY_PN}}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="avahi bluetooth doc nss gnutls dhclient dhcpcd kernel_linux resolvconf connection-sharing" + +RDEPEND=">=sys-apps/dbus-1.2 + >=dev-libs/dbus-glib-0.75 + >=net-wireless/wireless-tools-28_pre9 + >=sys-fs/udev-145[extras] + >=dev-libs/glib-2.18 + >=sys-auth/polkit-0.92 + >=dev-libs/libnl-1.1 + >=net-misc/modemmanager-0.4 + >=net-wireless/wpa_supplicant-0.5.10[dbus] + bluetooth? ( net-wireless/bluez ) + || ( sys-libs/e2fsprogs-libs <sys-fs/e2fsprogs-1.41.0 ) + avahi? ( net-dns/avahi[autoipd] ) + gnutls? ( + nss? ( >=dev-libs/nss-3.11 ) + !nss? ( dev-libs/libgcrypt + net-libs/gnutls ) ) + !gnutls? ( >=dev-libs/nss-3.11 ) + dhclient? ( + dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 ) + !dhcpcd? ( net-misc/dhcp ) ) + !dhclient? ( >=net-misc/dhcpcd-4.0.0_rc3 ) + resolvconf? ( net-dns/openresolv ) + connection-sharing? ( + net-dns/dnsmasq + net-firewall/iptables )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + dev-util/intltool + >=net-dialup/ppp-2.4.5 + doc? ( >=dev-util/gtk-doc-1.8 )" + +S=${WORKDIR}/${MY_P} + +sysfs_deprecated_check() { + ebegin "Checking for SYSFS_DEPRECATED support" + + if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then + eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" + eerror "or NetworkManager will not work correctly." + eerror "See http://bugs.gentoo.org/333639 for more info." + die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" + fi + eend $? +} + +pkg_setup() { + # FIXME. Required by -confchanges.patch, but the patch is invalid as + # ConsoleKit and PolicyKit is enough to get authorization. + enewgroup plugdev + + if use kernel_linux; then + get_version + if linux_config_exists; then + sysfs_deprecated_check + else + ewarn "Was unable to determine your kernel .config" + ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." + ewarn "See http://bugs.gentoo.org/333639 for more info." + fi + + fi +} + +src_prepare() { + # dbus policy patch + epatch "${FILESDIR}/${P}-confchanges.patch" + # accept "gw" in /etc/conf.d/net (bug #339215) + epatch "${FILESDIR}/${P}-accept-gw.patch" + # fix shared connection wrt bug #350476 + # fix parsing dhclient.conf wrt bug #352638 + epatch "${FILESDIR}/${P}-shared-connection.patch" + # Backports #1 + epatch "${FILESDIR}/${P}-1.patch" + # won't crash upon startup for 32bit machines wrt bug #353807 + epatch "${FILESDIR}/${P}-fix-timestamp.patch" + # fix tests wrt bug #353549 + epatch "${FILESDIR}/${P}-fix-tests.patch" + eautoreconf +} + +src_configure() { + ECONF="--disable-more-warnings + --localstatedir=/var + --with-distro=gentoo + --with-dbus-sys-dir=/etc/dbus-1/system.d + --with-udev-dir=/etc/udev + --with-iptables=/sbin/iptables + $(use_enable doc gtk-doc) + $(use_with doc docs) + $(use_with resolvconf)" + + # default is dhcpcd (if none or both are specified), ISC dchclient otherwise + if use dhclient ; then + if use dhcpcd ; then + ECONF="${ECONF} --with-dhcpcd --without-dhclient" + else + ECONF="${ECONF} --with-dhclient --without-dhcpcd" + fi + else + ECONF="${ECONF} --with-dhcpcd --without-dhclient" + fi + + # default is NSS (if none or both are specified), GnuTLS otherwise + if use gnutls ; then + if use nss ; then + ECONF="${ECONF} --with-crypto=nss" + else + ECONF="${ECONF} --with-crypto=gnutls" + fi + else + ECONF="${ECONF} --with-crypto=nss" + fi + + econf ${ECONF} +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # Need to keep the /var/run/NetworkManager directory + keepdir /var/run/NetworkManager + + # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts + keepdir /etc/NetworkManager/dispatcher.d + + dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" + + # Add keyfile plugin support + keepdir /etc/NetworkManager/system-connections + insinto /etc/NetworkManager + newins "${FILESDIR}/nm-system-settings.conf-ifnet" nm-system-settings.conf \ + || die "newins failed" +} + +pkg_postinst() { + elog "You will need to reload DBus if this is your first time installing" + elog "NetworkManager, or if you're upgrading from 0.7 or older." + elog "" +} |