FreeBSD Bugzilla – Attachment 216627 Details for
Bug 248055
devel/libzim: update to 6.1.8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update patch to what was submitted upstream
libzim-6.1.8_rev3.diff (text/plain), 5.94 KB, created by
Steve Wills
on 2020-07-21 12:33:15 UTC
(
hide
)
Description:
update patch to what was submitted upstream
Filename:
MIME Type:
Creator:
Steve Wills
Created:
2020-07-21 12:33:15 UTC
Size:
5.94 KB
patch
obsolete
>diff --git devel/libzim/Makefile devel/libzim/Makefile >index 84ec60af5fba..e0bc7c301258 100644 >--- devel/libzim/Makefile >+++ devel/libzim/Makefile >@@ -1,8 +1,7 @@ > # $FreeBSD$ > > PORTNAME= libzim >-PORTVERSION= 5.0.0 >-PORTREVISION= 4 >+PORTVERSION= 6.1.8 > CATEGORIES= devel > > MAINTAINER= swills@FreeBSD.org >@@ -20,6 +19,6 @@ USE_GITHUB= yes > GH_ACCOUNT= openzim > > BINARY_ALIAS= python3=python${PYTHON_VER} python3-config=python${PYTHON_VER}-config >-PLIST_SUB= PORTVERSION=${PORTVERSION} >+PLIST_SUB= PORTVERSION=${PORTVERSION} PORTMAJ=${PORTVERSION:C/\..*//} > > .include <bsd.port.mk> >diff --git devel/libzim/distinfo devel/libzim/distinfo >index 2a7b5797b5c8..bc2edc93261e 100644 >--- devel/libzim/distinfo >+++ devel/libzim/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1559136305 >-SHA256 (openzim-libzim-5.0.0_GH0.tar.gz) = dbec0a36155315037a6496a9be5c7ede17171fcde47063c97ce937057b437fdb >-SIZE (openzim-libzim-5.0.0_GH0.tar.gz) = 1655189 >+TIMESTAMP = 1595027958 >+SHA256 (openzim-libzim-6.1.8_GH0.tar.gz) = 1be605b1d22a0a7c225e80eab2cb1a249bf0f1b500ec8ed42e1091fc96c49fb3 >+SIZE (openzim-libzim-6.1.8_GH0.tar.gz) = 28589142 >diff --git devel/libzim/files/patch-meson.build devel/libzim/files/patch-meson.build >index 5584abf0609f..d9ef649778cd 100644 >--- devel/libzim/files/patch-meson.build >+++ devel/libzim/files/patch-meson.build >@@ -1,26 +1,23 @@ >---- meson.build.orig 2019-04-15 13:10:25 UTC >+--- meson.build.orig 2020-07-15 14:24:54 UTC > +++ meson.build >-@@ -1,7 +1,7 @@ >- project('libzim', ['c', 'cpp'], >- version : '4.0.7', >- license : 'GPL2', >-- default_options : ['c_std=c11', 'cpp_std=c++11', 'werror=true']) >-+ default_options : ['c_std=c11', 'cpp_std=c++11']) >- >- if build_machine.system() != 'windows' >+@@ -7,7 +7,8 @@ if build_machine.system() != 'windows' > add_project_arguments('-D_LARGEFILE64_SOURCE=1', '-D_FILE_OFFSET_BITS=64', language: 'cpp') >-@@ -22,6 +22,9 @@ else > endif >- conf.set('ENABLE_USE_BUFFER_HEADER', get_option('USE_BUFFER_HEADER')) > >-+cc = meson.get_compiler('c') >-+execinfo_dep = cc.find_library('execinfo', required : false) >-+ >- static_linkage = get_option('static-linkage') >- static_linkage = static_linkage or get_option('default_library')=='static' >+-sizeof_off_t = meson.get_compiler('cpp').sizeof('off_t') >++cpp = meson.get_compiler('cpp') >++sizeof_off_t = cpp.sizeof('off_t') > >-@@ -73,3 +76,4 @@ pkg_mod.generate(libraries : libzim, >- filebase : 'libzim', >- description : 'A Library to zim.', >- requires : pkg_requires) >+ conf = configuration_data() >+ conf.set('VERSION', '"@0@"'.format(meson.project_version())) >+@@ -32,6 +33,10 @@ lzma_dep = dependency('liblzma', static:static_linkage >+ >+ zstd_dep = dependency('libzstd', required:false, static:static_linkage) >+ conf.set('ENABLE_ZSTD', zstd_dep.found()) > + >++if target_machine.system() == 'freebsd' >++ execinfo_dep = cpp.find_library('execinfo') >++endif >+ >+ xapian_dep = dependency('xapian-core', >+ required:false, >diff --git devel/libzim/files/patch-src_buffer.cpp devel/libzim/files/patch-src_buffer.cpp >index 9dd0ddb6ed6e..6c9ec919e488 100644 >--- devel/libzim/files/patch-src_buffer.cpp >+++ devel/libzim/files/patch-src_buffer.cpp >@@ -1,11 +1,11 @@ >---- src/buffer.cpp.orig 2018-09-04 16:23:32 UTC >+--- src/buffer.cpp.orig 2020-07-15 14:24:54 UTC > +++ src/buffer.cpp >-@@ -49,7 +49,7 @@ MMapBuffer::MMapBuffer(int fd, offset_t offset, zsize_ >- #if defined(__APPLE__) >+@@ -48,6 +48,8 @@ MMapBuffer::MMapBuffer(int fd, offset_t offset, zsize_ >+ _offset = offset-pa_offset; >+ #if defined(__APPLE__) || defined(__OpenBSD__) > #define MAP_FLAGS MAP_PRIVATE >- #else >-- #define MAP_FLAGS MAP_PRIVATE|MAP_POPULATE >++#elif defined(__FreeBSD__) > + #define MAP_FLAGS MAP_PRIVATE|MAP_PREFAULT_READ >+ #else >+ #define MAP_FLAGS MAP_PRIVATE|MAP_POPULATE > #endif >- #if !MMAP_SUPPORT_64 >- if(pa_offset.v >= INT32_MAX) { >diff --git devel/libzim/files/patch-src_file__compound.h devel/libzim/files/patch-src_file__compound.h >deleted file mode 100644 >index 3c44839782d3..000000000000 >--- devel/libzim/files/patch-src_file__compound.h >+++ /dev/null >@@ -1,10 +0,0 @@ >---- src/file_compound.h.orig 2018-07-11 01:26:16.144860000 +0000 >-+++ src/file_compound.h 2018-07-11 01:26:30.132058000 +0000 >-@@ -25,6 +25,7 @@ >- #include <map> >- #include <memory> >- #include <cstdio> >-+#include <time.h> >- >- namespace zim { >- >diff --git devel/libzim/files/patch-src_fs__unix.cpp devel/libzim/files/patch-src_fs__unix.cpp >index 043db4eca68d..8abe1ae1f439 100644 >--- devel/libzim/files/patch-src_fs__unix.cpp >+++ devel/libzim/files/patch-src_fs__unix.cpp >@@ -1,11 +1,11 @@ >---- src/fs_unix.cpp.orig 2018-12-04 23:56:33 UTC >+--- src/fs_unix.cpp.orig 2020-07-15 14:24:54 UTC > +++ src/fs_unix.cpp > @@ -34,7 +34,7 @@ namespace unix { > > zsize_t FD::readAt(char* dest, zsize_t size, offset_t offset) const > { >--#ifdef __APPLE__ >-+#if defined(__APPLE__) || defined(__FreeBSD__) >+-#if defined(__APPLE__) || defined(__OpenBSD__) >++#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) > # define PREAD pread > #else > # define PREAD pread64 >diff --git devel/libzim/files/patch-src_meson.build devel/libzim/files/patch-src_meson.build >index e13ad0127d28..c56f274f4984 100644 >--- devel/libzim/files/patch-src_meson.build >+++ devel/libzim/files/patch-src_meson.build >@@ -1,10 +1,10 @@ >---- src/meson.build.orig 2018-09-04 16:23:32 UTC >+--- src/meson.build.orig 2020-07-15 14:24:54 UTC > +++ src/meson.build >-@@ -58,6 +58,10 @@ if zlib_dep.found() >- deps += [zlib_dep] >+@@ -56,6 +56,10 @@ if zstd_dep.found() >+ deps += [zstd_dep] > endif > >-+if execinfo_dep.found() >++if target_machine.system() == 'freebsd' > + deps += [execinfo_dep] > +endif > + >diff --git devel/libzim/pkg-plist devel/libzim/pkg-plist >index 1f59b5112ddb..1930e59f6809 100644 >--- devel/libzim/pkg-plist >+++ devel/libzim/pkg-plist >@@ -12,6 +12,6 @@ include/zim/writer/creator.h > include/zim/writer/url.h > include/zim/zim.h > lib/libzim.so >-lib/libzim.so.5 >+lib/libzim.so.%%PORTMAJ%% > lib/libzim.so.%%PORTVERSION%% > libdata/pkgconfig/libzim.pc
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248055
:
216524
|
216604
|
216605
|
216627
|
216628