[arch-commits] Commit in ussp-push/trunk (PKGBUILD ussp-push-remote-name.patch)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Tue May 28 11:21:14 UTC 2013
Date: Tuesday, May 28, 2013 @ 13:21:14
Author: spupykin
Revision: 91803
build fix
Modified:
ussp-push/trunk/PKGBUILD
ussp-push/trunk/ussp-push-remote-name.patch
-----------------------------+
PKGBUILD | 3 ++-
ussp-push-remote-name.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-28 11:17:55 UTC (rev 91802)
+++ PKGBUILD 2013-05-28 11:21:14 UTC (rev 91803)
@@ -5,7 +5,7 @@
pkgname=ussp-push
pkgver=0.11
-pkgrel=5
+pkgrel=6
pkgdesc="OBEX object pusher for Linux"
arch=('i686' 'x86_64')
license=('GPL2')
@@ -23,6 +23,7 @@
build() {
cd $srcdir/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -lopenobex-apps-common"
./configure --prefix=/usr
make
}
Modified: ussp-push-remote-name.patch
===================================================================
--- ussp-push-remote-name.patch 2013-05-28 11:17:55 UTC (rev 91802)
+++ ussp-push-remote-name.patch 2013-05-28 11:21:14 UTC (rev 91803)
@@ -22,3 +22,45 @@
BTERROR("OBEX_Init failed: %s\n", strerror(errno));
obex_free(gt);
*err = -1;
+@@ -85,41 +85,6 @@
+ int bt_debug;
+
+
+-
+-/*
+- * These two functions are from affix/profiles/obex/obex_io.c
+- */
+-int get_filesize(const char *filename)
+-{
+- struct stat stats;
+-
+- stat(filename, &stats);
+- return (int) stats.st_size;
+-}
+-
+-uint8_t *easy_readfile(const char *filename, int *file_size)
+-{
+- int actual;
+- int fd;
+- uint8_t *buf;
+-
+- fd = open(filename, O_RDONLY, 0);
+- if (fd == -1) {
+- return NULL;
+- }
+- *file_size = get_filesize(filename);
+- printf("name=%s, size=%d\n", filename, *file_size);
+- if (!(buf = malloc(*file_size))) {
+- return NULL;
+- }
+-
+- actual = read(fd, buf, *file_size);
+- close(fd);
+-
+- *file_size = actual;
+- return buf;
+-}
+-
+ /*
+ * This function comes from affix/profiles/obex/obex_client.c .. All I changed
+ * was a BTERROR() macro. The OBEX_HandleInput() calls inside the loop should
More information about the arch-commits
mailing list