* [bug#39365] LibreOffice 6.4 @ 2020-01-31 3:05 Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Leo Famulari 0 siblings, 1 reply; 12+ messages in thread From: Leo Famulari @ 2020-01-31 3:05 UTC (permalink / raw) To: 39365 [-- Attachment #1: Type: text/plain, Size: 72 bytes --] These patches update LibreOffice to the new release, 6.4. Works for me! [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp. 2020-01-31 3:05 [bug#39365] LibreOffice 6.4 Leo Famulari @ 2020-01-31 3:06 ` Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 2/6] gnu: mdds: Update to 1.5.0 Leo Famulari ` (6 more replies) 0 siblings, 7 replies; 12+ messages in thread From: Leo Famulari @ 2020-01-31 3:06 UTC (permalink / raw) To: 39365 * gnu/packages/aidc.scm (qrcodegen-cpp): New variable. --- gnu/packages/aidc.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm index 77db0ac9fc..b68f2137be 100644 --- a/gnu/packages/aidc.scm +++ b/gnu/packages/aidc.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com> ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net> +;;; Copyright © 2020 Leo Famulari <leo@famulari.name> ;;; ;;; This file is part of GNU Guix. ;;; @@ -154,3 +155,41 @@ For application developers, language bindings are included for C, C++ and Python as well as GUI widgets for GTK and Qt.") (home-page "https://github.com/mchehab/zbar") (license license:lgpl2.1+))) + +(define-public qrcodegen-cpp + ;; Currently this project's installation mechanism only exists as a GitHub + ;; pull request, so we build from a recent commit that the proposed patch + ;; applies to. + (let ((commit "6ea933f1596d818bd21e9a6b8d2e851fb8b4bcf1") + (revision "0")) + (package + (name "qrcodegen-cpp") + (version (git-version "1.5.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nayuki/QR-Code-generator.git") + (commit commit))) + (file-name (git-file-name name version)) + (patches (search-patches "qrcodegen-cpp-make-install.patch")) + (sha256 + (base32 + "19fcwqmfk2n9p2n01dv2j4x2y2mqip0j1wbmfbxjp34rqkjwcwxm")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no test suite + #:make-flags + (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure) ; No ./configure script + ;; Only build the C++ variant. + (add-after 'unpack 'chdir + (lambda _ + (chdir "cpp") + #t))))) + (synopsis "QR Code generator library") + (description "qrcodegen-cpp is a QR code generator library in C++. The +project also offers Java, Javascript, Python, C, and Rust implementations.") + (home-page "https://www.nayuki.io/page/qr-code-generator-library") + (license license:expat)))) -- 2.25.0 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 2/6] gnu: mdds: Update to 1.5.0. 2020-01-31 3:06 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Leo Famulari @ 2020-01-31 3:06 ` Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 3/6] gnu: ixion: Update to 0.15.0 Leo Famulari ` (5 subsequent siblings) 6 siblings, 0 replies; 12+ messages in thread From: Leo Famulari @ 2020-01-31 3:06 UTC (permalink / raw) To: 39365 * gnu/packages/boost.scm (mdds): Update to 1.5.0. --- gnu/packages/boost.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm index 0a2a5c5c01..11fb8e1201 100644 --- a/gnu/packages/boost.scm +++ b/gnu/packages/boost.scm @@ -283,14 +283,14 @@ signals and slots system.") (define-public mdds (package (name "mdds") - (version "1.4.3") + (version "1.5.0") (source (origin (method url-fetch) (uri (string-append "http://kohei.us/files/mdds/src/mdds-" version ".tar.bz2")) (sha256 (base32 - "10cw6irdm6d15nxnys2v5akp8yz52qijpcjvw0frwq7nz5d3vki5")))) + "03b8i43pw4m767mm0cnbi77x7qhpkzpi9b1f6dpp4cmyszmnsk8l")))) (build-system gnu-build-system) (propagated-inputs `(("boost" ,boost))) ; inclusion of header files -- 2.25.0 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 3/6] gnu: ixion: Update to 0.15.0. 2020-01-31 3:06 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 2/6] gnu: mdds: Update to 1.5.0 Leo Famulari @ 2020-01-31 3:06 ` Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 4/6] gnu: orcus: Update to 0.15.3 Leo Famulari ` (4 subsequent siblings) 6 siblings, 0 replies; 12+ messages in thread From: Leo Famulari @ 2020-01-31 3:06 UTC (permalink / raw) To: 39365 * gnu/packages/libreoffice.scm (ixion): Update to 0.15.0. [inputs]: Add spdlog. --- gnu/packages/libreoffice.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 93474dbdbf..7f1cb6a993 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -67,6 +67,7 @@ #:use-module (gnu packages image) #:use-module (gnu packages java) #:use-module (gnu packages linux) + #:use-module (gnu packages logging) #:use-module (gnu packages maths) #:use-module (gnu packages nss) #:use-module (gnu packages openldap) @@ -85,7 +86,7 @@ (define-public ixion (package (name "ixion") - (version "0.14.1") + (version "0.15.0") (source (origin (method url-fetch) @@ -93,13 +94,14 @@ version ".tar.xz")) (sha256 (base32 - "14gdd6div4l22vnz3jn2qjxgjly98ck6p8c1v7386c41rx7kilba")))) + "1rmrl2zjzi4z0abf2cd54acypkccdhx2065dlyzy6xg83gv0mxmi")))) (build-system gnu-build-system) (native-inputs `(("pkg-config" ,pkg-config))) (inputs `(("mdds" ,mdds) - ("python" ,python))) + ("python" ,python) + ("spdlog" ,spdlog))) (home-page "https://gitlab.com/ixion/ixion") (synopsis "General purpose formula parser and interpreter") (description "Ixion is a library for calculating the results of formula -- 2.25.0 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 4/6] gnu: orcus: Update to 0.15.3. 2020-01-31 3:06 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 2/6] gnu: mdds: Update to 1.5.0 Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 3/6] gnu: ixion: Update to 0.15.0 Leo Famulari @ 2020-01-31 3:06 ` Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 5/6] gnu: libetonyek: Update MDDS requirement Leo Famulari ` (3 subsequent siblings) 6 siblings, 0 replies; 12+ messages in thread From: Leo Famulari @ 2020-01-31 3:06 UTC (permalink / raw) To: 39365 * gnu/packages/libreoffice.scm (orcus): Update to 0.15.3. --- gnu/packages/libreoffice.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 7f1cb6a993..cc1eaaebeb 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -113,7 +113,7 @@ their dependencies automatically upon calculation.") (define-public orcus (package (name "orcus") - (version "0.14.1") + (version "0.15.3") (source (origin (method url-fetch) @@ -121,7 +121,7 @@ their dependencies automatically upon calculation.") name "-" version ".tar.xz")) (sha256 (base32 - "1ays13a1x15j81dsrq0d3697v1bbqd3bfz3ajn6kb9d61y2drlgj")))) + "14gbnqsv5n2fm4sxa17014f440clrzls6p2w2ixk9wipg4950v9s")))) (build-system gnu-build-system) (native-inputs `(("pkg-config" ,pkg-config))) -- 2.25.0 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 5/6] gnu: libetonyek: Update MDDS requirement. 2020-01-31 3:06 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Leo Famulari ` (2 preceding siblings ...) 2020-01-31 3:06 ` [bug#39365] [PATCH 4/6] gnu: orcus: Update to 0.15.3 Leo Famulari @ 2020-01-31 3:06 ` Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 6/6] gnu: LibreOffice: Update to 6.4.0.3 Leo Famulari ` (2 subsequent siblings) 6 siblings, 0 replies; 12+ messages in thread From: Leo Famulari @ 2020-01-31 3:06 UTC (permalink / raw) To: 39365 * gnu/packages/libreoffice.scm (libetonyek): Put '--with-mdds-1.5' in #:configure-flags. --- gnu/packages/libreoffice.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index cc1eaaebeb..968044f680 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -403,7 +403,7 @@ CorelDRAW documents of all versions.") "0jhsbdimiyijdqriy0zzkjjgc4wi6fjimhdg4mdybrlwg7l7f5p6")))) (build-system gnu-build-system) (arguments - `(#:configure-flags '("--with-mdds=1.4"))) + `(#:configure-flags '("--with-mdds=1.5"))) (native-inputs `(("cppunit" ,cppunit) ("doxygen" ,doxygen) -- 2.25.0 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 6/6] gnu: LibreOffice: Update to 6.4.0.3. 2020-01-31 3:06 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Leo Famulari ` (3 preceding siblings ...) 2020-01-31 3:06 ` [bug#39365] [PATCH 5/6] gnu: libetonyek: Update MDDS requirement Leo Famulari @ 2020-01-31 3:06 ` Leo Famulari 2020-01-31 8:58 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Efraim Flashner 2020-01-31 23:42 ` [bug#39365] " Jonathan Brielmaier 6 siblings, 0 replies; 12+ messages in thread From: Leo Famulari @ 2020-01-31 3:06 UTC (permalink / raw) To: 39365 * gnu/packages/libreoffice.scm (libreoffice): Update to 6.4.0.3. [inputs]: Add qrcodegen-cpp. [source]: Remove obsolete patches and substitutions. * gnu/packages/patches/libreoffice-glm.patch, gnu/packages/patches/libreoffice-icu.patch: Delete files. * gnu/local.mk (dist_patch_DATA): Remove them. --- gnu/local.mk | 2 - gnu/packages/libreoffice.scm | 16 +-- gnu/packages/patches/libreoffice-glm.patch | 58 ---------- gnu/packages/patches/libreoffice-icu.patch | 126 --------------------- 4 files changed, 4 insertions(+), 198 deletions(-) delete mode 100644 gnu/packages/patches/libreoffice-glm.patch delete mode 100644 gnu/packages/patches/libreoffice-icu.patch diff --git a/gnu/local.mk b/gnu/local.mk index aa8e6e0d0d..f606dcbc89 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1106,8 +1106,6 @@ dist_patch_DATA = \ %D%/packages/patches/libmpeg2-global-symbol-test.patch \ %D%/packages/patches/libmygpo-qt-fix-qt-5.11.patch \ %D%/packages/patches/libmygpo-qt-missing-qt5-modules.patch \ - %D%/packages/patches/libreoffice-icu.patch \ - %D%/packages/patches/libreoffice-glm.patch \ %D%/packages/patches/libseccomp-open-aarch64.patch \ %D%/packages/patches/libsndfile-armhf-type-checks.patch \ %D%/packages/patches/libsndfile-CVE-2017-8361-8363-8365.patch \ diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 968044f680..5eec29a9d6 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -41,6 +41,7 @@ #:use-module (guix utils) #:use-module (ice-9 match) #:use-module (gnu packages) + #:use-module (gnu packages aidc) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bison) @@ -930,7 +931,7 @@ converting QuarkXPress file format. It supports versions 3.1 to 4.1.") (define-public libreoffice (package (name "libreoffice") - (version "6.3.4.2") + (version "6.4.0.3") (source (origin (method url-fetch) @@ -940,17 +941,7 @@ converting QuarkXPress file format. It supports versions 3.1 to 4.1.") (version-prefix version 3) "/libreoffice-" version ".tar.xz")) (sha256 (base32 - "1774vmf3lr5x24ikpn1z5vqcdwrhiwfkjy7sx09jqkvpm6d5awnb")) - (patches (search-patches "libreoffice-icu.patch" - "libreoffice-glm.patch")) - (modules '((guix build utils))) - (snippet - '(begin - (for-each (lambda (file) - ;; Adjust to renamed function in Poppler 0.72. - (substitute* file (("getCString") "c_str"))) - (find-files "sdext/source/pdfimport/xpdfwrapper")) - #t)))) + "09ra8a3ylb08xhy8wy233fs0f87klkpsbi9n3zss0c688afxjcf5")))) (build-system glib-or-gtk-build-system) (native-inputs `(("bison" ,bison) @@ -1023,6 +1014,7 @@ converting QuarkXPress file format. It supports versions 3.1 to 4.1.") ("postgresql" ,postgresql) ("python" ,python) ("python-lxml" ,python-lxml) + ("qrcodegen-cpp" ,qrcodegen-cpp) ("redland" ,redland) ("sane-backends" ,sane-backends) ("unixodbc" ,unixodbc) diff --git a/gnu/packages/patches/libreoffice-glm.patch b/gnu/packages/patches/libreoffice-glm.patch deleted file mode 100644 index 9e76cf1389..0000000000 --- a/gnu/packages/patches/libreoffice-glm.patch +++ /dev/null @@ -1,58 +0,0 @@ -Fix build with GLM 0.9.9. - -This patch is an amalgamation of these upstream commits: - -https://github.com/LibreOffice/core/commit/953c4add8fd76d88f49a81ae4c21a1fdcc007e57 -https://github.com/LibreOffice/core/commit/5f1bf6598b5725ad1e50ae9f7ec7524cc8a834fa - -diff --git a/chart2/Library_chartcore.mk b/chart2/Library_chartcore.mk -index 28bc87b89057..69d4c0552636 100644 ---- a/chart2/Library_chartcore.mk -+++ b/chart2/Library_chartcore.mk -@@ -23,6 +23,12 @@ $(eval $(call gb_Library_add_defs,chartcore,\ - -DOOO_DLLIMPLEMENTATION_CHARTVIEW \ - )) - -+ifeq ($(SYSTEM_GLM),TRUE) -+$(eval $(call gb_Library_add_defs,chartcore,\ -+ -DGLM_ENABLE_EXPERIMENTAL \ -+)) -+endif -+ - $(eval $(call gb_Library_set_precompiled_header,chartcore,$(SRCDIR)/chart2/inc/pch/precompiled_chartcore)) - - $(eval $(call gb_Library_use_externals,chartcore,\ -diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk -index c1f3cc5324e7..0b684c6185a9 100644 ---- a/vcl/Library_vcl.mk -+++ b/vcl/Library_vcl.mk -@@ -49,6 +49,12 @@ $(eval $(call gb_Library_add_defs,vcl,\ - -DENABLE_MERGELIBS=$(if $(MERGELIBS),1,0) \ - )) - -+ifeq ($(SYSTEM_GLM),TRUE) -+$(eval $(call gb_Library_add_defs,vcl,\ -+ -DGLM_ENABLE_EXPERIMENTAL \ -+)) -+endif -+ - $(eval $(call gb_Library_use_sdk_api,vcl)) - - $(eval $(call gb_Library_use_custom_headers,vcl,\ -diff --git a/vcl/Executable_icontest.mk b/vcl/Executable_icontest.mk -index ce163303f8a4..8c917b71cd0e 100644 ---- a/vcl/Executable_icontest.mk -+++ b/vcl/Executable_icontest.mk -@@ -19,6 +19,12 @@ $(eval $(call gb_Executable_use_externals,icontest,\ - )) - endif - -+ifeq ($(SYSTEM_GLM),TRUE) -+$(eval $(call gb_Executable_add_defs,icontest,\ -+ -DGLM_ENABLE_EXPERIMENTAL \ -+)) -+endif -+ - $(eval $(call gb_Executable_use_api,icontest,\ - offapi \ - udkapi \ diff --git a/gnu/packages/patches/libreoffice-icu.patch b/gnu/packages/patches/libreoffice-icu.patch deleted file mode 100644 index 2985d564aa..0000000000 --- a/gnu/packages/patches/libreoffice-icu.patch +++ /dev/null @@ -1,126 +0,0 @@ -This patch fixes the build of Libreoffice 6.0.5 with icu 61.1. -It was downloaded from https://bugs.gentoo.org/651702. - ---- a/forms/source/xforms/datatypes.hxx -+++ a/forms/source/xforms/datatypes.hxx -@@ -36,6 +36,8 @@ - - #include <memory> - -+using icu::RegexMatcher; -+ - - namespace xforms - { ---- a/i18npool/inc/collator_unicode.hxx -+++ a/i18npool/inc/collator_unicode.hxx -@@ -26,6 +26,8 @@ - - #include <unicode/tblcoll.h> - -+using icu::RuleBasedCollator; -+ - // ---------------------------------------------------- - // class Collator_Unicode - // ---------------------------------------------------- ---- a/i18npool/source/breakiterator/breakiterator_unicode.cxx -+++ a/i18npool/source/breakiterator/breakiterator_unicode.cxx -@@ -30,6 +30,9 @@ - #include <rtl/ustring.hxx> - #include <string.h> - -+using icu::BreakIterator; -+using icu::RuleBasedBreakIterator; -+ - U_CDECL_BEGIN - extern const char OpenOffice_dat[]; - U_CDECL_END ---- a/i18npool/source/collator/collator_unicode.cxx -+++ a/i18npool/source/collator/collator_unicode.cxx -@@ -29,6 +29,8 @@ - #include <com/sun/star/i18n/CollatorOptions.hpp> - #include <cppuhelper/supportsservice.hxx> - -+using icu::Collator; -+ - using namespace ::com::sun::star; - using namespace ::com::sun::star::i18n; - using namespace ::com::sun::star::lang; ---- a/i18npool/source/collator/gencoll_rule.cxx -+++ a/i18npool/source/collator/gencoll_rule.cxx -@@ -31,6 +31,8 @@ - - #include <unicode/tblcoll.h> - -+using icu::RuleBasedCollator; -+ - /* Main Procedure */ - - void data_write(char* file, char* name, sal_uInt8 *data, sal_Int32 len) ---- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx -+++ a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx -@@ -29,6 +29,8 @@ - #include <unicode/normlzr.h> - #include <memory> - -+using icu::NumberFormat; -+ - using namespace ::com::sun::star::i18n; - using namespace ::com::sun::star::uno; - using namespace ::com::sun::star; ---- a/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx -+++ a/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx -@@ -12,6 +12,8 @@ - #include <unicode/translit.h> - #include <unicode/uchar.h> - -+using icu::UnicodeString; -+ - namespace i18npool { - - ignoreDiacritics_CTL::ignoreDiacritics_CTL() ---- a/i18nutil/source/utility/unicode.cxx -+++ a/i18nutil/source/utility/unicode.cxx -@@ -34,6 +34,9 @@ - // which (obviously) breaks UnicodeType::CURRENCY_SYMBOL - #undef CURRENCY_SYMBOL - -+using icu::NumberFormat; -+using icu::UnicodeString; -+ - using namespace ::com::sun::star::i18n; - - template<class L, typename T> ---- a/lotuswordpro/source/filter/localtime.cxx -+++ a/lotuswordpro/source/filter/localtime.cxx -@@ -57,6 +57,8 @@ - #include <limits.h> - #include <unicode/timezone.h> - -+using icu::TimeZone; -+ - const long DAY_SEC =24 * 60 * 60; - const long YEAR_SEC = 365 * DAY_SEC; - const long FOURYEAR_SEC = 4 * YEAR_SEC + DAY_SEC; ---- a/opencl/source/openclconfig.cxx -+++ a/opencl/source/openclconfig.cxx -@@ -17,6 +17,8 @@ - #include <sal/log.hxx> - #include <sal/types.h> - -+using icu::RegexMatcher; -+ - OpenCLConfig::OpenCLConfig() : - mbUseOpenCL(true) - { ---- a/vcl/inc/scrptrun.h -+++ a/vcl/inc/scrptrun.h -@@ -45,6 +45,8 @@ - #include <unicode/uscript.h> - #include <vector> - -+using icu::UObject; -+ - namespace vcl { - - struct ParenStackEntry -- 2.25.0 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp. 2020-01-31 3:06 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Leo Famulari ` (4 preceding siblings ...) 2020-01-31 3:06 ` [bug#39365] [PATCH 6/6] gnu: LibreOffice: Update to 6.4.0.3 Leo Famulari @ 2020-01-31 8:58 ` Efraim Flashner 2020-01-31 18:30 ` Leo Famulari 2020-02-13 22:21 ` Ludovic Courtès 2020-01-31 23:42 ` [bug#39365] " Jonathan Brielmaier 6 siblings, 2 replies; 12+ messages in thread From: Efraim Flashner @ 2020-01-31 8:58 UTC (permalink / raw) To: Leo Famulari; +Cc: 39365 [-- Attachment #1: Type: text/plain, Size: 3081 bytes --] On Thu, Jan 30, 2020 at 10:06:22PM -0500, Leo Famulari wrote: > * gnu/packages/aidc.scm (qrcodegen-cpp): New variable. > --- > gnu/packages/aidc.scm | 39 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) You're missing the actual patch ;) > > diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm > index 77db0ac9fc..b68f2137be 100644 > --- a/gnu/packages/aidc.scm > +++ b/gnu/packages/aidc.scm > @@ -4,6 +4,7 @@ > ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com> > ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> > ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net> > +;;; Copyright © 2020 Leo Famulari <leo@famulari.name> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -154,3 +155,41 @@ For application developers, language bindings are included for C, C++ and > Python as well as GUI widgets for GTK and Qt.") > (home-page "https://github.com/mchehab/zbar") > (license license:lgpl2.1+))) > + > +(define-public qrcodegen-cpp > + ;; Currently this project's installation mechanism only exists as a GitHub > + ;; pull request, so we build from a recent commit that the proposed patch > + ;; applies to. > + (let ((commit "6ea933f1596d818bd21e9a6b8d2e851fb8b4bcf1") > + (revision "0")) > + (package > + (name "qrcodegen-cpp") > + (version (git-version "1.5.0" revision commit)) > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/nayuki/QR-Code-generator.git") > + (commit commit))) > + (file-name (git-file-name name version)) > + (patches (search-patches "qrcodegen-cpp-make-install.patch")) > + (sha256 > + (base32 > + "19fcwqmfk2n9p2n01dv2j4x2y2mqip0j1wbmfbxjp34rqkjwcwxm")))) > + (build-system gnu-build-system) > + (arguments > + `(#:tests? #f ; no test suite > + #:make-flags > + (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) ; No ./configure script > + ;; Only build the C++ variant. > + (add-after 'unpack 'chdir > + (lambda _ > + (chdir "cpp") > + #t))))) > + (synopsis "QR Code generator library") > + (description "qrcodegen-cpp is a QR code generator library in C++. The > +project also offers Java, Javascript, Python, C, and Rust implementations.") You can drop the comma after C if you want. > + (home-page "https://www.nayuki.io/page/qr-code-generator-library") > + (license license:expat)))) > -- > 2.25.0 > > > > -- Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp. 2020-01-31 8:58 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Efraim Flashner @ 2020-01-31 18:30 ` Leo Famulari 2020-02-13 22:21 ` Ludovic Courtès 1 sibling, 0 replies; 12+ messages in thread From: Leo Famulari @ 2020-01-31 18:30 UTC (permalink / raw) To: Efraim Flashner; +Cc: 39365 [-- Attachment #1.1: Type: text/plain, Size: 3326 bytes --] Oops! Attached... On Fri, Jan 31, 2020 at 10:58:51AM +0200, Efraim Flashner wrote: > On Thu, Jan 30, 2020 at 10:06:22PM -0500, Leo Famulari wrote: > > * gnu/packages/aidc.scm (qrcodegen-cpp): New variable. > > --- > > gnu/packages/aidc.scm | 39 +++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 39 insertions(+) > > You're missing the actual patch ;) > > > > > diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm > > index 77db0ac9fc..b68f2137be 100644 > > --- a/gnu/packages/aidc.scm > > +++ b/gnu/packages/aidc.scm > > @@ -4,6 +4,7 @@ > > ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com> > > ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> > > ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net> > > +;;; Copyright © 2020 Leo Famulari <leo@famulari.name> > > ;;; > > ;;; This file is part of GNU Guix. > > ;;; > > @@ -154,3 +155,41 @@ For application developers, language bindings are included for C, C++ and > > Python as well as GUI widgets for GTK and Qt.") > > (home-page "https://github.com/mchehab/zbar") > > (license license:lgpl2.1+))) > > + > > +(define-public qrcodegen-cpp > > + ;; Currently this project's installation mechanism only exists as a GitHub > > + ;; pull request, so we build from a recent commit that the proposed patch > > + ;; applies to. > > + (let ((commit "6ea933f1596d818bd21e9a6b8d2e851fb8b4bcf1") > > + (revision "0")) > > + (package > > + (name "qrcodegen-cpp") > > + (version (git-version "1.5.0" revision commit)) > > + (source (origin > > + (method git-fetch) > > + (uri (git-reference > > + (url "https://github.com/nayuki/QR-Code-generator.git") > > + (commit commit))) > > + (file-name (git-file-name name version)) > > + (patches (search-patches "qrcodegen-cpp-make-install.patch")) > > + (sha256 > > + (base32 > > + "19fcwqmfk2n9p2n01dv2j4x2y2mqip0j1wbmfbxjp34rqkjwcwxm")))) > > + (build-system gnu-build-system) > > + (arguments > > + `(#:tests? #f ; no test suite > > + #:make-flags > > + (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) > > + #:phases > > + (modify-phases %standard-phases > > + (delete 'configure) ; No ./configure script > > + ;; Only build the C++ variant. > > + (add-after 'unpack 'chdir > > + (lambda _ > > + (chdir "cpp") > > + #t))))) > > + (synopsis "QR Code generator library") > > + (description "qrcodegen-cpp is a QR code generator library in C++. The > > +project also offers Java, Javascript, Python, C, and Rust implementations.") > > You can drop the comma after C if you want. > > > + (home-page "https://www.nayuki.io/page/qr-code-generator-library") > > + (license license:expat)))) > > -- > > 2.25.0 > > > > > > > > > > -- > Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר > GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 > Confidentiality cannot be guaranteed on emails sent or received unencrypted [-- Attachment #1.2: 0001-gnu-Add-qrcodegen-cpp.patch --] [-- Type: text/plain, Size: 17936 bytes --] From 128d0335f74bb90b82427a96ef32127f98e04f31 Mon Sep 17 00:00:00 2001 From: Leo Famulari <leo@famulari.name> Date: Thu, 30 Jan 2020 14:52:29 -0500 Subject: [PATCH] gnu: Add qrcodegen-cpp. * gnu/packages/aidc.scm (qrcodegen-cpp): New variable. * gnu/packages/patches/qrcodegen-cpp-make-install.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. --- gnu/local.mk | 1 + gnu/packages/aidc.scm | 39 ++ .../patches/qrcodegen-cpp-make-install.patch | 448 ++++++++++++++++++ 3 files changed, 488 insertions(+) create mode 100644 gnu/packages/patches/qrcodegen-cpp-make-install.patch diff --git a/gnu/local.mk b/gnu/local.mk index aa8e6e0d0d..4e991f66f4 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1338,6 +1338,7 @@ dist_patch_DATA = \ %D%/packages/patches/qemu-CVE-2020-7039.patch \ %D%/packages/patches/qemu-CVE-2020-7211.patch \ %D%/packages/patches/qemu-fix-documentation-build-failure.patch \ + %D%/packages/patches/qrcodegen-cpp-make-install.patch \ %D%/packages/patches/qt4-ldflags.patch \ %D%/packages/patches/qtbase-use-TZDIR.patch \ %D%/packages/patches/qtscript-disable-tests.patch \ diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm index 77db0ac9fc..b68f2137be 100644 --- a/gnu/packages/aidc.scm +++ b/gnu/packages/aidc.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com> ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net> +;;; Copyright © 2020 Leo Famulari <leo@famulari.name> ;;; ;;; This file is part of GNU Guix. ;;; @@ -154,3 +155,41 @@ For application developers, language bindings are included for C, C++ and Python as well as GUI widgets for GTK and Qt.") (home-page "https://github.com/mchehab/zbar") (license license:lgpl2.1+))) + +(define-public qrcodegen-cpp + ;; Currently this project's installation mechanism only exists as a GitHub + ;; pull request, so we build from a recent commit that the proposed patch + ;; applies to. + (let ((commit "6ea933f1596d818bd21e9a6b8d2e851fb8b4bcf1") + (revision "0")) + (package + (name "qrcodegen-cpp") + (version (git-version "1.5.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nayuki/QR-Code-generator.git") + (commit commit))) + (file-name (git-file-name name version)) + (patches (search-patches "qrcodegen-cpp-make-install.patch")) + (sha256 + (base32 + "19fcwqmfk2n9p2n01dv2j4x2y2mqip0j1wbmfbxjp34rqkjwcwxm")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no test suite + #:make-flags + (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure) ; No ./configure script + ;; Only build the C++ variant. + (add-after 'unpack 'chdir + (lambda _ + (chdir "cpp") + #t))))) + (synopsis "QR Code generator library") + (description "qrcodegen-cpp is a QR code generator library in C++. The +project also offers Java, Javascript, Python, C, and Rust implementations.") + (home-page "https://www.nayuki.io/page/qr-code-generator-library") + (license license:expat)))) diff --git a/gnu/packages/patches/qrcodegen-cpp-make-install.patch b/gnu/packages/patches/qrcodegen-cpp-make-install.patch new file mode 100644 index 0000000000..4da619d3c8 --- /dev/null +++ b/gnu/packages/patches/qrcodegen-cpp-make-install.patch @@ -0,0 +1,448 @@ +Make the library installable. Patch copied from pull request: + +https://github.com/nayuki/QR-Code-generator/pull/72 + +From 1625fc1665e1f83eb73c0f5670dcfda96dc0b3e4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com> +Date: Tue, 3 Dec 2019 11:57:24 +0100 +Subject: [PATCH 1/7] Do not append to C/XX/FLAGS but just set them if not + defined already + +--- + c/Makefile | 2 +- + cpp/Makefile | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/c/Makefile b/c/Makefile +index fd0c367..b27449c 100644 +--- a/c/Makefile ++++ b/c/Makefile +@@ -29,7 +29,7 @@ + # - CFLAGS: Any extra user-specified compiler flags (can be blank). + + # Recommended compiler flags: +-CFLAGS += -std=c99 -O ++CFLAGS ?= -std=c99 -O + + # Extra flags for diagnostics: + # CFLAGS += -g -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -fsanitize=undefined,address +diff --git a/cpp/Makefile b/cpp/Makefile +index f83c512..666f976 100644 +--- a/cpp/Makefile ++++ b/cpp/Makefile +@@ -29,7 +29,7 @@ + # - CXXFLAGS: Any extra user-specified compiler flags (can be blank). + + # Recommended compiler flags: +-CXXFLAGS += -std=c++11 -O ++CXXFLAGS ?= -std=c++11 -O + + # Extra flags for diagnostics: + # CXXFLAGS += -g -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -fsanitize=undefined,address + +From 2e496a0f59d5c6782c1e3e2a3ca36d0272b384f3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com> +Date: Tue, 3 Dec 2019 11:59:59 +0100 +Subject: [PATCH 2/7] Make use of -fPIC parameter when building' + +--- + c/Makefile | 2 +- + cpp/Makefile | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/c/Makefile b/c/Makefile +index b27449c..bf79462 100644 +--- a/c/Makefile ++++ b/c/Makefile +@@ -77,7 +77,7 @@ $(LIBFILE): $(LIBOBJ) + + # Object files + %.o: %.c .deps/timestamp +- $(CC) $(CFLAGS) -c -o $@ -MMD -MF .deps/$*.d $< ++ $(CC) $(CFLAGS) -fPIC -c -o $@ -MMD -MF .deps/$*.d $< + + # Have a place to store header dependencies automatically generated by compiler + .deps/timestamp: +diff --git a/cpp/Makefile b/cpp/Makefile +index 666f976..f37cf66 100644 +--- a/cpp/Makefile ++++ b/cpp/Makefile +@@ -73,7 +73,7 @@ $(LIBFILE): $(LIBOBJ) + + # Object files + %.o: %.cpp .deps/timestamp +- $(CXX) $(CXXFLAGS) -c -o $@ -MMD -MF .deps/$*.d $< ++ $(CXX) $(CXXFLAGS) -fPIC -c -o $@ -MMD -MF .deps/$*.d $< + + # Have a place to store header dependencies automatically generated by compiler + .deps/timestamp: + +From 29489faaa5a3b014c5c2d95ca34033df470de73c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com> +Date: Tue, 3 Dec 2019 12:07:19 +0100 +Subject: [PATCH 3/7] Generate both shared and static libraries + +--- + c/Makefile | 14 ++++++++++---- + cpp/Makefile | 14 ++++++++++---- + 2 files changed, 20 insertions(+), 8 deletions(-) + +diff --git a/c/Makefile b/c/Makefile +index bf79462..38eda2d 100644 +--- a/c/Makefile ++++ b/c/Makefile +@@ -51,16 +51,19 @@ CFLAGS ?= -std=c99 -O + # ---- Targets to build ---- + + LIB = qrcodegen +-LIBFILE = lib$(LIB).a ++ARFILE = lib$(LIB).a ++LIBFILE = lib$(LIB).so ++# Bump the soname number when the ABI changes and gets incompatible ++SO_NAME = $(LIBFILE).1 + LIBOBJ = qrcodegen.o + MAINS = qrcodegen-demo qrcodegen-test qrcodegen-worker + + # Build all binaries +-all: $(LIBFILE) $(MAINS) ++all: $(LIBFILE) $(ARFILE) $(MAINS) + + # Delete build output + clean: +- rm -f -- $(LIBOBJ) $(LIBFILE) $(MAINS:=.o) $(MAINS) ++ rm -f -- $(LIBOBJ) $(LIBFILE) $(ARFILE) $(MAINS:=.o) $(MAINS) + rm -rf .deps + + # Executable files +@@ -72,9 +75,12 @@ qrcodegen-test: qrcodegen-test.c $(LIBOBJ:%.o=%.c) + $(CC) $(CFLAGS) -DQRCODEGEN_TEST -o $@ $^ + + # The library +-$(LIBFILE): $(LIBOBJ) ++$(ARFILE): $(LIBOBJ) + $(AR) -crs $@ -- $^ + ++$(LIBFILE): $(LIBOBJ) ++ $(CC) -shared -Wl,-soname,$(SO_NAME) $(LDFLAGS) -o $@ $^ ++ + # Object files + %.o: %.c .deps/timestamp + $(CC) $(CFLAGS) -fPIC -c -o $@ -MMD -MF .deps/$*.d $< +diff --git a/cpp/Makefile b/cpp/Makefile +index f37cf66..606cdad 100644 +--- a/cpp/Makefile ++++ b/cpp/Makefile +@@ -51,16 +51,19 @@ CXXFLAGS ?= -std=c++11 -O + # ---- Targets to build ---- + + LIB = qrcodegen +-LIBFILE = lib$(LIB).a ++ARFILE = lib$(LIB).a ++LIBFILE = lib$(LIB).so ++# Bump the soname number when the ABI changes and gets incompatible ++SO_NAME = $(LIBFILE).1 + LIBOBJ = QrCode.o + MAINS = QrCodeGeneratorDemo QrCodeGeneratorWorker + + # Build all binaries +-all: $(LIBFILE) $(MAINS) ++all: $(LIBFILE) $(ARFILE) $(MAINS) + + # Delete build output + clean: +- rm -f -- $(LIBOBJ) $(LIBFILE) $(MAINS:=.o) $(MAINS) ++ rm -f -- $(LIBOBJ) $(LIBFILE) $(ARFILE) $(MAINS:=.o) $(MAINS) + rm -rf .deps + + # Executable files +@@ -68,9 +71,12 @@ clean: + $(CXX) $(CXXFLAGS) -o $@ $< -L . -l $(LIB) + + # The library +-$(LIBFILE): $(LIBOBJ) ++$(ARFILE): $(LIBOBJ) + $(AR) -crs $@ -- $^ + ++$(LIBFILE): $(LIBOBJ) ++ $(CC) -shared -Wl,-soname,$(SO_NAME) $(LDFLAGS) -o $@ $^ ++ + # Object files + %.o: %.cpp .deps/timestamp + $(CXX) $(CXXFLAGS) -fPIC -c -o $@ -MMD -MF .deps/$*.d $< + +From 064f38d6a8dc0a457728a47ee4ca1e927e46d5ec Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com> +Date: Tue, 3 Dec 2019 12:45:34 +0100 +Subject: [PATCH 4/7] Create install targets for C and CPP + +--- + c/Makefile | 26 ++++++++++++++++++++++++++ + cpp/Makefile | 27 +++++++++++++++++++++++++++ + 2 files changed, 53 insertions(+) + +diff --git a/c/Makefile b/c/Makefile +index 38eda2d..7521944 100644 +--- a/c/Makefile ++++ b/c/Makefile +@@ -34,6 +34,8 @@ CFLAGS ?= -std=c99 -O + # Extra flags for diagnostics: + # CFLAGS += -g -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -fsanitize=undefined,address + ++# Version information ++VERSION = 1.5.0 + + # ---- Controlling make ---- + +@@ -55,9 +57,15 @@ ARFILE = lib$(LIB).a + LIBFILE = lib$(LIB).so + # Bump the soname number when the ABI changes and gets incompatible + SO_NAME = $(LIBFILE).1 ++REAL_NAME = $(LIBFILE).$(VERSION) ++HEADERS = qrcodegen.h + LIBOBJ = qrcodegen.o + MAINS = qrcodegen-demo qrcodegen-test qrcodegen-worker + ++# define paths to install ++INCLUDEDIR ?= $(DESTDIR)/usr/include/qrcodegen ++LIBDIR ?= $(DESTDIR)/usr/lib ++ + # Build all binaries + all: $(LIBFILE) $(ARFILE) $(MAINS) + +@@ -66,6 +74,24 @@ clean: + rm -f -- $(LIBOBJ) $(LIBFILE) $(ARFILE) $(MAINS:=.o) $(MAINS) + rm -rf .deps + ++install-shared: $(LIBFILE) ++ install -d $(LIBDIR) || true ++ install -m 0644 $(LIBFILE) $(LIBDIR)/$(REAL_NAME) ++ rm -f $(LIBDIR)/$(SO_NAME) ++ ln -s $(REAL_NAME) $(LIBDIR)/$(SO_NAME) ++ rm -f $(LIBDIR)/$(LIBFILE) ++ ln -s $(SO_NAME) $(LIBDIR)/$(LIBFILE) ++ ++install-static: $(ARFILE) ++ install -d $(LIBDIR) || true ++ install -m 0644 $(ARFILE) $(LIBDIR)/$(ARFILE) ++ ++install-header: $(HEADERS) ++ install -d $(INCLUDEDIR) || true ++ install -m 0644 $(HEADERS) $(INCLUDEDIR)/ ++ ++install: install-shared install-static install-header ++ + # Executable files + %: %.o $(LIBFILE) + $(CC) $(CFLAGS) -o $@ $< -L . -l $(LIB) +diff --git a/cpp/Makefile b/cpp/Makefile +index 606cdad..3271bd8 100644 +--- a/cpp/Makefile ++++ b/cpp/Makefile +@@ -34,6 +34,8 @@ CXXFLAGS ?= -std=c++11 -O + # Extra flags for diagnostics: + # CXXFLAGS += -g -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -fsanitize=undefined,address + ++# Version information ++VERSION = 1.5.0 + + # ---- Controlling make ---- + +@@ -55,9 +57,16 @@ ARFILE = lib$(LIB).a + LIBFILE = lib$(LIB).so + # Bump the soname number when the ABI changes and gets incompatible + SO_NAME = $(LIBFILE).1 ++REAL_NAME = $(LIBFILE).$(VERSION) ++HEADERS = QrCode.hpp + LIBOBJ = QrCode.o + MAINS = QrCodeGeneratorDemo QrCodeGeneratorWorker + ++# define paths to install ++INCLUDEDIR ?= $(DESTDIR)/usr/include/qrcodegen ++LIBDIR ?= $(DESTDIR)/usr/lib ++ ++ + # Build all binaries + all: $(LIBFILE) $(ARFILE) $(MAINS) + +@@ -66,6 +75,24 @@ clean: + rm -f -- $(LIBOBJ) $(LIBFILE) $(ARFILE) $(MAINS:=.o) $(MAINS) + rm -rf .deps + ++install-shared: $(LIBFILE) ++ install -d $(LIBDIR) || true ++ install -m 0644 $(LIBFILE) $(LIBDIR)/$(REAL_NAME) ++ rm -f $(LIBDIR)/$(SO_NAME) ++ ln -s $(REAL_NAME) $(LIBDIR)/$(SO_NAME) ++ rm -f $(LIBDIR)/$(LIBFILE) ++ ln -s $(SO_NAME) $(LIBDIR)/$(LIBFILE) ++ ++install-static: $(ARFILE) ++ install -d $(LIBDIR) || true ++ install -m 0644 $(ARFILE) $(LIBDIR)/$(ARFILE) ++ ++install-header: $(HEADERS) ++ install -d $(INCLUDEDIR) || true ++ install -m 0644 $(HEADERS) $(INCLUDEDIR)/ ++ ++install: install-shared install-static install-header ++ + # Executable files + %: %.o $(LIBFILE) + $(CXX) $(CXXFLAGS) -o $@ $< -L . -l $(LIB) + +From a635ff4654f94ab26b458c46a8841543e5bc8c67 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com> +Date: Tue, 3 Dec 2019 12:50:39 +0100 +Subject: [PATCH 5/7] Rename cpp library to qrcodegencpp to avoid conflict + +--- + cpp/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cpp/Makefile b/cpp/Makefile +index 3271bd8..42fa4ff 100644 +--- a/cpp/Makefile ++++ b/cpp/Makefile +@@ -52,7 +52,7 @@ VERSION = 1.5.0 + + # ---- Targets to build ---- + +-LIB = qrcodegen ++LIB = qrcodegencpp + ARFILE = lib$(LIB).a + LIBFILE = lib$(LIB).so + # Bump the soname number when the ABI changes and gets incompatible + +From c073e7dfad6454dfd725a69c347f8272d29ea41c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com> +Date: Tue, 7 Jan 2020 09:18:59 +0100 +Subject: [PATCH 6/7] Add PREFIX variable and few minor fixes from code review + +--- + c/Makefile | 9 +++++---- + cpp/Makefile | 9 +++++---- + 2 files changed, 10 insertions(+), 8 deletions(-) + +diff --git a/c/Makefile b/c/Makefile +index 7521944..874933e 100644 +--- a/c/Makefile ++++ b/c/Makefile +@@ -29,7 +29,7 @@ + # - CFLAGS: Any extra user-specified compiler flags (can be blank). + + # Recommended compiler flags: +-CFLAGS ?= -std=c99 -O ++CFLAGS += -std=c99 + + # Extra flags for diagnostics: + # CFLAGS += -g -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -fsanitize=undefined,address +@@ -63,8 +63,9 @@ LIBOBJ = qrcodegen.o + MAINS = qrcodegen-demo qrcodegen-test qrcodegen-worker + + # define paths to install +-INCLUDEDIR ?= $(DESTDIR)/usr/include/qrcodegen +-LIBDIR ?= $(DESTDIR)/usr/lib ++PREFIX ?= /usr/local ++INCLUDEDIR ?= $(DESTDIR)$(PREFIX)/include/qrcodegen ++LIBDIR ?= $(DESTDIR)$(PREFIX)/lib + + # Build all binaries + all: $(LIBFILE) $(ARFILE) $(MAINS) +@@ -105,7 +106,7 @@ $(ARFILE): $(LIBOBJ) + $(AR) -crs $@ -- $^ + + $(LIBFILE): $(LIBOBJ) +- $(CC) -shared -Wl,-soname,$(SO_NAME) $(LDFLAGS) -o $@ $^ ++ $(CC) $(CFLAGS) -shared -Wl,-soname,$(SO_NAME) $(LDFLAGS) -o $@ $^ + + # Object files + %.o: %.c .deps/timestamp +diff --git a/cpp/Makefile b/cpp/Makefile +index 42fa4ff..f8d9b7f 100644 +--- a/cpp/Makefile ++++ b/cpp/Makefile +@@ -29,7 +29,7 @@ + # - CXXFLAGS: Any extra user-specified compiler flags (can be blank). + + # Recommended compiler flags: +-CXXFLAGS ?= -std=c++11 -O ++CXXFLAGS += -std=c++11 + + # Extra flags for diagnostics: + # CXXFLAGS += -g -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -fsanitize=undefined,address +@@ -63,8 +63,9 @@ LIBOBJ = QrCode.o + MAINS = QrCodeGeneratorDemo QrCodeGeneratorWorker + + # define paths to install +-INCLUDEDIR ?= $(DESTDIR)/usr/include/qrcodegen +-LIBDIR ?= $(DESTDIR)/usr/lib ++PREFIX ?= /usr/local ++INCLUDEDIR ?= $(DESTDIR)$(PREFIX)/include/qrcodegen ++LIBDIR ?= $(DESTDIR)$(PREFIX)/lib + + + # Build all binaries +@@ -102,7 +103,7 @@ $(ARFILE): $(LIBOBJ) + $(AR) -crs $@ -- $^ + + $(LIBFILE): $(LIBOBJ) +- $(CC) -shared -Wl,-soname,$(SO_NAME) $(LDFLAGS) -o $@ $^ ++ $(CXX) $(CXXFLAGS) -shared -Wl,-soname,$(SO_NAME) $(LDFLAGS) -o $@ $^ + + # Object files + %.o: %.cpp .deps/timestamp + +From b43c1de5cc874535a7f549cef437f6849528e455 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com> +Date: Tue, 7 Jan 2020 13:12:32 +0100 +Subject: [PATCH 7/7] Install static and shared library as an executable + +--- + c/Makefile | 4 ++-- + cpp/Makefile | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/c/Makefile b/c/Makefile +index 874933e..631cc71 100644 +--- a/c/Makefile ++++ b/c/Makefile +@@ -77,7 +77,7 @@ clean: + + install-shared: $(LIBFILE) + install -d $(LIBDIR) || true +- install -m 0644 $(LIBFILE) $(LIBDIR)/$(REAL_NAME) ++ install -m 0755 $(LIBFILE) $(LIBDIR)/$(REAL_NAME) + rm -f $(LIBDIR)/$(SO_NAME) + ln -s $(REAL_NAME) $(LIBDIR)/$(SO_NAME) + rm -f $(LIBDIR)/$(LIBFILE) +@@ -85,7 +85,7 @@ install-shared: $(LIBFILE) + + install-static: $(ARFILE) + install -d $(LIBDIR) || true +- install -m 0644 $(ARFILE) $(LIBDIR)/$(ARFILE) ++ install -m 0755 $(ARFILE) $(LIBDIR)/$(ARFILE) + + install-header: $(HEADERS) + install -d $(INCLUDEDIR) || true +diff --git a/cpp/Makefile b/cpp/Makefile +index f8d9b7f..bbd861e 100644 +--- a/cpp/Makefile ++++ b/cpp/Makefile +@@ -78,7 +78,7 @@ clean: + + install-shared: $(LIBFILE) + install -d $(LIBDIR) || true +- install -m 0644 $(LIBFILE) $(LIBDIR)/$(REAL_NAME) ++ install -m 0755 $(LIBFILE) $(LIBDIR)/$(REAL_NAME) + rm -f $(LIBDIR)/$(SO_NAME) + ln -s $(REAL_NAME) $(LIBDIR)/$(SO_NAME) + rm -f $(LIBDIR)/$(LIBFILE) +@@ -86,7 +86,7 @@ install-shared: $(LIBFILE) + + install-static: $(ARFILE) + install -d $(LIBDIR) || true +- install -m 0644 $(ARFILE) $(LIBDIR)/$(ARFILE) ++ install -m 0755 $(ARFILE) $(LIBDIR)/$(ARFILE) + + install-header: $(HEADERS) + install -d $(INCLUDEDIR) || true -- 2.25.0 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply related [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp. 2020-01-31 8:58 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Efraim Flashner 2020-01-31 18:30 ` Leo Famulari @ 2020-02-13 22:21 ` Ludovic Courtès 2020-02-14 1:13 ` bug#39365: " Leo Famulari 1 sibling, 1 reply; 12+ messages in thread From: Ludovic Courtès @ 2020-02-13 22:21 UTC (permalink / raw) To: Efraim Flashner; +Cc: 39365, Leo Famulari Hi, Efraim Flashner <efraim@flashner.co.il> skribis: >> + (description "qrcodegen-cpp is a QR code generator library in C++. The >> +project also offers Java, Javascript, Python, C, and Rust implementations.") > > You can drop the comma after C if you want. Actually no, it would have a different meaning, from what I learned (namely, the last part would mean “implementations in/of C and Rust”, instead of “implementations in/of Rust”.) More importantly though: apart from the missing patch and ‘gnu/local.mk’ bit that were reported, the series LGTM. Thanks, Leo! Ludo’. ^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#39365: [PATCH 1/6] gnu: Add qrcodegen-cpp. 2020-02-13 22:21 ` Ludovic Courtès @ 2020-02-14 1:13 ` Leo Famulari 0 siblings, 0 replies; 12+ messages in thread From: Leo Famulari @ 2020-02-14 1:13 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 39365-done, Efraim Flashner On Thu, Feb 13, 2020 at 11:21:27PM +0100, Ludovic Courtès wrote: > Hi, > > Efraim Flashner <efraim@flashner.co.il> skribis: > > >> + (description "qrcodegen-cpp is a QR code generator library in C++. The > >> +project also offers Java, Javascript, Python, C, and Rust implementations.") > > > > You can drop the comma after C if you want. > > Actually no, it would have a different meaning, from what I learned > (namely, the last part would mean “implementations in/of C and Rust”, > instead of “implementations in/of Rust”.) > > More importantly though: apart from the missing patch and ‘gnu/local.mk’ > bit that were reported, the series LGTM. > > Thanks, Leo! Thanks for the reminder about these patches! Pushed as 1ce2467fd6d5f8da259be1c7609702814c716702 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp. 2020-01-31 3:06 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Leo Famulari ` (5 preceding siblings ...) 2020-01-31 8:58 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Efraim Flashner @ 2020-01-31 23:42 ` Jonathan Brielmaier 6 siblings, 0 replies; 12+ messages in thread From: Jonathan Brielmaier @ 2020-01-31 23:42 UTC (permalink / raw) To: Leo Famulari, 39365 ----- Ursprüngliche Mitteilung ----- > * gnu/packages/aidc.scm (qrcodegen-cpp): New variable. > --- > gnu/packages/aidc.scm | 39 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm > index 77db0ac9fc..b68f2137be 100644 > --- a/gnu/packages/aidc.scm > +++ b/gnu/packages/aidc.scm > @@ -4,6 +4,7 @@ > ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com> > ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> > ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net> > +;;; Copyright © 2020 Leo Famulari <leo@famulari.name> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -154,3 +155,41 @@ For application developers, language bindings are > included for C, C++ and Python as well as GUI widgets for GTK and Qt.") > (home-page "https://github.com/mchehab/zbar") > (license license:lgpl2.1+))) > + > +(define-public qrcodegen-cpp > + ;; Currently this project's installation mechanism only exists as a > GitHub + ;; pull request, so we build from a recent commit that the > proposed patch + ;; applies to. > + (let ((commit "6ea933f1596d818bd21e9a6b8d2e851fb8b4bcf1") > + (revision "0")) > + (package > + (name "qrcodegen-cpp") > + (version (git-version "1.5.0" revision commit)) > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url > "https://github.com/nayuki/QR-Code-generator.git") + > (commit commit))) + (file-name (git-file-name name > version)) + (patches (search-patches > "qrcodegen-cpp-make-install.patch")) + (sha256 > + (base32 > + I think you forgot to include the patch and adding it to lokal.mk. > "19fcwqmfk2n9p2n01dv2j4x2y2mqip0j1wbmfbxjp34rqkjwcwxm")))) + > (build-system gnu-build-system) + (arguments > + `(#:tests? #f ; no test suite > + #:make-flags > + (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) ; No ./configure script > + ;; Only build the C++ variant. > + (add-after 'unpack 'chdir > + (lambda _ > + (chdir "cpp") > + #t))))) > + (synopsis "QR Code generator library") > + (description "qrcodegen-cpp is a QR code generator library in > C++. The +project also offers Java, Javascript, Python, C, and Rust > implementations.") + (home-page > "https://www.nayuki.io/page/qr-code-generator-library") + (license > license:expat)))) -- > 2.25.0 > > > > ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2020-02-14 1:14 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-01-31 3:05 [bug#39365] LibreOffice 6.4 Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 2/6] gnu: mdds: Update to 1.5.0 Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 3/6] gnu: ixion: Update to 0.15.0 Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 4/6] gnu: orcus: Update to 0.15.3 Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 5/6] gnu: libetonyek: Update MDDS requirement Leo Famulari 2020-01-31 3:06 ` [bug#39365] [PATCH 6/6] gnu: LibreOffice: Update to 6.4.0.3 Leo Famulari 2020-01-31 8:58 ` [bug#39365] [PATCH 1/6] gnu: Add qrcodegen-cpp Efraim Flashner 2020-01-31 18:30 ` Leo Famulari 2020-02-13 22:21 ` Ludovic Courtès 2020-02-14 1:13 ` bug#39365: " Leo Famulari 2020-01-31 23:42 ` [bug#39365] " Jonathan Brielmaier
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/guix.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.