package/daq: workaround for upstream changing the archive

Upstream has changed the archive for the 2.0.7 release since we bumped
in c1f820bd88 (package/daq: bump version to 2.0.7). Comparing the old
archive as it is on s.b.o. with the one currently available on upstream,
gives a few deltas, mostly;
  - (C) years changed in comments
  - version string changed from 2.0.6 to 2.0.7
  - changes (that look legit) to autostuff
  - a file dropped (Visual Studio related)

Of course, that means the hashes changed, and no longer match what we
have.

Downloading the file manually and letting wget set the timestamp on it,
reveals the archive is dated 2022-06-08T13:51:59. So, for more than two
years now, we've been relying on the archive we cached on s.b.o.

So, we can't just change the hashes to the new ones, nor can we replace
the archive on s.b.o.

Instead, we use the same trick as was used in c617ebbc97
(package/python-*: fix hashes for cargo-vendored python packages): we
use the actual, real URL with a query parameter as the _SITE, and we set
_SOURCE to a different name so as not to conflict with the previous
archive.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit 9e00cceb60e9ac8ec36ec7eb43eb9ef5534b705d)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Yann E. MORIN 2024-07-02 20:59:43 +02:00 committed by Peter Korsgaard
parent 544d3116d5
commit a09d7b1d5f
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# From https://www.snort.org/downloads/snort/md5s # From https://www.snort.org/downloads/snort/md5s
md5 ea796f001d1b00302e4e69e337ab2460 daq-2.0.7.tar.gz md5 60e5ddcafb985fac7374884d28f299d1 daq-2.0.7-modified.tar.gz
# Locally computed: # Locally computed:
sha256 bdc4e5a24d1ea492c39ee213a63c55466a2e8114b6a9abed609927ae13a7705e daq-2.0.7.tar.gz sha256 d1f6709bc5dbddee3fdf170cdc1e49fb926e2031d4869ecf367a8c47efc87279 daq-2.0.7-modified.tar.gz
# Hash for license files: # Hash for license files:
sha256 07f28289c09fd9eb5a6ff7bc710ff40363601b1bbc6f3637d8ed412150e90819 COPYING sha256 07f28289c09fd9eb5a6ff7bc710ff40363601b1bbc6f3637d8ed412150e90819 COPYING

View File

@ -5,7 +5,11 @@
################################################################################ ################################################################################
DAQ_VERSION = 2.0.7 DAQ_VERSION = 2.0.7
DAQ_SITE = https://www.snort.org/downloads/snort # Upstream re-published a modified archive for the same 2.0.7 version, so change
# its name locally, to avoid conflict with older BR versions which had a hash
# for the previous archive.
DAQ_SOURCE = daq-2.0.7-modified.tar.gz
DAQ_SITE = https://www.snort.org/downloads/snort/daq-$(DAQ_VERSION).tar.gz?buildroot-path=filename
DAQ_LICENSE = GPL-2.0 DAQ_LICENSE = GPL-2.0
DAQ_LICENSE_FILES = COPYING DAQ_LICENSE_FILES = COPYING
DAQ_INSTALL_STAGING = YES DAQ_INSTALL_STAGING = YES