all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
To: Bruno Victal <mirai@makinata.eu>
Cc: 63572@debbugs.gnu.org
Subject: bug#63572: [PATCH] Re: bug#63572: htmlcxx-0.87 fails to build
Date: Sat, 20 May 2023 23:43:46 +0200	[thread overview]
Message-ID: <87ilcmekrr.fsf@web.de> (raw)
In-Reply-To: <fb9dde16-e5b6-55e2-c992-de3d215049f7@makinata.eu>


[-- Attachment #1.1: Type: text/plain, Size: 794 bytes --]

Hi Bruno,

Bruno Victal <mirai@makinata.eu> writes:
>> So this may just need compiler parameters to set C++11 instead of C++17
>> as target.
>
> Looking at the README file from <https://sourceforge.net/p/htmlcxx/code/ci/master/tree/>,
> it looks to me that upstream has moved to <https://github.com/bonitao/htmlcxx>. (judging by the name of the repo owner)
> Can you try asking upstream for a new release? The last commit (<https://github.com/bonitao/htmlcxx/commit/0ffa3e90b7dc3944f199fd80ab47c2a82589209a>)
> has the message 'Fix c+11 compilation'.

I tried to build from the latest commit, but it did not build.

But I could now test adding the std argument and that works.

$ ./pre-inst-env guix build htmlcxx
/gnu/store/3bqrqs2zzx1gy4xc1g9i59z8nnhwv2rs-htmlcxx-0.87

A patch is attached.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-htmlcxx-add-std-c-11-to-configure-flags.patch --]
[-- Type: text/x-patch, Size: 1248 bytes --]

From 0a5478a83129efa07fc366c01f793c809a42ce99 Mon Sep 17 00:00:00 2001
Message-Id: <0a5478a83129efa07fc366c01f793c809a42ce99.1684619285.git.arne_bab@web.de>
From: Arne Babenhauserheide <arne_bab@web.de>
Date: Sat, 20 May 2023 23:45:43 +0200
Subject: [PATCH] gnu: htmlcxx: add --std=c++11 to configure flags.

* gnu/packages/web.scm (htmlcxx): add CXXFLAGS to configure-flag. C++17
  removed dynamic exception specifications.
---
 gnu/packages/web.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index fe52f673e2..aa9d23f19c 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -8248,6 +8248,9 @@ (define-public htmlcxx
        (sha256
         (base32 "1j3mzjlczjrk4ahc43s6kzpvzypzjmqz4sillnca5yadrwwgjf2x"))))
     (build-system gnu-build-system)
+    (arguments
+     ;; ISO C++17 does not allow dynamic exception specifications
+     `(#:configure-flags '("CXXFLAGS=-std=c++11")))
     (home-page "https://htmlcxx.sourceforge.net/")
     (synopsis "Simple non-validating CSS1 and HTML parser for C++")
     (description "htmlcxx is a simple non-validating CSS1 and HTML parser for

base-commit: bd7b795aeb9d35ac7b825ad4d0cf0088f18e1167
-- 
2.40.1


[-- Attachment #1.3: Type: text/plain, Size: 101 bytes --]


Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

  reply	other threads:[~2023-05-20 21:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-18 15:17 bug#63572: htmlcxx-0.87 fails to build Arne Babenhauserheide
2023-05-18 17:51 ` Bruno Victal
2023-05-20 21:43   ` Dr. Arne Babenhauserheide [this message]
2023-05-24  8:43     ` bug#63572: [PATCH] " Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ilcmekrr.fsf@web.de \
    --to=arne_bab@web.de \
    --cc=63572@debbugs.gnu.org \
    --cc=mirai@makinata.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.