Compare commits

..

2 Commits

Author SHA256 Message Date
Ana Guerrero
378905f4ac Accepting request 1187884 from Publishing
OBS-URL: https://build.opensuse.org/request/show/1187884
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sgmltool?expand=0&rev=25
2024-07-17 13:13:54 +00:00
Martin Pluskal
76d898e5d1 - 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]

The package is somewhat wild, please see comment #1 in the bug
boo#1225928 if you are interested in details.

If the request is OK, please forward it to Factory soon-ish so that we
can switch the default compiler.

OBS-URL: https://build.opensuse.org/package/show/Publishing/sgmltool?expand=0&rev=26
2024-07-16 11:11:36 +00:00
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}" \