Bug 1852311 - vendor xz using mach vendor r=ahochheiden,firefox-build-system-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D187793
This commit is contained in:
serge-sans-paille 2023-09-09 05:51:39 +00:00
parent 7d74b1de50
commit 3600e62704
5 changed files with 85 additions and 45 deletions

View File

@ -0,0 +1,10 @@
Licensing of XZ Embedded
========================
All the files in this package have been written by Lasse Collin
and/or Igor Pavlov. All these files have been put into the
public domain. You can do whatever you want with these files.
As usual, this software is provided "as is", without any warranty.

View File

@ -1,14 +0,0 @@
This is the XZ Embedded decompression library from
http://tukaani.org/xz/embedded.html.
Upstream code can be viewed at
http://git.tukaani.org/xz-embedded.git
and cloned by
git clone http://git.tukaani.org/xz-embedded.git
The in-tree copy is updated by running
sh update.sh
from within the modules/xz-embedded directory.
Current version: [e75f4eb79165213a02d567940d344f5c2ff1be03].

View File

@ -0,0 +1,74 @@
schema: 1
bugzilla:
product: GeckoView
component: General
origin:
name: xz embedded
description: https://tukaani.org/xz/embedded.html
url: https://tukaani.org/xz/embedded.html
release: b'e75f4eb79165213a02d567940d344f5c2ff1be03' (b'2015-11-03 21:27:39 +0200').
revision: b'e75f4eb79165213a02d567940d344f5c2ff1be03'
license: Public Domain
license-file: COPYING
vendoring:
url: http://git.tukaani.org/xz-embedded.git
source-hosting: git
tracking: commit
exclude:
- ".*"
- "*"
- "**"
keep:
- COPYING
include:
- userspace/xz_config.h
- linux/include/linux/xz.h
- linux/lib/xz/xz_private.h
- linux/lib/xz/xz_lzma2.h
- linux/lib/xz/xz_stream.h
- linux/lib/xz/xz_crc32.c
- linux/lib/xz/xz_crc64.c
- linux/lib/xz/xz_dec_bcj.c
- linux/lib/xz/xz_dec_stream.c
- linux/lib/xz/xz_dec_lzma2.c
update-actions:
- action: move-file
from: '{vendor_dir}/userspace/xz_config.h'
to: '{vendor_dir}/src/'
- action: move-file
from: '{vendor_dir}/linux/include/linux/xz.h'
to: '{vendor_dir}/src/'
- action: move-file
from: '{vendor_dir}/linux/lib/xz/xz_private.h'
to: '{vendor_dir}/src/'
- action: move-file
from: '{vendor_dir}/linux/lib/xz/xz_lzma2.h'
to: '{vendor_dir}/src/'
- action: move-file
from: '{vendor_dir}/linux/lib/xz/xz_stream.h'
to: '{vendor_dir}/src/'
- action: move-file
from: '{vendor_dir}/linux/lib/xz/xz_crc32.c'
to: '{vendor_dir}/src/'
- action: move-file
from: '{vendor_dir}/linux/lib/xz/xz_crc64.c'
to: '{vendor_dir}/src/'
- action: move-file
from: '{vendor_dir}/linux/lib/xz/xz_dec_bcj.c'
to: '{vendor_dir}/src/'
- action: move-file
from: '{vendor_dir}/linux/lib/xz/xz_dec_stream.c'
to: '{vendor_dir}/src/'
- action: move-file
from: '{vendor_dir}/linux/lib/xz/xz_dec_lzma2.c'
to: '{vendor_dir}/src/'

View File

@ -1,31 +0,0 @@
#!/bin/sh
# Script to update the Mozilla in-tree copy of XZ Embedded.
MY_TEMP_DIR=$(mktemp -d -t xz-embedded_update.XXXXXX) || exit 1
git clone http://git.tukaani.org/xz-embedded.git ${MY_TEMP_DIR}/xz-embedded
COMMIT=$(git -C ${MY_TEMP_DIR}/xz-embedded rev-parse HEAD)
cd $(dirname $0)
perl -p -i -e "s/\[commit [0-9a-f]{40}\]/[${COMMIT}]/" README.mozilla;
rm -rf src
mkdir src
mv ${MY_TEMP_DIR}/xz-embedded/userspace/xz_config.h src/
mv ${MY_TEMP_DIR}/xz-embedded/linux/include/linux/xz.h src/
mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_private.h src/
mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_lzma2.h src/
mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_stream.h src/
mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_crc32.c src/
mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_crc64.c src/
mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_dec_bcj.c src/
mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_dec_stream.c src/
mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_dec_lzma2.c src/
rm -rf ${MY_TEMP_DIR}
hg addremove src
echo "###"
echo "### Updated xz-embedded/src to $COMMIT."
echo "### Remember to verify and commit the changes to source control!"
echo "###"

View File

@ -44,6 +44,7 @@ VALID_LICENSES = [
"MIT",
"MPL-1.1",
"MPL-2.0",
"Public Domain",
"Unlicense",
"WTFPL",
"Zlib",