Use system lib2geom
This commit is contained in:
parent
6aa10117f8
commit
6ad4427913
@ -1,48 +0,0 @@
|
|||||||
From c68f5f9cade8a890efefcb4c2e0fc57762211286 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
||||||
Date: Fri, 24 Feb 2023 14:01:18 -0500
|
|
||||||
Subject: [PATCH] Fix build with GCC13
|
|
||||||
|
|
||||||
GCC 13 now complains about this line:
|
|
||||||
```
|
|
||||||
src/ui/widget/selected-style.cpp:111:6: error: statement-expressions are not allowed outside functions nor in template-argument lists
|
|
||||||
111 | {g_strdup("application/x-oswb-color"), 0, APP_OSWB_COLOR}
|
|
||||||
| ^~~~~~~~
|
|
||||||
```
|
|
||||||
|
|
||||||
However, it is not necessary to strdup the string constant as the value
|
|
||||||
just needs to exist indefinitely, and it will as a constant. While C
|
|
||||||
doesn't mind the `const` difference, a simple cast will silence C++'s
|
|
||||||
higher strictness.
|
|
||||||
|
|
||||||
And in fact, the other use of `GtkTargetEntry` in
|
|
||||||
`src/ui/drag-and-drop.cpp` does the same cast.
|
|
||||||
|
|
||||||
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
||||||
---
|
|
||||||
src/ui/widget/selected-style.cpp | 8 +-------
|
|
||||||
1 file changed, 1 insertion(+), 7 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp
|
|
||||||
index 68fe1fc426..7274f1b74c 100644
|
|
||||||
--- a/src/ui/widget/selected-style.cpp
|
|
||||||
+++ b/src/ui/widget/selected-style.cpp
|
|
||||||
@@ -100,14 +100,8 @@ enum ui_drop_target_info {
|
|
||||||
APP_OSWB_COLOR
|
|
||||||
};
|
|
||||||
|
|
||||||
-//TODO: warning: deprecated conversion from string constant to ‘gchar*’
|
|
||||||
-//
|
|
||||||
-//Turn out to be warnings that we should probably leave in place. The
|
|
||||||
-// pointers/types used need to be read-only. So until we correct the using
|
|
||||||
-// code, those warnings are actually desired. They say "Hey! Fix this". We
|
|
||||||
-// definitely don't want to hide/ignore them. --JonCruz
|
|
||||||
static const GtkTargetEntry ui_drop_target_entries [] = {
|
|
||||||
- {g_strdup("application/x-oswb-color"), 0, APP_OSWB_COLOR}
|
|
||||||
+ {(gchar *)"application/x-oswb-color", 0, APP_OSWB_COLOR}
|
|
||||||
};
|
|
||||||
|
|
||||||
static guint nui_drop_target_entries = G_N_ELEMENTS(ui_drop_target_entries);
|
|
||||||
--
|
|
||||||
2.39.2
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
Name: inkscape
|
Name: inkscape
|
||||||
Version: 1.3
|
Version: 1.3
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Vector-based drawing program using SVG
|
Summary: Vector-based drawing program using SVG
|
||||||
|
|
||||||
# Inkscape tags their releases with underscores and in ALLCAPS
|
# Inkscape tags their releases with underscores and in ALLCAPS
|
||||||
@ -19,8 +19,6 @@ Summary: Vector-based drawing program using SVG
|
|||||||
License: GPL-2.0-or-later AND CC-BY-3.0
|
License: GPL-2.0-or-later AND CC-BY-3.0
|
||||||
URL: https://inkscape.org/
|
URL: https://inkscape.org/
|
||||||
Source0: https://inkscape.org/release/inkscape-%{version}/source/archive/xz/dl/inkscape-%{version}.tar.xz
|
Source0: https://inkscape.org/release/inkscape-%{version}/source/archive/xz/dl/inkscape-%{version}.tar.xz
|
||||||
# https://gitlab.com/inkscape/inkscape/-/merge_requests/5108
|
|
||||||
#Patch: 0001-Fix-build-with-GCC13.patch
|
|
||||||
|
|
||||||
# Fedora Color Palette, GIMP format, CC-BY 3.0
|
# Fedora Color Palette, GIMP format, CC-BY 3.0
|
||||||
Source2: Fedora-Color-Palette.gpl
|
Source2: Fedora-Color-Palette.gpl
|
||||||
@ -35,7 +33,6 @@ Provides: bundled(autotrace)
|
|||||||
Provides: bundled(libdepixelize)
|
Provides: bundled(libdepixelize)
|
||||||
Provides: bundled(libuemf)
|
Provides: bundled(libuemf)
|
||||||
Provides: bundled(adaptagrams)
|
Provides: bundled(adaptagrams)
|
||||||
Provides: bundled(lib2geom)
|
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: hunspell-devel hunspell-en
|
BuildRequires: hunspell-devel hunspell-en
|
||||||
@ -59,6 +56,7 @@ BuildRequires: pkgconfig(GraphicsMagick++)
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: lcms2-devel
|
BuildRequires: lcms2-devel
|
||||||
|
BuildRequires: lib2geom-devel
|
||||||
BuildRequires: libpng-devel >= 1.2
|
BuildRequires: libpng-devel >= 1.2
|
||||||
BuildRequires: libwpg-devel
|
BuildRequires: libwpg-devel
|
||||||
BuildRequires: libxml2-devel >= 2.6.11
|
BuildRequires: libxml2-devel >= 2.6.11
|
||||||
@ -78,6 +76,9 @@ BuildRequires: libjpeg-devel
|
|||||||
BuildRequires: libsigc++20-devel
|
BuildRequires: libsigc++20-devel
|
||||||
BuildRequires: libsoup-devel
|
BuildRequires: libsoup-devel
|
||||||
BuildRequires: gspell-devel
|
BuildRequires: gspell-devel
|
||||||
|
%if 0%{?fedora} >= 39
|
||||||
|
BuildRequires: lib2geom-devel
|
||||||
|
%endif
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
||||||
# Disable all for now. TODO: Be smarter
|
# Disable all for now. TODO: Be smarter
|
||||||
@ -102,6 +103,7 @@ Suggests: tex(latex)
|
|||||||
Suggests: tex(dvips)
|
Suggests: tex(dvips)
|
||||||
Suggests: texlive-amsmath
|
Suggests: texlive-amsmath
|
||||||
Suggests: texlive-amsfonts
|
Suggests: texlive-amsfonts
|
||||||
|
Suggests: texlive-standalone
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Inkscape is a vector graphics editor, with capabilities similar to
|
Inkscape is a vector graphics editor, with capabilities similar to
|
||||||
@ -170,11 +172,6 @@ find $RPM_BUILD_ROOT -type f -name 'lib*.a' | xargs rm -f
|
|||||||
# No skencil anymore
|
# No skencil anymore
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/sk2svg.sh
|
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/sk2svg.sh
|
||||||
|
|
||||||
# Don't install development files for bundled libraries
|
|
||||||
rm -r $RPM_BUILD_ROOT%{_includedir}/2geom-1.3.0/
|
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/cmake/2Geom
|
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/2geom.pc
|
|
||||||
|
|
||||||
# Install Fedora Color Pallette
|
# Install Fedora Color Pallette
|
||||||
install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/inkscape/palettes/
|
install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/inkscape/palettes/
|
||||||
|
|
||||||
@ -239,6 +236,9 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.inkscape.Inksc
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 24 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.3-6
|
||||||
|
- Use system lib2geom on f39+
|
||||||
|
|
||||||
* Thu Aug 10 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.3-5
|
* Thu Aug 10 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.3-5
|
||||||
- Bring back i686 on f39+
|
- Bring back i686 on f39+
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user