[MacPorts] #40840: s3fs: Update to 1.73 and switch to OSXFuse

MacPorts noreply at macports.org
Mon Jul 3 16:19:53 UTC 2017


#40840: s3fs: Update to 1.73 and switch to OSXFuse
----------------------------+--------------------------------
  Reporter:  genecrucean@…  |      Owner:  macports-tickets@…
      Type:  update         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  haspatch
      Port:  s3fs           |
----------------------------+--------------------------------

Comment (by huets):

 Frank,[[BR]]

 Here is a diff (I integrated the patch file).
 Is it better to do a pull request?

 Regards,[[BR]]
 Sylvain.


 {{{
 diff --git a/fuse/s3fs/Portfile b/fuse/s3fs/Portfile
 index 427becf..c40a8ca 100644
 --- a/fuse/s3fs/Portfile
 +++ b/fuse/s3fs/Portfile
 @@ -1,31 +1,38 @@
  # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c
 -basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

  PortSystem 1.0

  name                s3fs
 -version             1.61
 -revision        1
 +version             1.82
 +revision            0
  categories          fuse

  platforms           darwin
  maintainers         nomaintainer
  description         Amazon S3 filesystem for FUSE
  long_description    \
      FUSE-based file system backed by Amazon S3. Mount a bucket as a \
      local file system read/write. Store files/folders natively and \
      transparently.

 -homepage            https://code.google.com/p/s3fs/

 -master_sites        googlecode:s3fs
 +homepage            https://github.com/s3fs-fuse/s3fs-fuse/archive/
 +distfiles           v${version}.tar.gz
 +master_sites        ${homepage}
  license             GPL-2
 -checksums           rmd160  582c193888466341ecf0cc6472dd2a2b5e3eb803 \
 -                    sha256
 47e6700c9ec65f85cc1eeb004dcf33b4533b3415466107f310fe167f49f35ec5
 +checksums           rmd160  c57169e56e3b5764cc6f88f9389777db877209c1 \
 +                    sha256
 8a40f0b11b558b6d733eeff4fcc025cc416df37b6732001bb0c630f6d6d760dd

  depends_build       path:bin/pkg-config:pkgconfig
  depends_lib         port:curl \
                      port:libxml2 \
 -                    path:lib/pkgconfig/fuse.pc:fuse4x \
 +                    path:lib/pkgconfig/fuse.pc:osxfuse \
                      bin:ssh:openssh

 -# use_autoreconf      yes
 +patchfiles         patch-src_cache.cpp.diff
 +
 +post-extract {
 +  file rename ${workpath}/s3fs-fuse-${version}
 ${workpath}/s3fs-${version}
 +}
 +
 +use_autoreconf      yes
 diff --git a/fuse/s3fs/files/patch-src_cache.cpp.diff b/fuse/s3fs/files
 /patch-src_cache.cpp.diff
 new file mode 100644
 index 0000000..1cc7907
 --- /dev/null
 +++ b/fuse/s3fs/files/patch-src_cache.cpp.diff
 @@ -0,0 +1,11 @@
 +--- src/cache.cpp
 ++++ src/cache.cpp.new
 +@@ -59,7 +59,7 @@ using namespace std;
 + #ifdef HAVE_CLOCK_GETTIME
 + static int s3fs_clock_gettime(int clk_id, struct timespec* ts)
 + {
 +-  return clock_gettime(clk_id, ts);
 ++  return clock_gettime(static_cast<clockid_t>(clk_id), ts);
 + }
 + #else
 + static int s3fs_clock_gettime(int clk_id, struct timespec* ts)
 }}}



 Replying to [comment:12 mf2k]:
 > Thank you. [https://guide.macports.org/#development.patches Per the
 guidelines], please instead attach a unified diff of the Portfile so we
 can easily see what changes you are proposing.

--
Ticket URL: <https://trac.macports.org/ticket/40840#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list