Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xstereograph for openSUSE:Factory checked in at 2021-02-04 20:24:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xstereograph (Old) and /work/SRC/openSUSE:Factory/.xstereograph.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xstereograph" Thu Feb 4 20:24:51 2021 rev:23 rq:869532 version:2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/xstereograph/xstereograph.changes 2018-03-08 10:59:09.041754616 +0100 +++ /work/SRC/openSUSE:Factory/.xstereograph.new.28504/xstereograph.changes 2021-02-04 20:25:17.546937550 +0100 @@ -1,0 +2,6 @@ +Thu Feb 4 10:05:34 UTC 2021 - Marcus Meissner <meiss...@suse.com> + +- xstereograph-lto.patch: fix lto build +- also fixed some, but not all, ASNEEDED issues. + +------------------------------------------------------------------- New: ---- xstereograph-lto.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xstereograph.spec ++++++ --- /var/tmp/diff_new_pack.PKFOGA/_old 2021-02-04 20:25:18.254938629 +0100 +++ /var/tmp/diff_new_pack.PKFOGA/_new 2021-02-04 20:25:18.258938635 +0100 @@ -1,7 +1,7 @@ # # spec file for package xstereograph # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -33,7 +33,7 @@ Requires: xless Version: 2.1 Release: 0 -Url: http://freshmeat.net/projects/xstereograph/ +URL: http://freshmeat.net/projects/xstereograph/ Source0: %{name}-%{version}.tar.bz2 Source1: libsx-%{version_libsx}.tar.bz2 Patch0: %{name}-%{version}.patch @@ -47,6 +47,7 @@ # libpng16.patch not sent to upstream (is project alive?) Patch7: %{name}-%{version}-libpng16.patch Patch8: trunc.patch +Patch9: xstereograph-lto.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -75,19 +76,16 @@ %patch6 %patch7 %patch8 -p0 +%patch9 -p1 %build -# This package failed when testing with -Wl,-as-needed being default. -# So we disable it here, if you want to retest, just delete this comment and the line below. -export SUSE_ASNEEDED=0 -# # libsx cd libsx-%{version_libsx}/src -make +make CFLAGS="%optflags -D_POSIX_SOURCE -fPIC" cd ../.. # # xstereograph -make X11_LIBDIR=/usr/%{_lib} +make X11_LIBDIR=/usr/%{_lib} RPM_OPT_FLAGS="%optflags" %install make DESTDIR=$RPM_BUILD_ROOT install ++++++ xstereograph-lto.patch ++++++ Index: xstereograph-2.1/stereograph-0.28a/globals.h =================================================================== --- xstereograph-2.1.orig/stereograph-0.28a/globals.h +++ xstereograph-2.1/stereograph-0.28a/globals.h @@ -1,6 +1,6 @@ #ifndef _GLOBALS_H_ #define _GLOBALS_H_ -int verbose; +extern int verbose; #endif /* _GLOBALS_H_ */ Index: xstereograph-2.1/stereograph-0.28a/gfxio.c =================================================================== --- xstereograph-2.1.orig/stereograph-0.28a/gfxio.c +++ xstereograph-2.1/stereograph-0.28a/gfxio.c @@ -32,6 +32,7 @@ #include "gfxio.h" #include "globals.h" +int verbose; #define frand1() ((float)rand() / (float)RAND_MAX) #define PI 3.14159265358979 Index: xstereograph-2.1/stereograph-0.28a/Makefile =================================================================== --- xstereograph-2.1.orig/stereograph-0.28a/Makefile +++ xstereograph-2.1/stereograph-0.28a/Makefile @@ -12,7 +12,7 @@ # Linux CC = gcc CFLAGS = -Wall -O2 -Dlinux $(RPM_OPT_FLAGS) -LDFLAGS = -lm -lpng -lz +LDLIBS = -lm -lpng -lz # HPUX #CC = cc Index: xstereograph-2.1/src/Makefile =================================================================== --- xstereograph-2.1.orig/src/Makefile +++ xstereograph-2.1/src/Makefile @@ -2,7 +2,7 @@ BIN_DIR = /usr/bin CC = gcc #CFLAGS = -Wall -g CFLAGS = -I../libsx-2.03/src -Wall -O2 $(RPM_OPT_FLAGS) -LDFLAGS = -lm +LDLIBS = -lm # XLIBS = -L/usr/X11R6/lib -lsx -lXt -lXpm -lXaw -lX11 # XLIBS = -L/usr/X11R6/lib -lsx -lXt -lXpm -lXaw3d -lX11 @@ -13,7 +13,7 @@ all: xstereograph xstereograph: help.h xstereograph.c echo "#define SISDIR \"/usr/share/xstereograph\"" > config.h - $(CC) $(CFLAGS) $(XLIBS) $(LDFLAGS) xstereograph.c -o xstereograph + $(CC) $(CFLAGS) $(LDFLAGS) xstereograph.c $(XLIBS) -o xstereograph clean: rm -f config.h *.o *~ core xstereograph