Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2023 16:03:44 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d4bd77095e68 - main - comms/flrig: Fix build on 14 with clang-16
Message-ID:  <202307161603.36GG3i2P029725@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d4bd77095e68b94d239daab1bd7873b4566c64a4

commit d4bd77095e68b94d239daab1bd7873b4566c64a4
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-16 16:02:31 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-16 16:02:31 +0000

    comms/flrig: Fix build on 14 with clang-16
    
    A non-existent C++ feature std::ostringstream::streampos was used.
    
    Reported by:    fallout
---
 comms/flrig/files/patch-src_main.cxx | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/comms/flrig/files/patch-src_main.cxx b/comms/flrig/files/patch-src_main.cxx
new file mode 100644
index 000000000000..ec83afcbd14c
--- /dev/null
+++ b/comms/flrig/files/patch-src_main.cxx
@@ -0,0 +1,23 @@
+- fix build on 14 with clang-16 because std::ostringstream::streampos
+- doesn't exist there.
+- using the C++ standard std::streampos instead.
+
+--- src/main.cxx.orig	2023-07-16 15:55:45 UTC
++++ src/main.cxx
+@@ -21,6 +21,7 @@
+ #include "config.h"
+ 
+ #include <stdlib.h>
++#include <ios>
+ #include <iostream>
+ #include <fstream>
+ #include <sstream>
+@@ -313,7 +314,7 @@ void rotate_log(std::string filename)
+ {
+ 	const int n = 5; // rename existing log files to keep up to 5 old versions
+ 	ostringstream oldfn, newfn;
+-	ostringstream::streampos p;
++	streampos p;
+ 
+ 	oldfn << filename << '.';
+ 	newfn << filename << '.';



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307161603.36GG3i2P029725>