Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2009 01:27:14 +0300 (MSK)
From:      Yuri Pankov <yuri.pankov@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        pesho.petrov@gmail.com
Subject:   ports/130520: [PATCH] audio/libmtp: add missing includes to fix on amd64
Message-ID:  <200901132227.n0DMREh5054360@darklight.homeunix.org>
Resent-Message-ID: <200901132230.n0DMU3gv046490@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         130520
>Category:       ports
>Synopsis:       [PATCH] audio/libmtp: add missing includes to fix on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 13 22:30:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Yuri Pankov
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD darklight.homeunix.org 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Wed Jan  7 12:28:58 MSK
>Description:
Add missing includes to fix on amd64 (prevents segfault in libmtp and fixes some of the examples).

Added file(s):
- files/patch-examples__albumart.c
- files/patch-examples__delfile.c
- files/patch-examples__getfile.c
- files/patch-examples__getplaylist.c
- files/patch-examples__newfolder.c
- files/patch-examples__newplaylist.c
- files/patch-examples__pathutils.c
- files/patch-examples__sendtr.c
- files/patch-examples__thumb.c
- files/patch-examples__trexist.c
- files/patch-src__libmtp.c

Port maintainer (pesho.petrov@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- libmtp-0.3.1.patch begins here ---
Index: files/patch-examples__albumart.c
===================================================================
RCS file: files/patch-examples__albumart.c
diff -N files/patch-examples__albumart.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__albumart.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,10 @@
+--- ./examples/albumart.c.orig	2008-06-23 01:43:36.000000000 +0400
++++ ./examples/albumart.c	2009-01-14 01:12:55.000000000 +0300
+@@ -21,6 +21,7 @@
+  */
+ #include "common.h"
+ #include "string.h"
++#include <stdlib.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <errno.h>
Index: files/patch-examples__delfile.c
===================================================================
RCS file: files/patch-examples__delfile.c
diff -N files/patch-examples__delfile.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__delfile.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,11 @@
+--- ./examples/delfile.c.orig	2009-01-14 01:14:19.000000000 +0300
++++ ./examples/delfile.c	2009-01-14 01:15:00.000000000 +0300
+@@ -23,6 +23,8 @@
+ #include "common.h"
+ #include "string.h"
+ #include "pathutils.h"
++#include <stdlib.h>
++#include <limits.h>
+ 
+ void delfile_usage(void);
+ void delfile_function(char *);
Index: files/patch-examples__getfile.c
===================================================================
RCS file: files/patch-examples__getfile.c
diff -N files/patch-examples__getfile.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__getfile.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,11 @@
+--- ./examples/getfile.c.orig	2009-01-14 01:15:17.000000000 +0300
++++ ./examples/getfile.c	2009-01-14 01:16:03.000000000 +0300
+@@ -22,6 +22,8 @@
+  */
+ #include "common.h"
+ #include "pathutils.h"
++#include <stdlib.h>
++#include <limits.h>
+ 
+ void getfile_function(char *,char *);
+ void getfile_command(int, char **);
Index: files/patch-examples__getplaylist.c
===================================================================
RCS file: files/patch-examples__getplaylist.c
diff -N files/patch-examples__getplaylist.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__getplaylist.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,11 @@
+--- ./examples/getplaylist.c.orig	2007-11-11 03:06:28.000000000 +0300
++++ ./examples/getplaylist.c	2009-01-14 01:12:55.000000000 +0300
+@@ -20,6 +20,8 @@
+  * Boston, MA 02111-1307, USA.
+  */
+ #include "common.h"
++#include <stdlib.h>
++#include <limits.h>
+ 
+ static uint32_t dump_playlist(LIBMTP_mtpdevice_t *device, LIBMTP_playlist_t *pl)
+ {
Index: files/patch-examples__newfolder.c
===================================================================
RCS file: files/patch-examples__newfolder.c
diff -N files/patch-examples__newfolder.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__newfolder.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,10 @@
+--- ./examples/newfolder.c.orig	2009-01-14 01:16:16.000000000 +0300
++++ ./examples/newfolder.c	2009-01-14 01:16:31.000000000 +0300
+@@ -22,6 +22,7 @@
+  */
+ #include "common.h"
+ #include "pathutils.h"
++#include <stdlib.h>
+ #include <libgen.h>
+ 
+ void newfolder_function(char *);
Index: files/patch-examples__newplaylist.c
===================================================================
RCS file: files/patch-examples__newplaylist.c
diff -N files/patch-examples__newplaylist.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__newplaylist.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,10 @@
+--- ./examples/newplaylist.c.orig	2008-06-23 01:44:46.000000000 +0400
++++ ./examples/newplaylist.c	2009-01-14 01:12:55.000000000 +0300
+@@ -21,6 +21,7 @@
+  */
+ #include "common.h"
+ #include "string.h"
++#include <stdlib.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <errno.h>
Index: files/patch-examples__pathutils.c
===================================================================
RCS file: files/patch-examples__pathutils.c
diff -N files/patch-examples__pathutils.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__pathutils.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,11 @@
+--- ./examples/pathutils.c.orig	2008-05-03 03:17:02.000000000 +0400
++++ ./examples/pathutils.c	2009-01-14 01:12:55.000000000 +0300
+@@ -21,6 +21,8 @@
+  */
+ #include "common.h"
+ #include "pathutils.h"
++#include <stdlib.h>
++#include <limits.h>
+ #include <string.h>
+ #include <libgen.h>
+ 
Index: files/patch-examples__sendtr.c
===================================================================
RCS file: files/patch-examples__sendtr.c
diff -N files/patch-examples__sendtr.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__sendtr.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,11 @@
+--- ./examples/sendtr.c.orig	2008-08-17 01:01:09.000000000 +0400
++++ ./examples/sendtr.c	2009-01-14 01:12:55.000000000 +0300
+@@ -31,6 +31,8 @@
+ 
+ #include "common.h"
+ #include "util.h"
++#include <stdlib.h>
++#include <limits.h>
+ #include <string.h>
+ #include <libgen.h>
+ #include <sys/stat.h>
Index: files/patch-examples__thumb.c
===================================================================
RCS file: files/patch-examples__thumb.c
diff -N files/patch-examples__thumb.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__thumb.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,11 @@
+--- ./examples/thumb.c.orig	2007-11-11 03:06:28.000000000 +0300
++++ ./examples/thumb.c	2009-01-14 01:12:55.000000000 +0300
+@@ -22,6 +22,8 @@
+  */
+ #include "common.h"
+ #include "string.h"
++#include <stdlib.h>
++#include <limits.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <errno.h>
Index: files/patch-examples__trexist.c
===================================================================
RCS file: files/patch-examples__trexist.c
diff -N files/patch-examples__trexist.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-examples__trexist.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,11 @@
+--- ./examples/trexist.c.orig	2007-11-11 03:06:28.000000000 +0300
++++ ./examples/trexist.c	2009-01-14 01:12:55.000000000 +0300
+@@ -20,6 +20,8 @@
+  * Boston, MA 02111-1307, USA.
+  */
+ #include "common.h"
++#include <stdlib.h>
++#include <limits.h>
+ 
+ static void usage (void)
+ {
Index: files/patch-src__libmtp.c
===================================================================
RCS file: files/patch-src__libmtp.c
diff -N files/patch-src__libmtp.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src__libmtp.c	13 Jan 2009 22:22:37 -0000
@@ -0,0 +1,10 @@
+--- ./src/libmtp.c.orig	2008-08-17 01:01:13.000000000 +0400
++++ ./src/libmtp.c	2009-01-14 01:12:55.000000000 +0300
+@@ -44,6 +44,7 @@
+ #include "device-flags.h"
+ #include "playlist-spl.h"
+ 
++#include <stdlib.h>
+ #include <string.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
--- libmtp-0.3.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901132227.n0DMREh5054360>