music pushed to rpms/woff (f37). "Add hand-written man pages"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-11-29 15:18:02 UTC
From 8e659dece397d3936d57108c8f10e20204396842 Mon Sep 17 00:00:00 2001
From: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Nov 29 2022 03:50:00 +0000
Subject: Add hand-written man pages
---
diff --git a/sfnt2woff.1 b/sfnt2woff.1
new file mode 100644
index 0000000..87cecb6
--- /dev/null
+++ b/sfnt2woff.1
@@ -0,0 +1,35 @@
+.TH sfnt2woff "1" "November 2020" sfnt2woff\-zopfli "User Commands"
+.SH NAME
+sfnt2woff \- package OpenType
+.I otffile
+as WOFF, creating
+.IR otffile .woff
+.SH SYNOPSIS
+sfnt2woff
+.RB [ \-v
+.IR maj . min ]
+.RB [ \-m
+.IR metadata.xml ]
+.RB [ \-p
+.IR private.dat ]
+.I otffile
+.SH DESCRIPTION
+.PP
+Packages OpenType
+.I otffile
+as WOFF, creating
+.IR otffile .woff.
+.SH OPTIONS
+.TP
+\fB\-v\fR \fImaj\fR.\fImin
+set font version number (major and minor, both integers)
+.TP
+\fB\-m\fR \fImetadata.xml
+include metadata from
+.I metadata.xml
+(not validated)
+.TP
+\fB\-p\fR \fIprivate.dat
+include private data block
+.SH "SEE ALSO"
+.BR woff2sfnt (1)
diff --git a/woff.spec b/woff.spec
index dc90c41..41efbab 100644
--- a/woff.spec
+++ b/woff.spec
@@ -14,6 +14,9 @@ License: GPLv2+ or LGPLv2+ or MPLv1.1
URL: https://web.archive.org/web/20170630235618/%{original_url}
# There is no longer a working URL for this archive.
Source0: %{original_url}/woff-code-latest.zip
+# Hand-written for Fedora in groff_man(7) format based on --help output
+Source1: sfnt2woff.1
+Source2: woff2sfnt.1
BuildRequires: make
BuildRequires: gcc
@@ -36,12 +39,16 @@ Encoding and Decoding for Web Open Font Format(Woff)
# The Makefile has no install target.
install -d '%{buildroot}%{_bindir}'
install -t '%{buildroot}%{_bindir}' -p sfnt2woff woff2sfnt
+install -d '%{buildroot}%{_mandir}/man1'
+install -t '%{buildroot}%{_mandir}/man1' -p -m 0644 '%{SOURCE1}' '%{SOURCE2}'
%files
%doc woff-2009-10-03.html
%{_bindir}/sfnt2woff
%{_bindir}/woff2sfnt
+%{_mandir}/man1/sfnt2woff.1*
+%{_mandir}/man1/woff2sfnt.1*
%changelog
@@ -50,6 +57,7 @@ install -t '%{buildroot}%{_bindir}' -p sfnt2woff woff2sfnt
archive URL
- General tidying of spec file; use modern macros and install HTML format
description as documentation
+- Add hand-written man pages
* Sat Jul 23 2022 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.20091126-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
diff --git a/woff2sfnt.1 b/woff2sfnt.1
new file mode 100644
index 0000000..77bdb67
--- /dev/null
+++ b/woff2sfnt.1
@@ -0,0 +1,33 @@
+.TH woff2sfnt "1" "November 2020" woff2sfnt "User Commands"
+.SH NAME
+woff2sfnt \- decode WOFF file
+.IR woff ,
+writing OpenType data to
+.B stdout
+.SH SYNOPSIS
+woff2sfnt
+.RB [ \-v \ |\ \-m \ |\ \-p ]
+.I woff
+.SH DESCRIPTION
+.PP
+Decodes WOFF file
+.IR woff ,
+writing OpenType data to
+.BR stdout .
+.SH OPTIONS
+.TP
+.B \-v
+write font version to
+.B stdout
+.TP
+.B \-m
+write WOFF metadata block to
+.B stdout
+.TP
+.B \-p
+write private data block to
+.B stdout
+.SH NOTES
+Only one of \fB\-v\fR, \fB\-m\fR, \fB\-p\fR may be used at a time.
+.SH "SEE ALSO"
+.BR sfnt2woff (1)
https://src.fedoraproject.org/rpms/woff/c/8e659dece397d3936d57108c8f10e20...
1Â year, 5Â months
music pushed to rpms/woff (f37). "Patch a possible double-free bug"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-11-29 15:18:02 UTC
From a88484f1d97ae2eec2a4c44908cc9aa66c774acf Mon Sep 17 00:00:00 2001
From: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Nov 29 2022 15:10:56 +0000
Subject: Patch a possible double-free bug
---
diff --git a/possible-double-free.patch b/possible-double-free.patch
new file mode 100644
index 0000000..09a5660
--- /dev/null
+++ b/possible-double-free.patch
@@ -0,0 +1,11 @@
+diff -Naur a/woff.c b/woff.c
+--- a/woff.c 2009-09-25 09:54:13.000000000 -0400
++++ b/woff.c 2022-11-29 10:09:15.091798523 -0500
+@@ -354,6 +354,7 @@
+ newHeader->privLen = 0;
+
+ free(tableOrder);
++ tableOrder = 0;
+
+ if ((status & eWOFF_warn_checksum_mismatch) != 0) {
+ /* The original font had checksum errors, so we now decode our WOFF data
diff --git a/woff.spec b/woff.spec
index 41efbab..c90be54 100644
--- a/woff.spec
+++ b/woff.spec
@@ -18,6 +18,11 @@ Source0: %{original_url}/woff-code-latest.zip
Source1: sfnt2woff.1
Source2: woff2sfnt.1
+# It’s possible that tableOrder could be freed twice if a failure occurs. Set
+# the pointer null after freeing it to prevent this. There is no current
+# upstream to which this could be reported.
+Patch: possible-double-free.patch
+
BuildRequires: make
BuildRequires: gcc
@@ -27,7 +32,7 @@ BuildRequires: zlib-devel
Encoding and Decoding for Web Open Font Format(Woff)
%prep
-%autosetup -c
+%autosetup -c -p1
%build
https://src.fedoraproject.org/rpms/woff/c/a88484f1d97ae2eec2a4c44908cc9aa...
1Â year, 5Â months
music pushed to rpms/woff (f37). "General tidying of spec file (..more)"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-11-29 15:18:02 UTC
From d9d11e9215db53a55e71fd097fd1eb91d8a6d568 Mon Sep 17 00:00:00 2001
From: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Nov 29 2022 03:47:48 +0000
Subject: General tidying of spec file
- Use modern macros
- Install HTML format description as documentation
---
diff --git a/woff.spec b/woff.spec
index e01647d..dc90c41 100644
--- a/woff.spec
+++ b/woff.spec
@@ -15,33 +15,41 @@ URL: https://web.archive.org/web/20170630235618/%{original_url}
# There is no longer a working URL for this archive.
Source0: %{original_url}/woff-code-latest.zip
-BuildRequires: make
-BuildRequires: zlib-devel
+BuildRequires: make
BuildRequires: gcc
+BuildRequires: zlib-devel
+
%description
Encoding and Decoding for Web Open Font Format(Woff)
%prep
-%autosetup -c
+%autosetup -c
+
%build
-make CFLAGS="${RPM_OPT_FLAGS}" %{?_smp_mflags}
+%set_build_flags
+%make_build CFLAGS="${CFLAGS}"
%install
-mkdir -m 755 -p $RPM_BUILD_ROOT/%{_bindir}
-install -m755 sfnt2woff woff2sfnt $RPM_BUILD_ROOT/%{_bindir}/
+# The Makefile has no install target.
+install -d '%{buildroot}%{_bindir}'
+install -t '%{buildroot}%{_bindir}' -p sfnt2woff woff2sfnt
+
%files
-%doc
+%doc woff-2009-10-03.html
%{_bindir}/sfnt2woff
%{_bindir}/woff2sfnt
+
%changelog
* Tue Nov 29 2022 Benjamin A. Beasley <code(a)musicinmybrain.net> - 0.20091126-27
- Clarify URL/Source situation, and do not claim to have a working source
archive URL
+- General tidying of spec file; use modern macros and install HTML format
+ description as documentation
* Sat Jul 23 2022 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.20091126-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
https://src.fedoraproject.org/rpms/woff/c/d9d11e9215db53a55e71fd097fd1eb9...
1Â year, 5Â months
corsepiu pushed to rpms/perl-List-UtilsBy (rawhide). "Spec file cosmetics."
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-11-29 15:17:38 UTC
From 0c92ce47b90e47faddc822752c980d14459b3e6c Mon Sep 17 00:00:00 2001
From: Ralf Corsépius <corsepiu(a)fedoraproject.org>
Date: Nov 29 2022 15:17:29 +0000
Subject: Spec file cosmetics.
---
diff --git a/perl-List-UtilsBy.spec b/perl-List-UtilsBy.spec
index 97db01b..6c35a58 100644
--- a/perl-List-UtilsBy.spec
+++ b/perl-List-UtilsBy.spec
@@ -1,6 +1,6 @@
Name: perl-List-UtilsBy
Version: 0.12
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Higher-order list utility functions
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/List-UtilsBy
@@ -36,7 +36,6 @@ returned by the extra function, when given each value.
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
@@ -50,6 +49,9 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_mandir}/man3/*
%changelog
+* Tue Nov 29 2022 Ralf Corsépius <corsepiu(a)fedoraproject.org> - 0.12-5
+- Spec file cosmetics.
+
* Mon Nov 28 2022 Ralf Corsépius <corsepiu(a)fedoraproject.org> - 0.12-4
- Convert license to SPDX.
https://src.fedoraproject.org/rpms/perl-List-UtilsBy/c/0c92ce47b90e47fadd...
1Â year, 5Â months
music pushed to rpms/woff (rawhide). "Patch a possible double-free bug"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-11-29 15:15:26 UTC
From a88484f1d97ae2eec2a4c44908cc9aa66c774acf Mon Sep 17 00:00:00 2001
From: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Nov 29 2022 15:10:56 +0000
Subject: Patch a possible double-free bug
---
diff --git a/possible-double-free.patch b/possible-double-free.patch
new file mode 100644
index 0000000..09a5660
--- /dev/null
+++ b/possible-double-free.patch
@@ -0,0 +1,11 @@
+diff -Naur a/woff.c b/woff.c
+--- a/woff.c 2009-09-25 09:54:13.000000000 -0400
++++ b/woff.c 2022-11-29 10:09:15.091798523 -0500
+@@ -354,6 +354,7 @@
+ newHeader->privLen = 0;
+
+ free(tableOrder);
++ tableOrder = 0;
+
+ if ((status & eWOFF_warn_checksum_mismatch) != 0) {
+ /* The original font had checksum errors, so we now decode our WOFF data
diff --git a/woff.spec b/woff.spec
index 41efbab..c90be54 100644
--- a/woff.spec
+++ b/woff.spec
@@ -18,6 +18,11 @@ Source0: %{original_url}/woff-code-latest.zip
Source1: sfnt2woff.1
Source2: woff2sfnt.1
+# It’s possible that tableOrder could be freed twice if a failure occurs. Set
+# the pointer null after freeing it to prevent this. There is no current
+# upstream to which this could be reported.
+Patch: possible-double-free.patch
+
BuildRequires: make
BuildRequires: gcc
@@ -27,7 +32,7 @@ BuildRequires: zlib-devel
Encoding and Decoding for Web Open Font Format(Woff)
%prep
-%autosetup -c
+%autosetup -c -p1
%build
https://src.fedoraproject.org/rpms/woff/c/a88484f1d97ae2eec2a4c44908cc9aa...
1Â year, 5Â months