Ana Guerrero 2024-07-17 13:13:54 +00:00 committed by Git OBS Bridge
commit 378905f4ac
3 changed files with 34 additions and 5 deletions

View File

@ -1,17 +1,37 @@
--- sgml-tools-1.0.9/Makefile.in.~1~ 2005-10-10 11:46:17.000000000 +0200
+++ sgml-tools-1.0.9/Makefile.in 2005-10-10 14:05:24.000000000 +0200
--- sgml-tools-1.0.9.orig/Makefile.in
+++ sgml-tools-1.0.9/Makefile.in
@@ -34,7 +34,7 @@ all: gen
ifeq ($(BUILD_SGMLSASP), true)
@echo "Compiling the SGML parsing tools (in sgmls-1.1/)..."
( cd sgmls-1.1 ; \
- $(MAKE) OPTIMIZE="$(OPTIMIZE)" sgmlsasp )
+ $(MAKE) CFLAGS="$(CFLAGS)" OPTIMIZE="$(OPTIMIZE)" sgmlsasp )
endif
ifeq ($(BUILD_NSGMLS), true)
@echo "Compiling the SGML parsing tools (in sp/)..."
@@ -49,10 +49,10 @@
endif
@echo "Compiling preprocessor (in sgmlpre/)..."
( cd sgmlpre ; \
- $(MAKE) CFLAGS="$(OPTIMIZE)" LEX=flex sgmlpre || exit -1 )
+ $(MAKE) OPTIMIZE="$(OPTIMIZE)" LEX=flex sgmlpre || exit -1 )
+ $(MAKE) CFLAGS="$(CFLAGS)" OPTIMIZE="$(OPTIMIZE)" LEX=flex sgmlpre || exit -1 )
@echo "Compiling RTF conversion tools (in rtf-fix/)..."
( cd rtf-fix ; \
- $(MAKE) CFLAGS="$(OPTIMIZE)" || exit -1 )
+ $(MAKE) OPTIMIZE="$(OPTIMIZE)" || exit -1 )
+ $(MAKE) CFLAGS="$(CFLAGS)" OPTIMIZE="$(OPTIMIZE)" || exit -1 )
install::
@echo "Installing binaries in $(bindir) ..."
Diff finished. Mon Oct 10 14:05:44 2005
--- sgml-tools-1.0.9.orig/sgmls-1.1/Makefile
+++ sgml-tools-1.0.9/sgmls-1.1/Makefile
@@ -21,7 +21,7 @@ INCLUDE=
OPTIMIZE=-O
DEBUG=
WARN=
-CFLAGS=$(DEBUG) $(INCLUDE) $(WARN) $(PROFILE) $(OPTIMIZE)
+CFLAGS=$(CFLAGS) $(DEBUG) $(INCLUDE) $(WARN) $(PROFILE) $(OPTIMIZE)
LDFLAGS=$(DEBUG) $(PROFILE)
# Additional libraries needed.
# Ultrix needs -li

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Jul 15 11:08:21 UTC 2024 - Martin Jambor <mjambor@suse.com>
- Fix up cflags-sgml-tools-1.0.9.diff so that %optflags are not
completely lost. Added -fpermissive to %optflags in order to
make GCC 14 treat a number of C99 violations as mere warnings
by default. [boo#1225928]
-------------------------------------------------------------------
Mon Feb 26 13:08:20 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package sgmltool
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -92,6 +92,7 @@ This package contains the LaTeX generator (sgml2latex) from sgmltool.
%patch -P 9
%build
#%global optflags %{optflags} -fpermissive
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
--prefix="%{buildroot}/%{_prefix}" \