newsboat: fix build with gcc12

This commit is contained in:
Juergen Daubert 2022-05-09 11:18:50 +02:00
parent 16dafcf9cd
commit 89c1218899
3 changed files with 28 additions and 4 deletions

View File

@ -1,7 +1,8 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/VgvushEFWbwyIMc7b7KZ80ObGBC/x+Fw/u/mbPSE/gsepXpKVzyQ2p+v5IEbmgGktpDREriKDNdhxnvynEwMgE=
SHA256 (Pkgfile) = 841884324cf263b3d74da82de74d0d23db68d42638f713aed59013d19be1cf25
RWSE3ohX2g5d/Spha1TJL7ELMy/gqZpwjtuqCoD806BYCSM6CXCKzVM1asn9Y7LUdNE7Jm7Klcv4D4Zti51CIJXTLZH7duTo9gA=
SHA256 (Pkgfile) = df1795ce11779df4e950c07421f47d50cd4406a4fb3514a579724f07fa434cdf
SHA256 (.footprint) = 06b39e043d56a32e79bc658c4ff55db7bd7766762838a1983998f9dd2a93bb3c
SHA256 (newsboat-2.27.tar.xz) = fd5a40096689d4fc0f18441319197769fa377709821b1a3f1b2ba1f006625285
SHA256 (newsboat.1.gz) = 85f55b4a1d5470afb03e7fa010bd12e12f698999ef1d21dff85917ad35d3254c
SHA256 (podboat.1.gz) = 9b9341975a3dd57d695c3e54ad91742794db7aaa415f30eecd29552d9722c52f
SHA256 (2056.patch) = 3d4330a777863dd7c26d5bd8a2b28ea2a68989bab8e673946aad7dabcb57bf91

21
newsboat/2056.patch Normal file
View File

@ -0,0 +1,21 @@
From 3e8b2ca1a1a7142cd75fa251b695eec12e4ff43a Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Thu, 5 May 2022 13:28:16 +0200
Subject: [PATCH] include cstring in itemlisformaction
---
src/itemlistformaction.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/itemlistformaction.cpp b/src/itemlistformaction.cpp
index 145aa3945..9e6db376f 100644
--- a/src/itemlistformaction.cpp
+++ b/src/itemlistformaction.cpp
@@ -3,6 +3,7 @@
#include <cassert>
#include <cinttypes>
#include <cstdio>
+#include <cstring>
#include <langinfo.h>
#include <sstream>
#include <string>

View File

@ -5,13 +5,15 @@
name=newsboat
version=2.27
release=1
release=2
source=(https://newsboat.org/releases/$version/$name-$version.tar.xz
newsboat.1.gz podboat.1.gz)
newsboat.1.gz podboat.1.gz 2056.patch)
build () {
cd $name-$version
patch -p1 -i $SRC/2056.patch
sed "s/-O2 -ggdb/$CXXFLAGS/" -i Makefile
export prefix=/usr
./config.sh