Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Doxygen 1.9.2 and weird new hostmakedeps for gnuradio
@ 2021-08-29  4:33 ericonr
  2021-08-30  1:12 ` [PR PATCH] [Updated] " ericonr
  2021-08-30  1:16 ` [PR PATCH] [Merged]: " ericonr
  0 siblings, 2 replies; 3+ messages in thread
From: ericonr @ 2021-08-29  4:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1615 bytes --]

There is a new pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages doxygen
https://github.com/void-linux/void-packages/pull/32741

Doxygen 1.9.2 and weird new hostmakedeps for gnuradio
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/32741.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-doxygen-32741.patch --]
[-- Type: text/x-diff, Size: 4938 bytes --]

From 543083172e177a70999e16ee436eb888415a3358 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Nogueira?= <erico.erc@gmail.com>
Date: Sun, 29 Aug 2021 01:24:47 -0300
Subject: [PATCH 1/2] doxygen: update to 1.9.2.

---
 ...-Fix-memory-corruption-in-TextStream.patch | 40 +++++++++++++++++++
 srcpkgs/doxygen/patches/fix-time64.patch      | 19 ---------
 srcpkgs/doxygen/template                      |  5 ++-
 3 files changed, 43 insertions(+), 21 deletions(-)
 create mode 100644 srcpkgs/doxygen/patches/0001-Fix-memory-corruption-in-TextStream.patch
 delete mode 100644 srcpkgs/doxygen/patches/fix-time64.patch

diff --git a/srcpkgs/doxygen/patches/0001-Fix-memory-corruption-in-TextStream.patch b/srcpkgs/doxygen/patches/0001-Fix-memory-corruption-in-TextStream.patch
new file mode 100644
index 000000000000..80c7ff16d17e
--- /dev/null
+++ b/srcpkgs/doxygen/patches/0001-Fix-memory-corruption-in-TextStream.patch
@@ -0,0 +1,40 @@
+upstream PR: https://github.com/doxygen/doxygen/pull/8739
+
+What was happening is that the TextStream object is reused for multiple
+different files. Therefore, when one calls setStream(nullptr) or
+setFile(nullptr), m_f or m_s will, respectively, still contain a pointer
+to the previous member, which is used when one calls setFile() or
+setStream() again, since these methods will call flush().
+
+For example, a program doing
+
+   s.setFile(f1);
+   s.setStream(nullptr);
+   fclose(f1);
+   s.setFile(f2);
+
+will call fwrite(f1, ...). This pattern can be observed in many parts of
+Doxygen, so fixing it in TextStream itself by always zeroing the other
+pointer is the simplest fix.
+
+diff --git a/src/textstream.h b/src/textstream.h
+index 161ce7fe..38027ec0 100644
+--- a/src/textstream.h
++++ b/src/textstream.h
+@@ -67,11 +67,13 @@ class TextStream final
+     {
+       flush();
+       m_s = s;
++      m_f = nullptr;
+     }
+ 
+     void setFile(FILE *f)
+     {
+       flush();
++      m_s = nullptr;
+       m_f = f;
+     }
+ 
+-- 
+2.33.0
+
diff --git a/srcpkgs/doxygen/patches/fix-time64.patch b/srcpkgs/doxygen/patches/fix-time64.patch
deleted file mode 100644
index 4f9616b31a12..000000000000
--- a/srcpkgs/doxygen/patches/fix-time64.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- a/qtools/qdatetime.cpp	2020-01-03 23:51:18.000000000 +0100
-+++ b/qtools/qdatetime.cpp	2020-12-02 10:48:03.245635836 +0100
-@@ -35,7 +35,6 @@
- **
- **********************************************************************/
- 
--#define gettimeofday	__hide_gettimeofday
- #include "qdatetime.h"
- #include "qdatastream.h"
- #include <stdio.h>
-@@ -55,8 +54,6 @@
- #elif defined(_OS_UNIX_) || defined(_OS_MAC_)
- #include <sys/time.h>
- #include <unistd.h>
--#undef	gettimeofday
--extern "C" int gettimeofday( struct timeval *, struct timezone * );
- #endif
- 
- static const uint FIRST_DAY	= 2361222;	// Julian day for 1752/09/14
diff --git a/srcpkgs/doxygen/template b/srcpkgs/doxygen/template
index 051c1568bbb2..8f5b986ceaf4 100644
--- a/srcpkgs/doxygen/template
+++ b/srcpkgs/doxygen/template
@@ -1,6 +1,6 @@
 # Template file for 'doxygen'
 pkgname=doxygen
-version=1.9.1
+version=1.9.2
 revision=1
 build_style=cmake
 configure_args="-DCMAKE_BUILD_TYPE=None"
@@ -10,8 +10,9 @@ short_desc="Source code documentation generator tool"
 maintainer="Érico Nogueira <ericonr@disroot.org>"
 license="GPL-2.0-only"
 homepage="http://www.doxygen.org/"
+changelog="https://www.doxygen.nl/manual/changelog.html"
 distfiles="http://doxygen.nl/files/doxygen-${version}.src.tar.gz"
-checksum=67aeae1be4e1565519898f46f1f7092f1973cce8a767e93101ee0111717091d1
+checksum=060f254bcef48673cc7ccf542736b7455b67c110b30fdaa33512a5b09bbecee5
 
 build_options="wizard"
 desc_option_wizard="build Qt5 GUI configuration tool, doxywizard"

From 35c63c4d1a8d09b3be8ab8afa3a50a19f28a2ecd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Nogueira?= <erico.erc@gmail.com>
Date: Sun, 29 Aug 2021 01:25:23 -0300
Subject: [PATCH 2/2] gnuradio: add hostmakedeps for doxygen-1.9.2.

It's using a bunch of texlive stuff now.
---
 srcpkgs/gnuradio/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/gnuradio/template b/srcpkgs/gnuradio/template
index da2dfa89eefc..88dae590f8f5 100644
--- a/srcpkgs/gnuradio/template
+++ b/srcpkgs/gnuradio/template
@@ -1,12 +1,12 @@
 # Template file for 'gnuradio'
 pkgname=gnuradio
 version=3.8.0.0
-revision=6
+revision=7
 build_style=cmake
 conf_files="/etc/gnuradio/conf.d/*"
 configure_args="-DENABLE_INTERNAL_VOLK=OFF -DGR_PYTHON_DIR=/${py3_sitelib}"
 hostmakedepends="pkg-config doxygen swig python3-Mako python3-Sphinx
- python3-cairo python3-numpy python3-yaml"
+ python3-cairo python3-numpy python3-yaml texlive texlive-latexextra texlive-dvi"
 makedepends="SDL-devel boost-devel fftw-devel gsl-devel jack-devel
  libgsm-devel libusb-devel volk-devel uhd-devel gtk+3-devel python3-devel
  python3-gobject-devel log4cpp-devel gmpxx-devel mpir-devel"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Updated] Doxygen 1.9.2 and weird new hostmakedeps for gnuradio
  2021-08-29  4:33 [PR PATCH] Doxygen 1.9.2 and weird new hostmakedeps for gnuradio ericonr
@ 2021-08-30  1:12 ` ericonr
  2021-08-30  1:16 ` [PR PATCH] [Merged]: " ericonr
  1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2021-08-30  1:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1620 bytes --]

There is an updated pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages doxygen
https://github.com/void-linux/void-packages/pull/32741

Doxygen 1.9.2 and weird new hostmakedeps for gnuradio
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/32741.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-doxygen-32741.patch --]
[-- Type: text/x-diff, Size: 7796 bytes --]

From 9b9578e876c79bef94b002e287c3dd59e2020bfa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Nogueira?= <erico.erc@gmail.com>
Date: Sun, 29 Aug 2021 01:24:47 -0300
Subject: [PATCH 1/4] doxygen: update to 1.9.2.

---
 ...-Fix-memory-corruption-in-TextStream.patch | 40 +++++++++++++++++++
 srcpkgs/doxygen/patches/fix-time64.patch      | 19 ---------
 srcpkgs/doxygen/template                      |  5 ++-
 3 files changed, 43 insertions(+), 21 deletions(-)
 create mode 100644 srcpkgs/doxygen/patches/0001-Fix-memory-corruption-in-TextStream.patch
 delete mode 100644 srcpkgs/doxygen/patches/fix-time64.patch

diff --git a/srcpkgs/doxygen/patches/0001-Fix-memory-corruption-in-TextStream.patch b/srcpkgs/doxygen/patches/0001-Fix-memory-corruption-in-TextStream.patch
new file mode 100644
index 000000000000..80c7ff16d17e
--- /dev/null
+++ b/srcpkgs/doxygen/patches/0001-Fix-memory-corruption-in-TextStream.patch
@@ -0,0 +1,40 @@
+upstream PR: https://github.com/doxygen/doxygen/pull/8739
+
+What was happening is that the TextStream object is reused for multiple
+different files. Therefore, when one calls setStream(nullptr) or
+setFile(nullptr), m_f or m_s will, respectively, still contain a pointer
+to the previous member, which is used when one calls setFile() or
+setStream() again, since these methods will call flush().
+
+For example, a program doing
+
+   s.setFile(f1);
+   s.setStream(nullptr);
+   fclose(f1);
+   s.setFile(f2);
+
+will call fwrite(f1, ...). This pattern can be observed in many parts of
+Doxygen, so fixing it in TextStream itself by always zeroing the other
+pointer is the simplest fix.
+
+diff --git a/src/textstream.h b/src/textstream.h
+index 161ce7fe..38027ec0 100644
+--- a/src/textstream.h
++++ b/src/textstream.h
+@@ -67,11 +67,13 @@ class TextStream final
+     {
+       flush();
+       m_s = s;
++      m_f = nullptr;
+     }
+ 
+     void setFile(FILE *f)
+     {
+       flush();
++      m_s = nullptr;
+       m_f = f;
+     }
+ 
+-- 
+2.33.0
+
diff --git a/srcpkgs/doxygen/patches/fix-time64.patch b/srcpkgs/doxygen/patches/fix-time64.patch
deleted file mode 100644
index 4f9616b31a12..000000000000
--- a/srcpkgs/doxygen/patches/fix-time64.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- a/qtools/qdatetime.cpp	2020-01-03 23:51:18.000000000 +0100
-+++ b/qtools/qdatetime.cpp	2020-12-02 10:48:03.245635836 +0100
-@@ -35,7 +35,6 @@
- **
- **********************************************************************/
- 
--#define gettimeofday	__hide_gettimeofday
- #include "qdatetime.h"
- #include "qdatastream.h"
- #include <stdio.h>
-@@ -55,8 +54,6 @@
- #elif defined(_OS_UNIX_) || defined(_OS_MAC_)
- #include <sys/time.h>
- #include <unistd.h>
--#undef	gettimeofday
--extern "C" int gettimeofday( struct timeval *, struct timezone * );
- #endif
- 
- static const uint FIRST_DAY	= 2361222;	// Julian day for 1752/09/14
diff --git a/srcpkgs/doxygen/template b/srcpkgs/doxygen/template
index 051c1568bbb2..8f5b986ceaf4 100644
--- a/srcpkgs/doxygen/template
+++ b/srcpkgs/doxygen/template
@@ -1,6 +1,6 @@
 # Template file for 'doxygen'
 pkgname=doxygen
-version=1.9.1
+version=1.9.2
 revision=1
 build_style=cmake
 configure_args="-DCMAKE_BUILD_TYPE=None"
@@ -10,8 +10,9 @@ short_desc="Source code documentation generator tool"
 maintainer="Érico Nogueira <ericonr@disroot.org>"
 license="GPL-2.0-only"
 homepage="http://www.doxygen.org/"
+changelog="https://www.doxygen.nl/manual/changelog.html"
 distfiles="http://doxygen.nl/files/doxygen-${version}.src.tar.gz"
-checksum=67aeae1be4e1565519898f46f1f7092f1973cce8a767e93101ee0111717091d1
+checksum=060f254bcef48673cc7ccf542736b7455b67c110b30fdaa33512a5b09bbecee5
 
 build_options="wizard"
 desc_option_wizard="build Qt5 GUI configuration tool, doxywizard"

From 7a4e8c604b2480374d20f6eb62a446aa80523337 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Nogueira?= <erico.erc@gmail.com>
Date: Sun, 29 Aug 2021 01:25:23 -0300
Subject: [PATCH 2/4] gnuradio: add hostmakedeps for doxygen-1.9.2.

It's using a bunch of texlive stuff now.
---
 srcpkgs/gnuradio/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/gnuradio/template b/srcpkgs/gnuradio/template
index da2dfa89eefc..88dae590f8f5 100644
--- a/srcpkgs/gnuradio/template
+++ b/srcpkgs/gnuradio/template
@@ -1,12 +1,12 @@
 # Template file for 'gnuradio'
 pkgname=gnuradio
 version=3.8.0.0
-revision=6
+revision=7
 build_style=cmake
 conf_files="/etc/gnuradio/conf.d/*"
 configure_args="-DENABLE_INTERNAL_VOLK=OFF -DGR_PYTHON_DIR=/${py3_sitelib}"
 hostmakedepends="pkg-config doxygen swig python3-Mako python3-Sphinx
- python3-cairo python3-numpy python3-yaml"
+ python3-cairo python3-numpy python3-yaml texlive texlive-latexextra texlive-dvi"
 makedepends="SDL-devel boost-devel fftw-devel gsl-devel jack-devel
  libgsm-devel libusb-devel volk-devel uhd-devel gtk+3-devel python3-devel
  python3-gobject-devel log4cpp-devel gmpxx-devel mpir-devel"

From 1d23b63661f1ced5683dda6e56e5fe68786b35b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Nogueira?= <erico.erc@gmail.com>
Date: Sun, 29 Aug 2021 22:06:11 -0300
Subject: [PATCH 3/4] signond: fix distfile.

---
 srcpkgs/signond/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/signond/template b/srcpkgs/signond/template
index 183c3b9481e7..9a2f0cff8c26 100644
--- a/srcpkgs/signond/template
+++ b/srcpkgs/signond/template
@@ -2,7 +2,7 @@
 pkgname=signond
 version=8.60
 revision=3
-wrksrc="signond-VERSION_${version}-4d195e4dc7a47ff5cb51e36a83d4d05808c5befe"
+wrksrc="signond-VERSION_${version}"
 build_style=qmake
 configure_args="LIBDIR=/usr/lib"
 conf_files="/etc/signond.conf"
@@ -12,8 +12,8 @@ short_desc="Daemon providing SSO over D-Bus for the gSSO framework"
 maintainer="John Rowley <enterthevoid@codesector.co>"
 license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/signond"
-distfiles="https://gitlab.com/accounts-sso/signond/repository/archive.tar.gz?ref=VERSION_${version}>signond-${version}.tar.gz"
-checksum=a9cd90cf3e8b1a8bdbe5acf46c797a817092e77946c69fc3ed3a76930f3a76aa
+distfiles="${homepage}/-/archive/VERSION_${version}/signond-VERSION_${version}.tar.gz"
+checksum=0da2a080e4b01f44855d1a519f828007a5c756ee93827db9098a1b4b880f28fe
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then

From 51cc7a9d91cb8e1dda989e15100b77ec6d45b35d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Nogueira?= <erico.erc@gmail.com>
Date: Sun, 29 Aug 2021 22:06:44 -0300
Subject: [PATCH 4/4] libaccounts-qt5: fix distfile.

---
 srcpkgs/libaccounts-qt5/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/libaccounts-qt5/template b/srcpkgs/libaccounts-qt5/template
index 73c98fb72bd4..c135d770ce75 100644
--- a/srcpkgs/libaccounts-qt5/template
+++ b/srcpkgs/libaccounts-qt5/template
@@ -2,7 +2,7 @@
 pkgname=libaccounts-qt5
 version=1.16
 revision=2
-wrksrc="libaccounts-qt-VERSION_${version}-525ec684cfa8d234f797d7e49e21c476eea04d8e"
+wrksrc="libaccounts-qt-VERSION_${version}"
 build_style=qmake
 configure_args="LIBDIR=/usr/lib"
 hostmakedepends="pkg-config doxygen qt5-qmake qt5-host-tools"
@@ -11,8 +11,8 @@ short_desc="Client library to the accounts database, with a Qt5-based API"
 maintainer="John Rowley <enterthevoid@codesector.co>"
 license="LGPL-2.1-only"
 homepage="https://gitlab.com/accounts-sso/libaccounts-qt"
-distfiles="${homepage}/repository/archive.tar.gz?ref=VERSION_${version}>${pkgname}-${version}.tar.gz"
-checksum=286eb02f936853e32e610003a2a332a12524050d226707e7630b6a29bd3bdf66
+distfiles="${homepage}/-/archive/VERSION_${version}/libaccounts-qt-VERSION_${version}.tar.gz"
+checksum=3e527b151ee87e851b0f027214bda1353d8e48e10a5b54109f1e4b7d422a7de3
 
 libaccounts-qt5-devel_package() {
 	short_desc+=" - development files"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: Doxygen 1.9.2 and weird new hostmakedeps for gnuradio
  2021-08-29  4:33 [PR PATCH] Doxygen 1.9.2 and weird new hostmakedeps for gnuradio ericonr
  2021-08-30  1:12 ` [PR PATCH] [Updated] " ericonr
@ 2021-08-30  1:16 ` ericonr
  1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2021-08-30  1:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

There's a merged pull request on the void-packages repository

Doxygen 1.9.2 and weird new hostmakedeps for gnuradio
https://github.com/void-linux/void-packages/pull/32741

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-30  1:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-29  4:33 [PR PATCH] Doxygen 1.9.2 and weird new hostmakedeps for gnuradio ericonr
2021-08-30  1:12 ` [PR PATCH] [Updated] " ericonr
2021-08-30  1:16 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).