diff --git a/0001-extern-cqueue__poll.patch b/0001-extern-cqueue__poll.patch new file mode 100644 index 0000000..3a39e7c --- /dev/null +++ b/0001-extern-cqueue__poll.patch @@ -0,0 +1,25 @@ +From 6e84cef16081ba3aff2f7f5e6706b15fa4364db0 Mon Sep 17 00:00:00 2001 +From: Tomas Krizek +Date: Wed, 5 Feb 2020 17:45:51 +0100 +Subject: [PATCH] extern cqueue__poll + +--- + src/cqueues.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/cqueues.h b/src/cqueues.h +index a290135..ef803ea 100644 +--- a/src/cqueues.h ++++ b/src/cqueues.h +@@ -135,7 +135,7 @@ + + #define CQUEUE__POLL CQS_UNIQUE_LIGHTUSERDATA_MASK(&cqueue__poll) + +-const char *cqueue__poll; // signals multilevel yield ++extern const char *cqueue__poll; // signals multilevel yield + + cqs_nargs_t luaopen__cqueues(lua_State *); + +-- +2.25.0 + diff --git a/lua-cqueues.spec b/lua-cqueues.spec index 5997f7a..3aa960b 100644 --- a/lua-cqueues.spec +++ b/lua-cqueues.spec @@ -10,12 +10,13 @@ Name: lua-%{luapkgname} Version: 20190813 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Stackable Continuation Queues for the Lua Programming Language License: MIT URL: https://github.com/wahern/%{luapkgname} Source0: https://github.com/wahern/%{luapkgname}/archive/rel-%{version}/%{name}-%{version}.tar.gz +Patch1: 0001-extern-cqueue__poll.patch BuildRequires: gcc BuildRequires: m4 @@ -80,6 +81,7 @@ for the Lua Programming Language %prep %setup -q -n %{luapkgname}-rel-%{version} +%patch1 -p1 %build export CFLAGS="%{?optflags} -fPIC" @@ -125,6 +127,9 @@ sed -i '1 s|^#!/.*$|#!/usr/bin/lua|' %{buildroot}%{_pkgdocdir}/examples/* %license LICENSE %changelog +* Wed Feb 05 2020 Tomas Krizek - 20190813-3 +- Add patch to mark cqueues__poll as extern + * Wed Jan 29 2020 Fedora Release Engineering - 20190813-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild