Bug 174606 - [patch] sysutils/fusefs-curlftpfs: for 9.1R
Summary: [patch] sysutils/fusefs-curlftpfs: for 9.1R
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 10:40 UTC by arai.toshihiko
Modified: 2013-06-15 14:40 UTC (History)
0 users

See Also:


Attachments
file.diff (3.54 KB, patch)
2012-12-21 10:40 UTC, arai.toshihiko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description arai.toshihiko 2012-12-21 10:40:00 UTC

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-12-21 10:40:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dhn

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-06-15 14:25:37 UTC
Responsible Changed
From-To: dhn->wg

I'll take it.
Comment 3 William Grzybowski freebsd_committer freebsd_triage 2013-06-15 14:39:46 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-06-15 14:39:53 UTC
Author: wg
Date: Sat Jun 15 13:39:39 2013
New Revision: 320997
URL: http://svnweb.freebsd.org/changeset/ports/320997

Log:
  sysutils/fusefs-curlftpfs: unbreak build
  
  - Unbreak build for FreeBSD >= 9 [1]
  - Add LICENSE (GPLv2)
  
  PR:		ports/174606 [1]
  Submitted by:	ARAI Toshihiko <arai.toshihiko@gmail.com>
  Approved by:	culot / jpaetzel (mentors, implicit), maintainer (timeout)

Added:
  head/sysutils/fusefs-curlftpfs/files/extra-32-ftpfs.h   (contents, props changed)
  head/sysutils/fusefs-curlftpfs/files/extra-64-ftpfs.h   (contents, props changed)
  head/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c   (contents, props changed)
Deleted:
  head/sysutils/fusefs-curlftpfs/files/patch-ftpfs.c
Modified:
  head/sysutils/fusefs-curlftpfs/Makefile

Modified: head/sysutils/fusefs-curlftpfs/Makefile
==============================================================================
--- head/sysutils/fusefs-curlftpfs/Makefile	Sat Jun 15 13:30:13 2013	(r320996)
+++ head/sysutils/fusefs-curlftpfs/Makefile	Sat Jun 15 13:39:39 2013	(r320997)
@@ -11,6 +11,8 @@ PKGNAMEPREFIX=	fusefs-
 MAINTAINER=	dhn@FreeBSD.org
 COMMENT=	Mount remote ftp directories
 
+LICENSE=	GPLv2
+
 LIB_DEPENDS=	curl.6:${PORTSDIR}/ftp/curl
 
 GNU_CONFIGURE=	yes
@@ -21,8 +23,13 @@ PLIST_FILES=	bin/curlftpfs
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 900000
-BROKEN=		does not build
+.if ${OSVERSION} >= 1000000
+EXTRA_PATCHES+= ${FILESDIR}/extra-64-ftpfs.h
+.else
+EXTRA_PATCHES+= ${FILESDIR}/extra-32-ftpfs.h
+.endif
+.if ${OSVERSION} < 900000
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ftpfs.c
 .endif
 
-.include <bsd.port.post.mk> 
+.include <bsd.port.post.mk>

Added: head/sysutils/fusefs-curlftpfs/files/extra-32-ftpfs.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fusefs-curlftpfs/files/extra-32-ftpfs.h	Sat Jun 15 13:39:39 2013	(r320997)
@@ -0,0 +1,11 @@
+--- ftpfs.h.orig	2008-04-25 19:32:30.000000000 +0900
++++ ftpfs.h	2012-12-21 18:18:20.000000000 +0900
+@@ -75,7 +75,7 @@
+         do { if (level <= ftpfs.debug) {\
+                int i = 0; \
+                while (++i < level) fprintf(stderr, " "); \
+-               fprintf(stderr, "%ld ", time(NULL));\
++               fprintf(stderr, "%d ", time(NULL));\
+                fprintf(stderr, __FILE__ ":%d ", __LINE__);\
+                fprintf(stderr, args);\
+              }\

Added: head/sysutils/fusefs-curlftpfs/files/extra-64-ftpfs.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fusefs-curlftpfs/files/extra-64-ftpfs.h	Sat Jun 15 13:39:39 2013	(r320997)
@@ -0,0 +1,11 @@
+--- ftpfs.h.orig	2008-04-25 19:32:30.000000000 +0900
++++ ftpfs.h	2012-12-21 18:18:20.000000000 +0900
+@@ -75,7 +75,7 @@
+         do { if (level <= ftpfs.debug) {\
+                int i = 0; \
+                while (++i < level) fprintf(stderr, " "); \
+-               fprintf(stderr, "%ld ", time(NULL));\
++               fprintf(stderr, "%lld ", time(NULL));\
+                fprintf(stderr, __FILE__ ":%d ", __LINE__);\
+                fprintf(stderr, args);\
+              }\

Added: head/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c	Sat Jun 15 13:39:39 2013	(r320997)
@@ -0,0 +1,19 @@
+--- ./ftpfs.c.orig	2008-04-30 01:05:47.000000000 +0200
++++ ./ftpfs.c	2010-01-08 19:14:39.000000000 +0100
+@@ -611,10 +611,12 @@
+     curl_easy_cleanup(fh->write_conn);
+   g_free(fh->full_path);
+   g_free(fh->open_path);
+-  sem_destroy(&fh->data_avail);
+-  sem_destroy(&fh->data_need);
+-  sem_destroy(&fh->data_written);
+-  sem_destroy(&fh->ready);
++  if (fh->data_avail) {
++    sem_destroy(&fh->data_avail);
++    sem_destroy(&fh->data_need);
++    sem_destroy(&fh->data_written);
++    sem_destroy(&fh->ready);
++  }
+   free(fh);
+ }
+ 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"