Bjørn Lie 2025-01-14 17:41:27 +00:00 committed by Git OBS Bridge
commit 2021452794
12 changed files with 2366 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

18
_service Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/harfbuzz/harfbuzz.git</param>
<param name="revision">10.2.0</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">v?(.*)\+0</param>
<param name="versionrewrite-replacement">\1</param>
<!-- <param name="changesgenerate">enable</param> -->
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">zst</param>
</service>
<service name="set_version" mode="manual" />
</services>

5
baselibs.conf Normal file
View File

@ -0,0 +1,5 @@
libharfbuzz0
libharfbuzz-cairo0
libharfbuzz-gobject0
libharfbuzz-icu0
libharfbuzz-subset0

3
harfbuzz-10.1.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:15e6948e9d5e57cd7e96fda0c0b24b23657d6356083d00a1111b30334d873ff2
size 96904206

3
harfbuzz-10.2.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c4524f9dad407546ad77848c2f35d61f2f66a56691f53f63edcd38ba7f8f0bf8
size 97176078

3
harfbuzz-8.5.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77e4f7f98f3d86bf8788b53e6832fb96279956e1c3961988ea3d4b7ca41ddc27
size 19468172

3
harfbuzz-9.0.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a41b272ceeb920c57263ec851604542d9ec85ee3030506d94662067c7b6ab89e
size 17895360

View File

@ -0,0 +1,62 @@
From 1767f99e2e2196c3fcae27db6d8b60098d3f6d26 Mon Sep 17 00:00:00 2001
From: Behdad Esfahbod <behdad@behdad.org>
Date: Sun, 10 Nov 2024 22:43:28 -0700
Subject: [PATCH] [cairo] Guard hb_cairo_glyphs_from_buffer() against bad UTF-8
Previously it was assuming valid UTF-8.
---
src/hb-cairo.cc | 2 ++
src/hb-utf.hh | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/hb-cairo.cc b/src/hb-cairo.cc
index d8b582c49..4d22ae059 100644
--- a/src/hb-cairo.cc
+++ b/src/hb-cairo.cc
@@ -1000,6 +1000,7 @@ hb_cairo_glyphs_from_buffer (hb_buffer_t *buffer,
end = start + hb_glyph[i].cluster - hb_glyph[i+1].cluster;
else
end = (const char *) hb_utf_offset_to_pointer<hb_utf8_t> ((const uint8_t *) start,
+ (const uint8_t *) utf8, utf8_len,
(signed) (hb_glyph[i].cluster - hb_glyph[i+1].cluster));
(*clusters)[cluster].num_bytes = end - start;
start = end;
@@ -1020,6 +1021,7 @@ hb_cairo_glyphs_from_buffer (hb_buffer_t *buffer,
end = start + hb_glyph[i].cluster - hb_glyph[i-1].cluster;
else
end = (const char *) hb_utf_offset_to_pointer<hb_utf8_t> ((const uint8_t *) start,
+ (const uint8_t *) utf8, utf8_len,
(signed) (hb_glyph[i].cluster - hb_glyph[i-1].cluster));
(*clusters)[cluster].num_bytes = end - start;
start = end;
diff --git a/src/hb-utf.hh b/src/hb-utf.hh
index 1120bd1cc..6db9bf2fd 100644
--- a/src/hb-utf.hh
+++ b/src/hb-utf.hh
@@ -458,19 +458,21 @@ struct hb_ascii_t
template <typename utf_t>
static inline const typename utf_t::codepoint_t *
hb_utf_offset_to_pointer (const typename utf_t::codepoint_t *start,
+ const typename utf_t::codepoint_t *text,
+ unsigned text_len,
signed offset)
{
hb_codepoint_t unicode;
while (offset-- > 0)
start = utf_t::next (start,
- start + utf_t::max_len,
+ text + text_len,
&unicode,
HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT);
while (offset++ < 0)
start = utf_t::prev (start,
- start - utf_t::max_len,
+ text,
&unicode,
HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT);
--
2.47.1

2059
harfbuzz.changes Normal file

File diff suppressed because it is too large Load Diff

4
harfbuzz.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: harfbuzz
version: 10.2.0
mtime: 1736611998
commit: 7b27c8edd46c674e01dd226fa9e1aa7549f5c436

182
harfbuzz.spec Normal file
View File

@ -0,0 +1,182 @@
#
# spec file for package harfbuzz
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: harfbuzz
Version: 10.2.0
Release: 0
Summary: An OpenType text shaping engine
License: MIT
URL: https://www.freedesktop.org/wiki/Software/HarfBuzz
Source0: %{name}-%{version}.tar.zst
Source99: baselibs.conf
BuildRequires: c++_compiler
BuildRequires: c_compiler
BuildRequires: meson
BuildRequires: pkgconfig >= 0.28
BuildRequires: pkgconfig(cairo) >= 1.10
BuildRequires: pkgconfig(cairo-ft)
BuildRequires: pkgconfig(freetype2) >= 12.0.6
BuildRequires: pkgconfig(glib-2.0) >= 2.30
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(graphite2) >= 1.2.0
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(icu-uc) >= 49.0
Conflicts: cantarell-fonts < 0.0.23
%description
HarfBuzz is an OpenType text shaping engine.
%package -n libharfbuzz0
Summary: An OpenType text shaping engine
%description -n libharfbuzz0
HarfBuzz is an OpenType text shaping engine.
%package -n libharfbuzz-cairo0
Summary: Cairo integration into the HarfBuzz OpenType text shaping engine
%description -n libharfbuzz-cairo0
HarfBuzz is an OpenType text shaping engine.
This package contains the Cairo library.
%package -n libharfbuzz-icu0
Summary: ICU integration into the HarfBuzz OpenType text shaping engine
%description -n libharfbuzz-icu0
HarfBuzz is an OpenType text shaping engine.
This package contains the ICU library.
%package -n libharfbuzz-gobject0
Summary: GObject wrapper around the HarfBuzz OpenType text shaping engine
%description -n libharfbuzz-gobject0
HarfBuzz is an OpenType text shaping engine.
This package contains the GObject library.
%package -n libharfbuzz-subset0
Summary: An OpenType text shaping engine
%description -n libharfbuzz-subset0
HarfBuzz is an OpenType text shaping engine.
This package contains the subset library
%package -n typelib-1_0-HarfBuzz-0_0
Summary: Introspection bindings for the HarfBuzz/GObject library
%description -n typelib-1_0-HarfBuzz-0_0
HarfBuzz is an OpenType text shaping engine.
This package provides the GObject Introspection bindings for HarfBuzz.
%package tools
Summary: Tools from the HarfBuzz text shaping software
%description tools
HarfBuzz is an OpenType text shaping engine.
This package provides a set of tools for HarfBuzz.
%package devel
Summary: Development files for the HarfBuzz OpenType text shaping engine
Requires: libharfbuzz-cairo0 = %{version}
Requires: libharfbuzz-gobject0 = %{version}
Requires: libharfbuzz-icu0 = %{version}
Requires: libharfbuzz-subset0 = %{version}
Requires: libharfbuzz0 = %{version}
Requires: typelib-1_0-HarfBuzz-0_0 = %{version}
Requires: pkgconfig(freetype2) >= 12.0.6
%description devel
HarfBuzz is an OpenType text shaping engine.
This package contains the development files.
%prep
%autosetup -p1
%build
# harfbuzz-8.4.0 defaults to 11, icu-75 needs >=17
export CXXFLAGS="%optflags -std=c++17"
%meson \
-Ddocs=disabled \
-Dgraphite=enabled \
-Dchafa=disabled \
%{nil}
%meson_build
%check
%meson_test
%install
%meson_install
%ldconfig_scriptlets -n libharfbuzz0
%ldconfig_scriptlets -n libharfbuzz-cairo0
%ldconfig_scriptlets -n libharfbuzz-icu0
%ldconfig_scriptlets -n libharfbuzz-gobject0
%ldconfig_scriptlets -n libharfbuzz-subset0
%files -n libharfbuzz0
%license COPYING
%doc NEWS
%{_libdir}/libharfbuzz.so.0*
%files -n libharfbuzz-cairo0
%license COPYING
%{_libdir}/libharfbuzz-cairo.so.0*
%files -n libharfbuzz-icu0
%license COPYING
%{_libdir}/libharfbuzz-icu.so.0*
%files -n libharfbuzz-gobject0
%license COPYING
%{_libdir}/libharfbuzz-gobject.so.0*
%files -n libharfbuzz-subset0
%license COPYING
%{_libdir}/libharfbuzz-subset.so.0*
%files -n typelib-1_0-HarfBuzz-0_0
%license COPYING
%{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib
%files tools
%license COPYING
%{_bindir}/hb-info
%{_bindir}/hb-ot-shape-closure
%{_bindir}/hb-shape
%{_bindir}/hb-subset
%{_bindir}/hb-view
%files devel
%license COPYING
%doc AUTHORS README.md THANKS
%{_includedir}/harfbuzz/
%{_libdir}/*.so
%{_libdir}/pkgconfig/harfbuzz.pc
%{_libdir}/pkgconfig/harfbuzz-cairo.pc
%{_libdir}/pkgconfig/harfbuzz-icu.pc
%{_libdir}/pkgconfig/harfbuzz-gobject.pc
%{_libdir}/pkgconfig/harfbuzz-subset.pc
%{_datadir}/gir-1.0/HarfBuzz-0.0.gir
%dir %{_libdir}/cmake
%dir %{_libdir}/cmake/harfbuzz
%{_libdir}/cmake/harfbuzz/harfbuzz-config.cmake
%changelog