Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Updated PKGBUILD for mbm-gps-control-git
From 059c735433eeef93c59e8e5923218349fa6da9ee Mon Sep 17 00:00:00 2001
From: "Frederik \"Freso\" S. Olesen" <freso.dk@gmail.com>
Date: Sat, 15 Feb 2014 12:23:28 +0100
Subject: [PATCH] Remove call to g_type_init.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This is exactly the same as Olivier Mehani's patch for mbm-gpsd, that had this
commit message:
"""
From [0]:
“g_type_init has been deprecated since version 2.36 and should not be
used in newly-written code. the type system is now initialised
automatically”
[0] https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#g-type-init
"""
Signed-off-by: Frederik "Freso" S. Olesen <freso.dk@gmail.com>
---
src/gps_control.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/gps_control.c b/src/gps_control.c
index bfd1202..cfde6ab 100644
--- a/src/gps_control.c
+++ b/src/gps_control.c
@@ -311,8 +311,6 @@ void dbus_connect (DBUS_Connection * conn)
{
GError *error;
- g_type_init ();
-
error = NULL;
conn->connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
if (conn->connection == NULL) {
--
1.8.5.5
# Contributor: Andreas Boehler <andy dot boehler at gmx dot at>
_gitname=mbm-gps-control
pkgname="${_gitname}-git"
pkgver=r16.1d2fee0
pkgrel=1
pkgdesc="Graphical interface to mbm-gpsd"
arch=('i686' 'x86_64')
url="http://mbm.sourceforge.net/"
license=('GPL')
depends=('networkmanager' 'network-manager-applet' 'intltool')
makedepends=('git')
provides=("${_gitname}")
source=(
"${_gitname}::git://mbm.git.sourceforge.net/gitroot/mbm/${_gitname}/"
0001-Remove-call-to-g_type_init.patch
)
md5sums=('SKIP'
'c3b4b11c0ece644f270ac05ec941fb8a')
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_gitname"
git am "$srcdir/0001-Remove-call-to-g_type_init.patch"
}
build() {
cd "$srcdir/$_gitname"
unset CFLAGS
unset CXXFLAGS
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
}
package() {
cd "$srcdir/$_gitname"
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.