mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
package infra: do not check hashes when downloading from a repository
When downloading from a repository, we have no way to ensure the reproducibility of the generated archives, so we can't check the hashes. Do not specifiy a hash file in those cases. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
c22fe04a78
commit
1286222597
@ -471,4 +471,10 @@ environment variable +BR2_ENFORCE_CHECK_HASH+ to a non-empty value, and
|
|||||||
there is no hash for a downloaded file, Buildroot considers this an
|
there is no hash for a downloaded file, Buildroot considers this an
|
||||||
error, deletes the downloaded file, and aborts.
|
error, deletes the downloaded file, and aborts.
|
||||||
|
|
||||||
|
Sources that are downloaded from a version control system (git, subversion,
|
||||||
|
etc...) can not have a hash, because the version control system and tar
|
||||||
|
may not create exactly the same file (dates, files ordering...), so the
|
||||||
|
hash could be wrong even for a valid download. Therefore, the hash check
|
||||||
|
is entirely skipped for such sources.
|
||||||
|
|
||||||
If the +.hash+ file is missing, then no check is done at all.
|
If the +.hash+ file is missing, then no check is done at all.
|
||||||
|
@ -87,7 +87,6 @@ github = https://github.com/$(1)/$(2)/archive/$(3)
|
|||||||
define DOWNLOAD_GIT
|
define DOWNLOAD_GIT
|
||||||
$(EXTRA_ENV) $(DL_WRAPPER) -b git \
|
$(EXTRA_ENV) $(DL_WRAPPER) -b git \
|
||||||
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
||||||
-H $(PKGDIR)/$($(PKG)_RAWNAME).hash \
|
|
||||||
$(QUIET) \
|
$(QUIET) \
|
||||||
-- \
|
-- \
|
||||||
$($(PKG)_SITE) \
|
$($(PKG)_SITE) \
|
||||||
@ -109,7 +108,6 @@ endef
|
|||||||
define DOWNLOAD_BZR
|
define DOWNLOAD_BZR
|
||||||
$(EXTRA_ENV) $(DL_WRAPPER) -b bzr \
|
$(EXTRA_ENV) $(DL_WRAPPER) -b bzr \
|
||||||
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
||||||
-H $(PKGDIR)/$($(PKG)_RAWNAME).hash \
|
|
||||||
$(QUIET) \
|
$(QUIET) \
|
||||||
-- \
|
-- \
|
||||||
$($(PKG)_SITE) \
|
$($(PKG)_SITE) \
|
||||||
@ -128,7 +126,6 @@ endef
|
|||||||
define DOWNLOAD_CVS
|
define DOWNLOAD_CVS
|
||||||
$(EXTRA_ENV) $(DL_WRAPPER) -b cvs \
|
$(EXTRA_ENV) $(DL_WRAPPER) -b cvs \
|
||||||
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
||||||
-H $(PKGDIR)/$($(PKG)_RAWNAME).hash \
|
|
||||||
$(QUIET) \
|
$(QUIET) \
|
||||||
-- \
|
-- \
|
||||||
$(call stripurischeme,$(call qstrip,$($(PKG)_SITE))) \
|
$(call stripurischeme,$(call qstrip,$($(PKG)_SITE))) \
|
||||||
@ -149,7 +146,6 @@ endef
|
|||||||
define DOWNLOAD_SVN
|
define DOWNLOAD_SVN
|
||||||
$(EXTRA_ENV) $(DL_WRAPPER) -b svn \
|
$(EXTRA_ENV) $(DL_WRAPPER) -b svn \
|
||||||
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
||||||
-H $(PKGDIR)/$($(PKG)_RAWNAME).hash \
|
|
||||||
$(QUIET) \
|
$(QUIET) \
|
||||||
-- \
|
-- \
|
||||||
$($(PKG)_SITE) \
|
$($(PKG)_SITE) \
|
||||||
@ -189,7 +185,6 @@ endef
|
|||||||
define DOWNLOAD_HG
|
define DOWNLOAD_HG
|
||||||
$(EXTRA_ENV) $(DL_WRAPPER) -b hg \
|
$(EXTRA_ENV) $(DL_WRAPPER) -b hg \
|
||||||
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
||||||
-H $(PKGDIR)/$($(PKG)_RAWNAME).hash \
|
|
||||||
$(QUIET) \
|
$(QUIET) \
|
||||||
-- \
|
-- \
|
||||||
$($(PKG)_SITE) \
|
$($(PKG)_SITE) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user