Verify Apache Release
To verify the release, following checklist can used to reference:
- Download links are valid.
- Checksums and PGP signatures are valid.
- DISCLAIMER-WIP is included.
- Source code artifacts have correct names matching the current release.
- LICENSE and NOTICE files are correct for the repository.
- All files have license headers if necessary.
- No compiled archives bundled in source archive.
- Building is OK.
1. Download source package, signature file, hash file and KEYS
Download all artifacts, take a.b.c-incubating as an example:
wget https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=/incubator/doris/a.b.c-incubating/apache-doris-a.b.c-incubating-src.tar.gz
wget https://www.apache.org/dist/incubator/doris/a.b.c-incubating/apache-doris-a.b.c-incubating-src.tar.gz.sha512
wget https://www.apache.org/dist/incubator/doris/a.b.c-incubating/apache-doris-a.b.c-incubating-src.tar.gz.asc
wget https://www.apache.org/dist/incubator/doris/KEYS
2. Verify signature and hash
GnuPG is recommended, which can install by yum install gnupg or apt-get install gnupg.
gpg --import KEYS
gpg --verify apache-doris-a.b.c-incubating-src.tar.gz.asc apache-doris-a.b.c-incubating-src.tar.gz
sha512sum --check apache-doris-a.b.c-incubating-src.tar.gz.sha512
3. Verify license header
Apache RAT is recommended to verify license header, which can download as following command.
wget http://mirrors.tuna.tsinghua.edu.cn/apache/creadur/apache-rat-0.13/apache-rat-0.13-bin.tar.gz
tar zxvf apache-rat-0.13-bin.tar.gz
Given your source dir is apache-doris-a.b.c-incubating-src, you can check with following command. It will output a file list which don’t include ASF license header, and these files used other licenses.
/usr/java/jdk/bin/java -jar apache-rat-0.13/apache-rat-0.13.jar -a -d apache-doris-a.b.c-incubating-src -E apache-doris-a.b.c-incubating-src/.rat-excludes
4. Verify building
To compile the Doris, please read Compilation