File reproducible.patch of Package newsbeuter

From 8cf8bd40b449aa5f183f274df490d61e785ea4a6 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Mon, 22 May 2017 06:49:25 +0200
Subject: [PATCH] Make build reproducible

when linking binaries with g++, (random) filesystem order of input files
influences ordering of functions in the output

See https://reproducible-builds.org/ for why this matters.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 14c01f9..44d8c7d 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,7 @@ NEWSBEUTER_SOURCES:=$(shell cat mk/newsbeuter.deps)
 NEWSBEUTER_OBJS:=$(patsubst %.cpp,%.o,$(NEWSBEUTER_SOURCES))
 NEWSBEUTER_LIBS=-lbeuter -lfilter -lpthread -lrsspp
 
-RSSPPLIB_SOURCES=$(wildcard rss/*.cpp)
+RSSPPLIB_SOURCES=$(sort $(wildcard rss/*.cpp))
 RSSPPLIB_OBJS=$(patsubst rss/%.cpp,rss/%.o,$(RSSPPLIB_SOURCES))
 RSSPPLIB_OUTPUT=librsspp.a
 
-- 
2.12.0

openSUSE Build Service is sponsored by