From 9ced2f39962d13d5d573266ae07a7f848b5bbfb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org> Date: Fri, 28 Jul 2023 04:34:56 +0000 Subject: [PATCH] cwidget: apply ftbfs patch to build aptitude i386 --- .../0002-Fix-cwidget-and-aptitude-FTBFS.patch | 16 ++++++++++ helpers/make-cwidget | 29 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 helpers/DATA/cwidget/0002-Fix-cwidget-and-aptitude-FTBFS.patch create mode 100644 helpers/make-cwidget diff --git a/helpers/DATA/cwidget/0002-Fix-cwidget-and-aptitude-FTBFS.patch b/helpers/DATA/cwidget/0002-Fix-cwidget-and-aptitude-FTBFS.patch new file mode 100644 index 00000000..7614cb84 --- /dev/null +++ b/helpers/DATA/cwidget/0002-Fix-cwidget-and-aptitude-FTBFS.patch @@ -0,0 +1,16 @@ +Description: Fix FTBFS in cwidget as well as in aptitude due to missing #include <pthread.h> +Author: Paul Wise <pabs@debian.org> +Reviewed-By: Axel Beckert <abe@debian.org> +Bug-Debian: https://bugs.debian.org/1015925 +Bug: https://bugs.debian.org/1015925 + +--- a/src/cwidget/generic/threads/threads.h ++++ b/src/cwidget/generic/threads/threads.h +@@ -26,6 +26,7 @@ + #define THREADS_H + + #include <errno.h> ++#include <pthread.h> + #include <cwidget/generic/util/exception.h> + + namespace cwidget diff --git a/helpers/make-cwidget b/helpers/make-cwidget new file mode 100644 index 00000000..3918f8f0 --- /dev/null +++ b/helpers/make-cwidget @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Copyright (C) 2023 Luis Guzmán <ark@switnet.org> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=0 + +. ./config + +#Apply patch to fix Debian's #1714264 +patch -p1 < $DATA/0002-Fix-cwidget-and-aptitude-FTBFS.patch + +changelog "Apply patch to fix Debian's #1015925 affecting aramo." + +compile -- GitLab