update gitian

This commit is contained in:
wowario 2023-02-01 20:50:50 +03:00
parent 930e6e32a0
commit 1812ba449b
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
7 changed files with 42 additions and 42 deletions

View File

@ -41,10 +41,10 @@ RUN useradd -ms /bin/bash -U ubuntu -G docker
USER ubuntu:docker USER ubuntu:docker
WORKDIR $WORKDIR WORKDIR $WORKDIR
RUN git clone https://github.com/monero-project/gitian.sigs.git sigs; \ RUN git clone https://git.wownero.com/wownero/gitian.sigs.git sigs; \
git clone https://github.com/devrandom/gitian-builder.git builder; \ git clone https://github.com/devrandom/gitian-builder.git builder; \
cd builder; git checkout c0f77ca018cb5332bfd595e0aff0468f77542c23; mkdir -p inputs var; cd inputs; \ cd builder; git checkout c0f77ca018cb5332bfd595e0aff0468f77542c23; mkdir -p inputs var; cd inputs; \
git clone https://github.com/monero-project/monero git clone https://git.wownero.com/wownero/wownero
CMD ["sleep", "infinity"] CMD ["sleep", "infinity"]
EOF EOF
@ -109,7 +109,7 @@ if [ "$check" != "sign" ]; then
fi fi
if [ ! -d sigs ]; then if [ ! -d sigs ]; then
git clone https://github.com/monero-project/gitian.sigs.git sigs git clone https://git.wownero.com/wownero/gitian.sigs.git sigs
cd sigs cd sigs
git remote add $GH_USER git@github.com:$GH_USER/gitian.sigs.git git remote add $GH_USER git@github.com:$GH_USER/gitian.sigs.git
cd .. cd ..

View File

@ -1,5 +1,5 @@
--- ---
name: "monero-android-0.18" name: "wownero-android-0.11"
enable_cache: true enable_cache: true
suites: suites:
- "bionic" - "bionic"
@ -26,8 +26,8 @@ packages:
- "cmake" - "cmake"
- "unzip" - "unzip"
remotes: remotes:
- "url": "https://github.com/monero-project/monero.git" - "url": "https://git.wownero.com/wownero/wownero.git"
"dir": "monero" "dir": "wownero"
files: [] files: []
script: | script: |
@ -70,7 +70,7 @@ script: |
then then
ABI=$i"eabi" ABI=$i"eabi"
fi fi
NDKDIR="${BUILD_DIR}/monero/contrib/depends/$i/native/bin" NDKDIR="${BUILD_DIR}/wownero/contrib/depends/$i/native/bin"
for prog in ${FAKETIME_HOST_PROGS}; do for prog in ${FAKETIME_HOST_PROGS}; do
WRAPPER=${WRAP_DIR}/${ABI}-${prog} WRAPPER=${WRAP_DIR}/${ABI}-${prog}
echo '#!/usr/bin/env bash' > ${WRAPPER} echo '#!/usr/bin/env bash' > ${WRAPPER}
@ -92,7 +92,7 @@ script: |
export SOURCE_DATE_EPOCH=`date -d 2000-01-01T12:00:00 +%s` export SOURCE_DATE_EPOCH=`date -d 2000-01-01T12:00:00 +%s`
git config --global core.abbrev 9 git config --global core.abbrev 9
cd monero cd wownero
# Set the version string that gets added to the tar archive name # Set the version string that gets added to the tar archive name
version="`git describe`" version="`git describe`"
if [[ $version == *"-"*"-"* ]]; then if [[ $version == *"-"*"-"* ]]; then
@ -122,7 +122,7 @@ script: |
chmod 755 bin/* chmod 755 bin/*
cp ../utils/conf/wow.conf bin cp ../utils/conf/wow.conf bin
chmod 644 bin/wow.conf chmod 644 bin/wow.conf
DISTNAME=monero-${i}-${version} DISTNAME=wownero-${i}-${version}
mv bin ${DISTNAME} mv bin ${DISTNAME}
find ${DISTNAME}/ | sort | tar --no-recursion --owner=0 --group=0 -c -T - | bzip2 -9 > ${OUTDIR}/${DISTNAME}.tar.bz2 find ${DISTNAME}/ | sort | tar --no-recursion --owner=0 --group=0 -c -T - | bzip2 -9 > ${OUTDIR}/${DISTNAME}.tar.bz2
cd .. cd ..

View File

@ -5,7 +5,7 @@ import os
import subprocess import subprocess
import sys import sys
gsigs = 'https://github.com/monero-project/gitian.sigs.git' gsigs = 'https://git.wownero.com/wownero/gitian.sigs.git'
gbrepo = 'https://github.com/devrandom/gitian-builder.git' gbrepo = 'https://github.com/devrandom/gitian-builder.git'
platforms = {'l': ['Linux', 'linux', 'tar.bz2'], platforms = {'l': ['Linux', 'linux', 'tar.bz2'],
@ -31,10 +31,10 @@ def setup():
subprocess.check_call(['git', 'checkout', 'c0f77ca018cb5332bfd595e0aff0468f77542c23']) subprocess.check_call(['git', 'checkout', 'c0f77ca018cb5332bfd595e0aff0468f77542c23'])
os.makedirs('inputs', exist_ok=True) os.makedirs('inputs', exist_ok=True)
os.chdir('inputs') os.chdir('inputs')
if os.path.isdir('monero'): if os.path.isdir('wownero'):
# Remove the potentially stale monero dir. Otherwise you might face submodule mismatches. # Remove the potentially stale wownero dir. Otherwise you might face submodule mismatches.
subprocess.check_call(['rm', 'monero', '-fR']) subprocess.check_call(['rm', 'wownero', '-fR'])
subprocess.check_call(['git', 'clone', args.url, 'monero']) subprocess.check_call(['git', 'clone', args.url, 'wownero'])
os.chdir('..') os.chdir('..')
make_image_prog = ['bin/make-base-vm', '--suite', 'bionic', '--arch', 'amd64'] make_image_prog = ['bin/make-base-vm', '--suite', 'bionic', '--arch', 'amd64']
if args.docker: if args.docker:
@ -66,10 +66,10 @@ def rebuild():
suffix = platforms[i][2] suffix = platforms[i][2]
print('\nCompiling ' + args.version + ' ' + os_name) print('\nCompiling ' + args.version + ' ' + os_name)
infile = 'inputs/monero/contrib/gitian/gitian-' + tag_name + '.yml' infile = 'inputs/wownero/contrib/gitian/gitian-' + tag_name + '.yml'
subprocess.check_call(['bin/gbuild', '-j', args.jobs, '-m', args.memory, '--commit', 'monero='+args.commit, '--url', 'monero='+args.url, infile]) subprocess.check_call(['bin/gbuild', '-j', args.jobs, '-m', args.memory, '--commit', 'wownero='+args.commit, '--url', 'wownero='+args.url, infile])
subprocess.check_call(['bin/gsign', '-p', args.sign_prog, '--signer', args.signer, '--release', args.version+'-'+tag_name, '--destination', '../sigs/', infile]) subprocess.check_call(['bin/gsign', '-p', args.sign_prog, '--signer', args.signer, '--release', args.version+'-'+tag_name, '--destination', '../sigs/', infile])
subprocess.check_call('mv build/out/monero-*.' + suffix + ' ../out/'+args.version, shell=True) subprocess.check_call('mv build/out/wownero-*.' + suffix + ' ../out/'+args.version, shell=True)
print('Moving var/install.log to var/install-' + tag_name + '.log') print('Moving var/install.log to var/install-' + tag_name + '.log')
subprocess.check_call('mv var/install.log var/install-' + tag_name + '.log', shell=True) subprocess.check_call('mv var/install.log var/install-' + tag_name + '.log', shell=True)
print('Moving var/build.log to var/build-' + tag_name + '.log') print('Moving var/build.log to var/build-' + tag_name + '.log')
@ -93,7 +93,7 @@ def build():
os.chdir('builder') os.chdir('builder')
os.makedirs('inputs', exist_ok=True) os.makedirs('inputs', exist_ok=True)
subprocess.check_call(['make', '-C', 'inputs/monero/contrib/depends', 'download', 'SOURCES_PATH=' + os.getcwd() + '/cache/common']) subprocess.check_call(['make', '-C', 'inputs/wownero/contrib/depends', 'download', 'SOURCES_PATH=' + os.getcwd() + '/cache/common'])
rebuild() rebuild()
@ -104,7 +104,7 @@ def verify():
for i, v in platforms: for i, v in platforms:
print('\nVerifying v'+args.version+' '+v[0]+'\n') print('\nVerifying v'+args.version+' '+v[0]+'\n')
subprocess.check_call(['bin/gverify', '-v', '-d', '../sigs/', '-r', args.version+'-'+v[1], 'inputs/monero/contrib/gitian/gitian-'+v[1]+'.yml']) subprocess.check_call(['bin/gverify', '-v', '-d', '../sigs/', '-r', args.version+'-'+v[1], 'inputs/wownero/contrib/gitian/gitian-'+v[1]+'.yml'])
os.chdir(workdir) os.chdir(workdir)
def main(): def main():
@ -113,7 +113,7 @@ def main():
parser = argparse.ArgumentParser(description='Script for running full Gitian builds.', usage='%(prog)s [options] signer version') parser = argparse.ArgumentParser(description='Script for running full Gitian builds.', usage='%(prog)s [options] signer version')
parser.add_argument('-c', '--commit', action='store_true', dest='commit', help='Indicate that the version argument is for a commit or branch') parser.add_argument('-c', '--commit', action='store_true', dest='commit', help='Indicate that the version argument is for a commit or branch')
parser.add_argument('-p', '--pull', action='store_true', dest='pull', help='Indicate that the version argument is the number of a github repository pull request') parser.add_argument('-p', '--pull', action='store_true', dest='pull', help='Indicate that the version argument is the number of a github repository pull request')
parser.add_argument('-u', '--url', dest='url', default='https://github.com/monero-project/monero', help='Specify the URL of the repository. Default is %(default)s') parser.add_argument('-u', '--url', dest='url', default='https://git.wownero.com/wownero/wownero', help='Specify the URL of the repository. Default is %(default)s')
parser.add_argument('-v', '--verify', action='store_true', dest='verify', help='Verify the Gitian build') parser.add_argument('-v', '--verify', action='store_true', dest='verify', help='Verify the Gitian build')
parser.add_argument('-b', '--build', action='store_true', dest='build', help='Do a Gitian build') parser.add_argument('-b', '--build', action='store_true', dest='build', help='Do a Gitian build')
parser.add_argument('-B', '--buildsign', action='store_true', dest='buildsign', help='Build both signed and unsigned binaries') parser.add_argument('-B', '--buildsign', action='store_true', dest='buildsign', help='Build both signed and unsigned binaries')
@ -178,8 +178,8 @@ def main():
if args.setup: if args.setup:
setup() setup()
os.makedirs('builder/inputs/monero', exist_ok=True) os.makedirs('builder/inputs/wownero', exist_ok=True)
os.chdir('builder/inputs/monero') os.chdir('builder/inputs/wownero')
if args.pull: if args.pull:
subprocess.check_call(['git', 'fetch', args.url, 'refs/pull/'+args.version+'/merge']) subprocess.check_call(['git', 'fetch', args.url, 'refs/pull/'+args.version+'/merge'])
args.commit = subprocess.check_output(['git', 'show', '-s', '--format=%H', 'FETCH_HEAD'], universal_newlines=True).strip() args.commit = subprocess.check_output(['git', 'show', '-s', '--format=%H', 'FETCH_HEAD'], universal_newlines=True).strip()

View File

@ -1,5 +1,5 @@
--- ---
name: "monero-freebsd-0.18" name: "wownero-freebsd-0.11"
enable_cache: true enable_cache: true
suites: suites:
- "bionic" - "bionic"
@ -26,8 +26,8 @@ packages:
- "python" - "python"
- "cmake" - "cmake"
remotes: remotes:
- "url": "https://github.com/monero-project/monero.git" - "url": "https://git.wownero.com/wownero/wownero.git"
"dir": "monero" "dir": "wownero"
files: [] files: []
script: | script: |
@ -87,7 +87,7 @@ script: |
export SOURCE_DATE_EPOCH=`date -d 2000-01-01T12:00:00 +%s` export SOURCE_DATE_EPOCH=`date -d 2000-01-01T12:00:00 +%s`
git config --global core.abbrev 9 git config --global core.abbrev 9
cd monero cd wownero
# Set the version string that gets added to the tar archive name # Set the version string that gets added to the tar archive name
version="`git describe`" version="`git describe`"
if [[ $version == *"-"*"-"* ]]; then if [[ $version == *"-"*"-"* ]]; then
@ -119,7 +119,7 @@ script: |
chmod 755 bin/* chmod 755 bin/*
cp ../utils/conf/wow.conf bin cp ../utils/conf/wow.conf bin
chmod 644 bin/wow.conf chmod 644 bin/wow.conf
DISTNAME=monero-${i}-${version} DISTNAME=wownero-${i}-${version}
mv bin ${DISTNAME} mv bin ${DISTNAME}
find ${DISTNAME}/ | sort | tar --no-recursion --owner=0 --group=0 -c -T - | bzip2 -9 > ${OUTDIR}/${DISTNAME}.tar.bz2 find ${DISTNAME}/ | sort | tar --no-recursion --owner=0 --group=0 -c -T - | bzip2 -9 > ${OUTDIR}/${DISTNAME}.tar.bz2
cd .. cd ..

View File

@ -1,5 +1,5 @@
--- ---
name: "monero-linux-0.18" name: "wownero-linux-0.11"
enable_cache: true enable_cache: true
suites: suites:
- "bionic" - "bionic"
@ -37,8 +37,8 @@ packages:
- "python" - "python"
- "cmake" - "cmake"
remotes: remotes:
- "url": "https://github.com/monero-project/monero.git" - "url": "https://git.wownero.com/wownero/wownero.git"
"dir": "monero" "dir": "wownero"
files: [] files: []
script: | script: |
@ -115,7 +115,7 @@ script: |
export SOURCE_DATE_EPOCH=`date -d 2000-01-01T12:00:00 +%s` export SOURCE_DATE_EPOCH=`date -d 2000-01-01T12:00:00 +%s`
git config --global core.abbrev 9 git config --global core.abbrev 9
cd monero cd wownero
# Set the version string that gets added to the tar archive name # Set the version string that gets added to the tar archive name
version="`git describe`" version="`git describe`"
if [[ $version == *"-"*"-"* ]]; then if [[ $version == *"-"*"-"* ]]; then
@ -164,7 +164,7 @@ script: |
chmod 755 bin/* chmod 755 bin/*
cp ../utils/conf/wow.conf bin cp ../utils/conf/wow.conf bin
chmod 644 bin/wow.conf chmod 644 bin/wow.conf
DISTNAME=monero-${i}-${version} DISTNAME=wownero-${i}-${version}
mv bin ${DISTNAME} mv bin ${DISTNAME}
find ${DISTNAME}/ | sort | tar --no-recursion --owner=0 --group=0 -c -T - | bzip2 -9 > ${OUTDIR}/${DISTNAME}.tar.bz2 find ${DISTNAME}/ | sort | tar --no-recursion --owner=0 --group=0 -c -T - | bzip2 -9 > ${OUTDIR}/${DISTNAME}.tar.bz2
cd .. cd ..

View File

@ -1,5 +1,5 @@
--- ---
name: "monero-osx-0.18" name: "wownero-osx-0.11"
enable_cache: true enable_cache: true
suites: suites:
- "bionic" - "bionic"
@ -24,8 +24,8 @@ packages:
- "python-dev" - "python-dev"
- "python-setuptools" - "python-setuptools"
remotes: remotes:
- "url": "https://github.com/monero-project/monero.git" - "url": "https://git.wownero.com/wownero/wownero.git"
"dir": "monero" "dir": "wownero"
files: [] files: []
script: | script: |
WRAP_DIR=$HOME/wrapped WRAP_DIR=$HOME/wrapped
@ -77,7 +77,7 @@ script: |
export PATH=${WRAP_DIR}:${PATH} export PATH=${WRAP_DIR}:${PATH}
git config --global core.abbrev 9 git config --global core.abbrev 9
cd monero cd wownero
# Set the version string that gets added to the tar archive name # Set the version string that gets added to the tar archive name
version="`git describe`" version="`git describe`"
if [[ $version == *"-"*"-"* ]]; then if [[ $version == *"-"*"-"* ]]; then
@ -110,7 +110,7 @@ script: |
chmod 755 bin/* chmod 755 bin/*
cp ../utils/conf/wow.conf bin cp ../utils/conf/wow.conf bin
chmod 644 bin/wow.conf chmod 644 bin/wow.conf
DISTNAME=monero-${i}-${version} DISTNAME=wownero-${i}-${version}
mv bin ${DISTNAME} mv bin ${DISTNAME}
find ${DISTNAME}/ | sort | tar --no-recursion --owner=0 --group=0 -c -T - | bzip2 -9 > ${OUTDIR}/${DISTNAME}.tar.bz2 find ${DISTNAME}/ | sort | tar --no-recursion --owner=0 --group=0 -c -T - | bzip2 -9 > ${OUTDIR}/${DISTNAME}.tar.bz2
cd .. cd ..

View File

@ -1,5 +1,5 @@
--- ---
name: "monero-win-0.18" name: "wownero-win-0.11"
enable_cache: true enable_cache: true
suites: suites:
- "bionic" - "bionic"
@ -35,8 +35,8 @@ alternatives:
package: "x86_64-w64-mingw32-gcc" package: "x86_64-w64-mingw32-gcc"
path: "/usr/bin/x86_64-w64-mingw32-gcc-posix" path: "/usr/bin/x86_64-w64-mingw32-gcc-posix"
remotes: remotes:
- "url": "https://github.com/monero-project/monero.git" - "url": "https://git.wownero.com/wownero/wownero.git"
"dir": "monero" "dir": "wownero"
files: [] files: []
script: | script: |
WRAP_DIR=$HOME/wrapped WRAP_DIR=$HOME/wrapped
@ -91,7 +91,7 @@ script: |
export SOURCE_DATE_EPOCH=`date -d 2000-01-01T12:00:00 +%s` export SOURCE_DATE_EPOCH=`date -d 2000-01-01T12:00:00 +%s`
git config --global core.abbrev 9 git config --global core.abbrev 9
cd monero cd wownero
# Set the version string that gets added to the tar archive name # Set the version string that gets added to the tar archive name
version="`git describe`" version="`git describe`"
if [[ $version == *"-"*"-"* ]]; then if [[ $version == *"-"*"-"* ]]; then
@ -128,7 +128,7 @@ script: |
cmake .. -DCMAKE_TOOLCHAIN_FILE=${BASEPREFIX}/${i}/share/toolchain.cmake cmake .. -DCMAKE_TOOLCHAIN_FILE=${BASEPREFIX}/${i}/share/toolchain.cmake
make ${MAKEOPTS} make ${MAKEOPTS}
cp ../utils/conf/wow.conf bin cp ../utils/conf/wow.conf bin
DISTNAME=monero-${i}-${version} DISTNAME=wownero-${i}-${version}
mv bin ${DISTNAME} mv bin ${DISTNAME}
find ${DISTNAME}/ | sort | zip -X@ ${OUTDIR}/${DISTNAME}.zip find ${DISTNAME}/ | sort | zip -X@ ${OUTDIR}/${DISTNAME}.zip
cd .. && rm -rf build cd .. && rm -rf build