* Re: [PR PATCH] [Updated] [WIP] passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
2019-07-05 5:21 ` [PR PATCH] [Updated] [WIP] passwordsafe: update to 1.08.1BETA voidlinux-github
@ 2019-07-05 5:21 ` voidlinux-github
2019-07-05 5:45 ` voidlinux-github
` (7 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-05 5:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
There is an updated pull request by yopito against master on the void-packages repository
https://github.com/yopito/void-packages passwordsafe.1.08.1
https://github.com/void-linux/void-packages/pull/11854
[WIP] passwordsafe: update to 1.08.1BETA
A patch file from https://github.com/void-linux/void-packages/pull/11854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passwordsafe.1.08.1-11854.patch --]
[-- Type: application/text/x-diff, Size: 2898 bytes --]
From 669c29a76cce45c51a0c101c0f670b7429aee917 Mon Sep 17 00:00:00 2001
From: yopito <pierre.bourgin@free.fr>
Date: Fri, 5 Jul 2019 07:11:15 +0200
Subject: [PATCH] passwordsafe: update to 1.08.1BETA
---
.../patches/32bit-and-time64_t.patch | 14 ++++++++++++
srcpkgs/passwordsafe/template | 22 ++++++++-----------
2 files changed, 23 insertions(+), 13 deletions(-)
create mode 100644 srcpkgs/passwordsafe/patches/32bit-and-time64_t.patch
diff --git a/srcpkgs/passwordsafe/patches/32bit-and-time64_t.patch b/srcpkgs/passwordsafe/patches/32bit-and-time64_t.patch
new file mode 100644
index 00000000000..5d480652e9d
--- /dev/null
+++ b/srcpkgs/passwordsafe/patches/32bit-and-time64_t.patch
@@ -0,0 +1,14 @@
+32bit platforms (i686, armv7l) also have a struct __time64_t
+__TIME64_T_TYPE is a glibc-ism ?
+
+--- src/os/unix/pws_time.h.ORIG 2019-05-05 21:43:08.000000000 +0200
++++ src/os/unix/pws_time.h 2019-07-04 19:29:27.434139040 +0200
+@@ -15,7 +15,7 @@
+ #endif
+
+ typedef time_t __time32_t;
+-#ifndef __time64_t
++#if !defined(__time64_t) && !defined(__TIME64_T_TYPE)
+ typedef uint64_t __time64_t;
+ #endif
+
diff --git a/srcpkgs/passwordsafe/template b/srcpkgs/passwordsafe/template
index 060338551e1..7fb8b858209 100644
--- a/srcpkgs/passwordsafe/template
+++ b/srcpkgs/passwordsafe/template
@@ -1,6 +1,6 @@
# Template file for 'passwordsafe'
pkgname=passwordsafe
-version=1.07BETA
+version=1.08.1BETA
revision=1
wrksrc="pwsafe-${version}"
build_style=cmake
@@ -14,21 +14,17 @@ maintainer="Rui Abreu Ferreira <raf-ep@gmx.com>"
license="Artistic-2.0"
homepage="https://pwsafe.org"
distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz>pwsafe-${version}.tar.gz"
-checksum=242c06a9b2685e09fcefa4c8fca09a3f7ab3c38f338e2ca067992e072bdbe2d4
+checksum=2c3648e8189a32c107c7d7bc0527c919db36b3940f19b0e58b37f0f992ea42a7
+
+# crossbuild already handled via wrapper
+if [ -z "$CROSS_BUILD" ]; then
+ configure_args+=" -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3"
+
+fi
pre_configure() {
# ykpers-1 includes are hardcoded, add cross base
sed -i -e "s|-I\(/usr/include/ykpers-1\)|-I${XBPS_CROSS_BASE}\1|" CMakeLists.txt
-
- # workaround for cmake to find wx-config-gtk3
- # can be removed once there is only one 'wx-config'
- if [ "$CROSS_BUILD" ]; then
- # cannot override wxWidgets_CONFIG_EXECUTABLE set in
- # the cross toolchain file otherwise
- ln -s ${XBPS_WRAPPERDIR}/wx-config{-gtk3,}
- else
- sed -i "1i\set(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" CMakeLists.txt
- fi
}
do_install() {
@@ -51,7 +47,7 @@ do_install() {
vman docs/pwsafe.1 passwordsafe.1
# locales
- # NB: correspoding locales have to be enabled in /etc/default/libc-locales
+ # NB: corresponding locales have to be enabled in /etc/default/libc-locales
vmkdir usr/share/locale
vcopy build/src/ui/wxWidgets/I18N/mos/* usr/share/locale
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [WIP] passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
2019-07-05 5:21 ` [PR PATCH] [Updated] [WIP] passwordsafe: update to 1.08.1BETA voidlinux-github
2019-07-05 5:21 ` voidlinux-github
@ 2019-07-05 5:45 ` voidlinux-github
2019-07-05 6:47 ` voidlinux-github
` (6 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-05 5:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 218 bytes --]
New comment by yopito on void-packages repository
https://github.com/void-linux/void-packages/pull/11854#issuecomment-508636983
Comment:
fixed 32bit build but I'm not yet 100% confident about the corresponding patch.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [WIP] passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
` (2 preceding siblings ...)
2019-07-05 5:45 ` voidlinux-github
@ 2019-07-05 6:47 ` voidlinux-github
2019-07-05 7:57 ` voidlinux-github
` (5 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-05 6:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 421 bytes --]
New comment by pullmoll on void-packages repository
https://github.com/void-linux/void-packages/pull/11854#issuecomment-508650246
Comment:
@yopito You cannot test for a `typedef <some_type> __time64_t;` with `#if !defined(__time64_t)` because the typedef is not a macro. You could perhaps try to include `<linux/time.h>` and `typedef __kernel_time64_t __time64_t;` but I have no idea how to avoid a conflicting typedef.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [WIP] passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
` (3 preceding siblings ...)
2019-07-05 6:47 ` voidlinux-github
@ 2019-07-05 7:57 ` voidlinux-github
2019-07-05 7:59 ` voidlinux-github
` (4 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-05 7:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 341 bytes --]
New comment by yopito on void-packages repository
https://github.com/void-linux/void-packages/pull/11854#issuecomment-508668560
Comment:
@pullmoll: I agree; in fact, `__time64_t` is **both** a typedef and a macro, and the macro is defined only on 64bit platform :(
Opened an issue's upstream: https://github.com/pwsafe/pwsafe/issues/563
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [WIP] passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
` (4 preceding siblings ...)
2019-07-05 7:57 ` voidlinux-github
@ 2019-07-05 7:59 ` voidlinux-github
2019-07-05 22:42 ` [PR PATCH] [Updated] " voidlinux-github
` (3 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-05 7:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 362 bytes --]
New comment by yopito on void-packages repository
https://github.com/void-linux/void-packages/pull/11854#issuecomment-508668560
Comment:
@pullmoll: I agree; in fact, `__time64_t` is **both** a typedef and a macro, and the macro is defined only on 64bit platform :(
Opened an ~~issue's upstream~~ upstream's issue: https://github.com/pwsafe/pwsafe/issues/563
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
` (6 preceding siblings ...)
2019-07-05 22:42 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-07-05 22:42 ` voidlinux-github
2019-07-06 10:51 ` voidlinux-github
2019-07-13 3:14 ` [PR PATCH] [Merged]: " voidlinux-github
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-05 22:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
There is an updated pull request by yopito against master on the void-packages repository
https://github.com/yopito/void-packages passwordsafe.1.08.1
https://github.com/void-linux/void-packages/pull/11854
[WIP] passwordsafe: update to 1.08.1BETA
A patch file from https://github.com/void-linux/void-packages/pull/11854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passwordsafe.1.08.1-11854.patch --]
[-- Type: application/text/x-diff, Size: 3653 bytes --]
From 4ab3cbeef1b1e86a87347b0c2816ab8fb24a0a36 Mon Sep 17 00:00:00 2001
From: yopito <pierre.bourgin@free.fr>
Date: Fri, 5 Jul 2019 23:54:20 +0200
Subject: [PATCH] passwordsafe: update to 1.08.1BETA
---
srcpkgs/passwordsafe/patches/__time64_t.patch | 22 ++++++++++
srcpkgs/passwordsafe/template | 43 +++++--------------
2 files changed, 33 insertions(+), 32 deletions(-)
create mode 100644 srcpkgs/passwordsafe/patches/__time64_t.patch
diff --git a/srcpkgs/passwordsafe/patches/__time64_t.patch b/srcpkgs/passwordsafe/patches/__time64_t.patch
new file mode 100644
index 00000000000..45b00da201e
--- /dev/null
+++ b/srcpkgs/passwordsafe/patches/__time64_t.patch
@@ -0,0 +1,22 @@
+related issue: https://github.com/pwsafe/pwsafe/issues/563
+
+commit 497246d4beffcd9347b443b1622e4ea64a7b389c
+Author: ronys <ronys@pwsafe.org>
+Date: Fri Jul 5 22:23:28 2019 +0300
+
+ Fix GH563: broken build on 32 bit gcc 9.1
+
+diff --git src/os/unix/pws_time.h src/os/unix/pws_time.h
+index 4be9ffb90..683cb48b9 100644
+--- src/os/unix/pws_time.h
++++ src/os/unix/pws_time.h
+@@ -14,8 +14,7 @@
+ #include <time.h>
+ #endif
+
+-typedef time_t __time32_t;
+-#ifndef __time64_t
++#if !defined(__time64_t) && !defined(__TIME64_T_TYPE)
+ typedef uint64_t __time64_t;
+ #endif
+
diff --git a/srcpkgs/passwordsafe/template b/srcpkgs/passwordsafe/template
index 060338551e1..986de16cfe7 100644
--- a/srcpkgs/passwordsafe/template
+++ b/srcpkgs/passwordsafe/template
@@ -1,6 +1,6 @@
# Template file for 'passwordsafe'
pkgname=passwordsafe
-version=1.07BETA
+version=1.08.1BETA
revision=1
wrksrc="pwsafe-${version}"
build_style=cmake
@@ -14,44 +14,23 @@ maintainer="Rui Abreu Ferreira <raf-ep@gmx.com>"
license="Artistic-2.0"
homepage="https://pwsafe.org"
distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz>pwsafe-${version}.tar.gz"
-checksum=242c06a9b2685e09fcefa4c8fca09a3f7ab3c38f338e2ca067992e072bdbe2d4
+checksum=2c3648e8189a32c107c7d7bc0527c919db36b3940f19b0e58b37f0f992ea42a7
+
+# wx-config-gtk3 crossbuild handled via wrapper
+if [ -z "$CROSS_BUILD" ]; then
+ configure_args+=" -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3"
+
+fi
pre_configure() {
# ykpers-1 includes are hardcoded, add cross base
sed -i -e "s|-I\(/usr/include/ykpers-1\)|-I${XBPS_CROSS_BASE}\1|" CMakeLists.txt
- # workaround for cmake to find wx-config-gtk3
- # can be removed once there is only one 'wx-config'
- if [ "$CROSS_BUILD" ]; then
- # cannot override wxWidgets_CONFIG_EXECUTABLE set in
- # the cross toolchain file otherwise
- ln -s ${XBPS_WRAPPERDIR}/wx-config{-gtk3,}
- else
- sed -i "1i\set(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" CMakeLists.txt
- fi
+ # icons in right place
+ sed -i -e "s|share/pixmaps|share/icons/hicolor/48x48/apps|" CMakeLists.txt
}
-do_install() {
- # use 'passwordsafe' in filenames as much as possible.
- vbin build/pwsafe passwordsafe
- vinstall install/desktop/pwsafe.desktop 644 usr/share/applications passwordsafe.desktop
- vinstall install/graphics/pwsafe.png 644 usr/share/icons/hicolor/48x48/apps passwordsafe.png
- sed -i -e 's,^\(Exec\|Icon\)=.*,\1=passwordsafe,' ${DESTDIR}/usr/share/applications/passwordsafe.desktop
-
- # Help files
- for f in build/help/help*.zip; do
- vinstall $f 644 usr/share/${pkgname}/help
- done
-
- # XML files (format converters)
- vcopy xml usr/share/${pkgname}
-
+post_install() {
vlicense LICENSE
vdoc docs/config.txt
- vman docs/pwsafe.1 passwordsafe.1
-
- # locales
- # NB: correspoding locales have to be enabled in /etc/default/libc-locales
- vmkdir usr/share/locale
- vcopy build/src/ui/wxWidgets/I18N/mos/* usr/share/locale
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
` (5 preceding siblings ...)
2019-07-05 7:59 ` voidlinux-github
@ 2019-07-05 22:42 ` voidlinux-github
2019-07-05 22:42 ` voidlinux-github
` (2 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-05 22:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
There is an updated pull request by yopito against master on the void-packages repository
https://github.com/yopito/void-packages passwordsafe.1.08.1
https://github.com/void-linux/void-packages/pull/11854
[WIP] passwordsafe: update to 1.08.1BETA
A patch file from https://github.com/void-linux/void-packages/pull/11854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passwordsafe.1.08.1-11854.patch --]
[-- Type: application/text/x-diff, Size: 3653 bytes --]
From 4ab3cbeef1b1e86a87347b0c2816ab8fb24a0a36 Mon Sep 17 00:00:00 2001
From: yopito <pierre.bourgin@free.fr>
Date: Fri, 5 Jul 2019 23:54:20 +0200
Subject: [PATCH] passwordsafe: update to 1.08.1BETA
---
srcpkgs/passwordsafe/patches/__time64_t.patch | 22 ++++++++++
srcpkgs/passwordsafe/template | 43 +++++--------------
2 files changed, 33 insertions(+), 32 deletions(-)
create mode 100644 srcpkgs/passwordsafe/patches/__time64_t.patch
diff --git a/srcpkgs/passwordsafe/patches/__time64_t.patch b/srcpkgs/passwordsafe/patches/__time64_t.patch
new file mode 100644
index 00000000000..45b00da201e
--- /dev/null
+++ b/srcpkgs/passwordsafe/patches/__time64_t.patch
@@ -0,0 +1,22 @@
+related issue: https://github.com/pwsafe/pwsafe/issues/563
+
+commit 497246d4beffcd9347b443b1622e4ea64a7b389c
+Author: ronys <ronys@pwsafe.org>
+Date: Fri Jul 5 22:23:28 2019 +0300
+
+ Fix GH563: broken build on 32 bit gcc 9.1
+
+diff --git src/os/unix/pws_time.h src/os/unix/pws_time.h
+index 4be9ffb90..683cb48b9 100644
+--- src/os/unix/pws_time.h
++++ src/os/unix/pws_time.h
+@@ -14,8 +14,7 @@
+ #include <time.h>
+ #endif
+
+-typedef time_t __time32_t;
+-#ifndef __time64_t
++#if !defined(__time64_t) && !defined(__TIME64_T_TYPE)
+ typedef uint64_t __time64_t;
+ #endif
+
diff --git a/srcpkgs/passwordsafe/template b/srcpkgs/passwordsafe/template
index 060338551e1..986de16cfe7 100644
--- a/srcpkgs/passwordsafe/template
+++ b/srcpkgs/passwordsafe/template
@@ -1,6 +1,6 @@
# Template file for 'passwordsafe'
pkgname=passwordsafe
-version=1.07BETA
+version=1.08.1BETA
revision=1
wrksrc="pwsafe-${version}"
build_style=cmake
@@ -14,44 +14,23 @@ maintainer="Rui Abreu Ferreira <raf-ep@gmx.com>"
license="Artistic-2.0"
homepage="https://pwsafe.org"
distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz>pwsafe-${version}.tar.gz"
-checksum=242c06a9b2685e09fcefa4c8fca09a3f7ab3c38f338e2ca067992e072bdbe2d4
+checksum=2c3648e8189a32c107c7d7bc0527c919db36b3940f19b0e58b37f0f992ea42a7
+
+# wx-config-gtk3 crossbuild handled via wrapper
+if [ -z "$CROSS_BUILD" ]; then
+ configure_args+=" -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3"
+
+fi
pre_configure() {
# ykpers-1 includes are hardcoded, add cross base
sed -i -e "s|-I\(/usr/include/ykpers-1\)|-I${XBPS_CROSS_BASE}\1|" CMakeLists.txt
- # workaround for cmake to find wx-config-gtk3
- # can be removed once there is only one 'wx-config'
- if [ "$CROSS_BUILD" ]; then
- # cannot override wxWidgets_CONFIG_EXECUTABLE set in
- # the cross toolchain file otherwise
- ln -s ${XBPS_WRAPPERDIR}/wx-config{-gtk3,}
- else
- sed -i "1i\set(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" CMakeLists.txt
- fi
+ # icons in right place
+ sed -i -e "s|share/pixmaps|share/icons/hicolor/48x48/apps|" CMakeLists.txt
}
-do_install() {
- # use 'passwordsafe' in filenames as much as possible.
- vbin build/pwsafe passwordsafe
- vinstall install/desktop/pwsafe.desktop 644 usr/share/applications passwordsafe.desktop
- vinstall install/graphics/pwsafe.png 644 usr/share/icons/hicolor/48x48/apps passwordsafe.png
- sed -i -e 's,^\(Exec\|Icon\)=.*,\1=passwordsafe,' ${DESTDIR}/usr/share/applications/passwordsafe.desktop
-
- # Help files
- for f in build/help/help*.zip; do
- vinstall $f 644 usr/share/${pkgname}/help
- done
-
- # XML files (format converters)
- vcopy xml usr/share/${pkgname}
-
+post_install() {
vlicense LICENSE
vdoc docs/config.txt
- vman docs/pwsafe.1 passwordsafe.1
-
- # locales
- # NB: correspoding locales have to be enabled in /etc/default/libc-locales
- vmkdir usr/share/locale
- vcopy build/src/ui/wxWidgets/I18N/mos/* usr/share/locale
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [WIP] passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
` (7 preceding siblings ...)
2019-07-05 22:42 ` voidlinux-github
@ 2019-07-06 10:51 ` voidlinux-github
2019-07-13 3:14 ` [PR PATCH] [Merged]: " voidlinux-github
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-06 10:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
New comment by yopito on void-packages repository
https://github.com/void-linux/void-packages/pull/11854#issuecomment-508916499
Comment:
switched to upstream's patch. runtime tests are fine. Let's merge
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Merged]: passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
` (8 preceding siblings ...)
2019-07-06 10:51 ` voidlinux-github
@ 2019-07-13 3:14 ` voidlinux-github
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-13 3:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 167 bytes --]
There's a merged pull request on the void-packages repository
passwordsafe: update to 1.08.1BETA
https://github.com/void-linux/void-packages/pull/11854
Description:
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] passwordsafe: update to 1.08.1BETA
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
@ 2019-07-05 5:21 ` voidlinux-github
2019-07-05 5:21 ` voidlinux-github
` (8 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-07-05 5:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
There is an updated pull request by yopito against master on the void-packages repository
https://github.com/yopito/void-packages passwordsafe.1.08.1
https://github.com/void-linux/void-packages/pull/11854
[WIP] passwordsafe: update to 1.08.1BETA
A patch file from https://github.com/void-linux/void-packages/pull/11854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passwordsafe.1.08.1-11854.patch --]
[-- Type: application/text/x-diff, Size: 2898 bytes --]
From 669c29a76cce45c51a0c101c0f670b7429aee917 Mon Sep 17 00:00:00 2001
From: yopito <pierre.bourgin@free.fr>
Date: Fri, 5 Jul 2019 07:11:15 +0200
Subject: [PATCH] passwordsafe: update to 1.08.1BETA
---
.../patches/32bit-and-time64_t.patch | 14 ++++++++++++
srcpkgs/passwordsafe/template | 22 ++++++++-----------
2 files changed, 23 insertions(+), 13 deletions(-)
create mode 100644 srcpkgs/passwordsafe/patches/32bit-and-time64_t.patch
diff --git a/srcpkgs/passwordsafe/patches/32bit-and-time64_t.patch b/srcpkgs/passwordsafe/patches/32bit-and-time64_t.patch
new file mode 100644
index 00000000000..5d480652e9d
--- /dev/null
+++ b/srcpkgs/passwordsafe/patches/32bit-and-time64_t.patch
@@ -0,0 +1,14 @@
+32bit platforms (i686, armv7l) also have a struct __time64_t
+__TIME64_T_TYPE is a glibc-ism ?
+
+--- src/os/unix/pws_time.h.ORIG 2019-05-05 21:43:08.000000000 +0200
++++ src/os/unix/pws_time.h 2019-07-04 19:29:27.434139040 +0200
+@@ -15,7 +15,7 @@
+ #endif
+
+ typedef time_t __time32_t;
+-#ifndef __time64_t
++#if !defined(__time64_t) && !defined(__TIME64_T_TYPE)
+ typedef uint64_t __time64_t;
+ #endif
+
diff --git a/srcpkgs/passwordsafe/template b/srcpkgs/passwordsafe/template
index 060338551e1..7fb8b858209 100644
--- a/srcpkgs/passwordsafe/template
+++ b/srcpkgs/passwordsafe/template
@@ -1,6 +1,6 @@
# Template file for 'passwordsafe'
pkgname=passwordsafe
-version=1.07BETA
+version=1.08.1BETA
revision=1
wrksrc="pwsafe-${version}"
build_style=cmake
@@ -14,21 +14,17 @@ maintainer="Rui Abreu Ferreira <raf-ep@gmx.com>"
license="Artistic-2.0"
homepage="https://pwsafe.org"
distfiles="https://github.com/pwsafe/pwsafe/archive/${version}.tar.gz>pwsafe-${version}.tar.gz"
-checksum=242c06a9b2685e09fcefa4c8fca09a3f7ab3c38f338e2ca067992e072bdbe2d4
+checksum=2c3648e8189a32c107c7d7bc0527c919db36b3940f19b0e58b37f0f992ea42a7
+
+# crossbuild already handled via wrapper
+if [ -z "$CROSS_BUILD" ]; then
+ configure_args+=" -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3"
+
+fi
pre_configure() {
# ykpers-1 includes are hardcoded, add cross base
sed -i -e "s|-I\(/usr/include/ykpers-1\)|-I${XBPS_CROSS_BASE}\1|" CMakeLists.txt
-
- # workaround for cmake to find wx-config-gtk3
- # can be removed once there is only one 'wx-config'
- if [ "$CROSS_BUILD" ]; then
- # cannot override wxWidgets_CONFIG_EXECUTABLE set in
- # the cross toolchain file otherwise
- ln -s ${XBPS_WRAPPERDIR}/wx-config{-gtk3,}
- else
- sed -i "1i\set(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" CMakeLists.txt
- fi
}
do_install() {
@@ -51,7 +47,7 @@ do_install() {
vman docs/pwsafe.1 passwordsafe.1
# locales
- # NB: correspoding locales have to be enabled in /etc/default/libc-locales
+ # NB: corresponding locales have to be enabled in /etc/default/libc-locales
vmkdir usr/share/locale
vcopy build/src/ui/wxWidgets/I18N/mos/* usr/share/locale
}
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-07-13 3:14 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11854@inbox.vuxu.org>
2019-07-05 5:21 ` [PR PATCH] [Updated] [WIP] passwordsafe: update to 1.08.1BETA voidlinux-github
2019-07-05 5:21 ` voidlinux-github
2019-07-05 5:45 ` voidlinux-github
2019-07-05 6:47 ` voidlinux-github
2019-07-05 7:57 ` voidlinux-github
2019-07-05 7:59 ` voidlinux-github
2019-07-05 22:42 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-05 22:42 ` voidlinux-github
2019-07-06 10:51 ` voidlinux-github
2019-07-13 3:14 ` [PR PATCH] [Merged]: " voidlinux-github
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).