Skip to main content

2.2 Binary Preparation

  • Visit release page of a project and select a release for testing
  • Record the committish ($COMMITTISH) and data of release ($DATE_RELEASE)
  • Download the source code tarball and build the binary according to the instructions

A. FFmpeg#FFmpeg

apt install yasm
cd /opt/workspace/
git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg

# built at $COMMITTISH
git checkout $COMMITTISH
./configure
make clean
make

# prepare tarball
find . -name "*.o" | tar -cvzf ./FFmpeg.tar.gz --files-from=-

# record $PROJECT, $DATE_RELEASE

B. ImageMagick#ImageMagick

cd /opt/workspace/
git clone https://github.com/ImageMagick/ImageMagick.git
cd ImageMagick

# built at $COMMITTISH
git checkout $COMMITTISH
make ARCH=x86 -C ./ oldde
./configure
make clean
make

# prepare tarball
find . -name "*.o" | tar -cvzf ./ImageMagick.tar.gz --files-from=-

# record $PROJECT, $DATE_RELEASE

C. linux#torvalds

apt install cpio

cd /opt/workspace/
git clone https://github.com/torvalds/linux
cd linux

# built at $COMMITTISH
cp /opt/scripts/linux/linux.config ./.config
git checkout $COMMITTISH
make ARCH=x86 -C ./ olddefconfig
make -C ./ clean
make ARCH=x86 -C ./ all

# prepare tarball
find . -name "*.o" | tar -cvzf ./linux.$COMMITTISH.tar.gz --files-from=-

# record $PROJECT, $DATE_RELEASE

D. tcpdump#the-tcpdump-group

apt install autoconf
apt install libpcap-dev

cd /opt/workspace/
git clone https://github.com/the-tcpdump-group/tcpdump.git
cd tcpdump

# built at $COMMITTISH
git checkout $COMMITTISH
./configure
make clean
make

# prepare tarball
find . -name "*.o" | tar -cvzf ./tcpdump.tar.gz --files-from=-

# record $PROJECT, $DATE_RELEASE