Init, adding corrade,magnum,magnum-plugins,magnum-integration,magnum-extras, and magnum-examples 2025.47_1

This commit is contained in:
2025-11-19 13:35:26 +02:00
parent 6031ef978f
commit 17b687c5c1
346 changed files with 28087 additions and 12 deletions

20
common/travis/build.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
#
# build.sh
if [ "$1" != "$2" ]; then
arch="-a $2"
fi
if [ "$3" = 1 ]; then
test="-Q"
fi
PKGS=$(./xbps-src $test sort-dependencies $(cat /tmp/templates))
for pkg in ${PKGS}; do
./xbps-src -j$(nproc) -s $arch $test pkg "$pkg"
[ $? -eq 1 ] && exit 1
done
exit 0

View File

@@ -0,0 +1,31 @@
#!/bin/bash
#
# changed_templates.sh
set -e
tip="$(git rev-list -1 --parents HEAD)"
case "$tip" in
# This is a merge commit, pick last parent
*" "*" "*) tip="${tip##* }" ;;
# This is a non-merge commit, pick itself
*) tip="${tip%% *}" ;;
esac
base="$(git merge-base origin/HEAD "$tip")"
[ $(git rev-list --count "$tip" "^$base") -lt 200 ] || {
echo "::error title=Branch out of date::Your branch is too out of date. Please rebase on upstream and force-push."
exit 1
}
echo "$base $tip" >/tmp/revisions
/bin/echo -e '\x1b[32mChanged packages:\x1b[0m'
git diff-tree -r --no-renames --name-only --diff-filter=AM \
"$base" "$tip" \
-- 'srcpkgs/*/template' |
cut -d/ -f 2 |
xargs ./xbps-src sort-dependencies |
tee /tmp/templates |
sed "s/^/ /" >&2

64
common/travis/check-install.sh Executable file
View File

@@ -0,0 +1,64 @@
#!/bin/bash
#
# check-install.sh
set -e
HOST_ARCH="$1"
export XBPS_TARGET_ARCH="$2"
if [ "$HOST_ARCH" != "$XBPS_TARGET_ARCH" ]; then
triplet="$(./xbps-src -a "$XBPS_TARGET_ARCH" show-var XBPS_CROSS_TRIPLET)"
CONFDIR="-C $PWD/masterdir-$HOST_ARCH/usr/$triplet/etc/xbps.d"
else
CONFDIR="-C $PWD/masterdir-$HOST_ARCH/etc/xbps.d"
fi
if ! [ -d /check-install ]; then
/bin/echo -e "\x1b[31m/check-install does not exist\x1b[0m"
exit 1
fi
mkdir -p /check-install/var/db/xbps/keys
cp /var/db/xbps/keys/* /check-install/var/db/xbps/keys/
ADDREPO="--repository=hostdir/binpkgs/bootstrap
--repository=hostdir/binpkgs
--repository=hostdir/binpkgs/nonfree"
ROOTDIR="-r /check-install"
# HACK: remove remote bootstrap repo from consideration
# if the libc package is virtual (like musl1.1), xbps
# can choose the one provided by cross-vpkg-dummy instead
# of the actual package
# this is fine to do here because it runs last in CI
for f in "${CONFDIR#-C }"/*remote*.conf; do
[ -e "$f" ] || break
sed -i -e '/bootstrap/d' "$f"
done
# if this fails, there were no packages built for this arch and thus no repodatas
xbps-install $ROOTDIR $ADDREPO $CONFDIR -S || exit 0
failed=()
while read -r pkg; do
for subpkg in $(xsubpkg $pkg); do
/bin/echo -e "\x1b[32mTrying to install dependents of $subpkg:\x1b[0m"
for dep in $(xbps-query $ADDREPO -RX "$subpkg"); do
ret=0
xbps-install \
$ROOTDIR $ADDREPO $CONFDIR \
-ny \
"$subpkg" "$(xbps-uhelper getpkgname "$dep")" \
|| ret="$?"
if [ "$ret" -ne 0 ]; then
/bin/echo -e "\x1b[31mFailed to install '$subpkg' and '$dep'\x1b[0m"
failed+=("Failed to install '$subpkg' and '$dep'")
fi
done
done
done < /tmp/templates
for msg in "${failed[@]}"; do
/bin/echo -e "\x1b[31m$msg\x1b[0m"
done
exit ${#failed[@]}

22
common/travis/fetch-xbps.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
#
# fetch-xbps.sh
command -v xbps-uhelper >/dev/null && exit
TAR=tar
command -v bsdtar >/dev/null && TAR=bsdtar
ARCH=$(uname -m)-musl
VERSION=0.59_5
URL="https://repo-ci.voidlinux.org/static/xbps-static-static-${VERSION}.${ARCH}.tar.xz"
FILE=${URL##*/}
mkdir -p /tmp/bin
/bin/echo -e '\x1b[32mInstalling xbps...\x1b[0m'
if command -v wget >/dev/null; then
wget -q -O "$FILE" "$URL" || exit 1
else
curl -s -o "$FILE" "$URL" || exit 1
fi
$TAR xf "$FILE" -C /tmp/bin --strip-components=3 ./usr/bin || exit 1

19
common/travis/fetch-xtools.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
#
# fetch-xtools.sh
TAR=tar
command -v bsdtar >/dev/null && TAR=bsdtar
URL="https://github.com/leahneukirchen/xtools/archive/master.tar.gz"
FILE="xtools.tar.gz"
mkdir -p /tmp/bin
/bin/echo -e '\x1b[32mInstalling xtools...\x1b[0m'
if command -v wget >/dev/null; then
wget -q -O "$FILE" "$URL" || exit 1
else
xbps-fetch -o "$FILE" "$URL" || exit 1
fi
$TAR xf "$FILE" -C /usr/local/bin --strip-components=1 || exit 1

778
common/travis/license.lst Normal file
View File

@@ -0,0 +1,778 @@
0BSD
389-exception
3D-Slicer-1.0
AAL
ADSL
AFL-1.1
AFL-1.2
AFL-2.0
AFL-2.1
AFL-3.0
AGPL-1.0-only
AGPL-1.0-or-later
AGPL-3.0-only
AGPL-3.0-or-later
AMD-newlib
AMDPLPA
AML-glslang
AML
AMPAS
ANTLR-PD-fallback
ANTLR-PD
APAFML
APL-1.0
APSL-1.0
APSL-1.1
APSL-1.2
APSL-2.0
ASWF-Digital-Assets-1.0
ASWF-Digital-Assets-1.1
Abstyles
AdaCore-doc
Adobe-2006
Adobe-Display-PostScript
Adobe-Glyph
Adobe-Utopia
Afmparse
Aladdin
Apache-1.0
Apache-1.1
Apache-2.0
App-s2p
Arphic-1999
Artistic-1.0-Perl
Artistic-1.0-cl8
Artistic-1.0
Artistic-2.0
Artistic-dist
Aspell-RU
Asterisk-exception
Asterisk-linking-protocols-exception
Autoconf-exception-2.0
Autoconf-exception-3.0
Autoconf-exception-generic-3.0
Autoconf-exception-generic
Autoconf-exception-macro
BSD-1-Clause
BSD-2-Clause-Darwin
BSD-2-Clause-Patent
BSD-2-Clause-Views
BSD-2-Clause-first-lines
BSD-2-Clause-pkgconf-disclaimer
BSD-2-Clause
BSD-3-Clause-Attribution
BSD-3-Clause-Clear
BSD-3-Clause-HP
BSD-3-Clause-LBNL
BSD-3-Clause-Modification
BSD-3-Clause-No-Military-License
BSD-3-Clause-No-Nuclear-License-2014
BSD-3-Clause-No-Nuclear-License
BSD-3-Clause-No-Nuclear-Warranty
BSD-3-Clause-Open-MPI
BSD-3-Clause-Sun
BSD-3-Clause-acpica
BSD-3-Clause-flex
BSD-3-Clause
BSD-4-Clause-Shortened
BSD-4-Clause-UC
BSD-4-Clause
BSD-4.3RENO
BSD-4.3TAHOE
BSD-Advertising-Acknowledgement
BSD-Attribution-HPND-disclaimer
BSD-Inferno-Nettverk
BSD-Protection
BSD-Source-Code
BSD-Source-beginning-file
BSD-Systemics-W3Works
BSD-Systemics
BSL-1.0
BUSL-1.1
Baekmuk
Bahyph
Barr
Beerware
Bison-exception-1.24
Bison-exception-2.2
BitTorrent-1.0
BitTorrent-1.1
Bitstream-Charter
Bitstream-Vera
BlueOak-1.0.0
Boehm-GC-without-fee
Boehm-GC
Bootloader-exception
Borceux
Brian-Gladman-2-Clause
Brian-Gladman-3-Clause
C-UDA-1.0
CAL-1.0-Combined-Work-Exception
CAL-1.0
CATOSL-1.1
CC-BY-1.0
CC-BY-2.0
CC-BY-2.5-AU
CC-BY-2.5
CC-BY-3.0-AT
CC-BY-3.0-AU
CC-BY-3.0-DE
CC-BY-3.0-IGO
CC-BY-3.0-NL
CC-BY-3.0-US
CC-BY-3.0
CC-BY-4.0
CC-BY-NC-1.0
CC-BY-NC-2.0
CC-BY-NC-2.5
CC-BY-NC-3.0-DE
CC-BY-NC-3.0
CC-BY-NC-4.0
CC-BY-NC-ND-1.0
CC-BY-NC-ND-2.0
CC-BY-NC-ND-2.5
CC-BY-NC-ND-3.0-DE
CC-BY-NC-ND-3.0-IGO
CC-BY-NC-ND-3.0
CC-BY-NC-ND-4.0
CC-BY-NC-SA-1.0
CC-BY-NC-SA-2.0-DE
CC-BY-NC-SA-2.0-FR
CC-BY-NC-SA-2.0-UK
CC-BY-NC-SA-2.0
CC-BY-NC-SA-2.5
CC-BY-NC-SA-3.0-DE
CC-BY-NC-SA-3.0-IGO
CC-BY-NC-SA-3.0
CC-BY-NC-SA-4.0
CC-BY-ND-1.0
CC-BY-ND-2.0
CC-BY-ND-2.5
CC-BY-ND-3.0-DE
CC-BY-ND-3.0
CC-BY-ND-4.0
CC-BY-SA-1.0
CC-BY-SA-2.0-UK
CC-BY-SA-2.0
CC-BY-SA-2.1-JP
CC-BY-SA-2.5
CC-BY-SA-3.0-AT
CC-BY-SA-3.0-DE
CC-BY-SA-3.0-IGO
CC-BY-SA-3.0
CC-BY-SA-4.0
CC-PDDC
CC-PDM-1.0
CC-SA-1.0
CC0-1.0
CDDL-1.0
CDDL-1.1
CDL-1.0
CDLA-Permissive-1.0
CDLA-Permissive-2.0
CDLA-Sharing-1.0
CECILL-1.0
CECILL-1.1
CECILL-2.0
CECILL-2.1
CECILL-B
CECILL-C
CERN-OHL-1.1
CERN-OHL-1.2
CERN-OHL-P-2.0
CERN-OHL-S-2.0
CERN-OHL-W-2.0
CFITSIO
CGAL-linking-exception
CLISP-exception-2.0
CMU-Mach-nodoc
CMU-Mach
CNRI-Jython
CNRI-Python-GPL-Compatible
CNRI-Python
COIL-1.0
CPAL-1.0
CPL-1.0
CPOL-1.02
CUA-OPL-1.0
Caldera-no-preamble
Caldera
Catharon
ClArtistic
Classpath-exception-2.0
Clips
Community-Spec-1.0
Condor-1.1
Cornell-Lossless-JPEG
Cronyx
Crossword
CryptoSwift
CrystalStacker
Cube
D-FSL-1.0
DEC-3-Clause
DL-DE-BY-2.0
DL-DE-ZERO-2.0
DOC
DRL-1.0
DRL-1.1
DSDP
DigiRule-FOSS-exception
Digia-Qt-LGPL-exception-1.1
DocBook-DTD
DocBook-Schema
DocBook-Stylesheet
DocBook-XML
Dotseqn
ECL-1.0
ECL-2.0
EFL-1.0
EFL-2.0
EPICS
EPL-1.0
EPL-2.0
EUDatagrid
EUPL-1.0
EUPL-1.1
EUPL-1.2
Elastic-2.0
Entessa
ErlPL-1.1
Eurosym
FBM
FDK-AAC
FLTK-exception
FSFAP-no-warranty-disclaimer
FSFAP
FSFUL
FSFULLR
FSFULLRSD
FSFULLRWD
FSL-1.1-ALv2
FSL-1.1-MIT
FTL
Fair
Fawkes-Runtime-exception
Ferguson-Twofish
Font-exception-2.0
Frameworx-1.0
FreeBSD-DOC
FreeImage
Furuseth
GCC-exception-2.0-note
GCC-exception-2.0
GCC-exception-3.1
GCR-docs
GD
GFDL-1.1-invariants-only
GFDL-1.1-invariants-or-later
GFDL-1.1-no-invariants-only
GFDL-1.1-no-invariants-or-later
GFDL-1.1-only
GFDL-1.1-or-later
GFDL-1.2-invariants-only
GFDL-1.2-invariants-or-later
GFDL-1.2-no-invariants-only
GFDL-1.2-no-invariants-or-later
GFDL-1.2-only
GFDL-1.2-or-later
GFDL-1.3-invariants-only
GFDL-1.3-invariants-or-later
GFDL-1.3-no-invariants-only
GFDL-1.3-no-invariants-or-later
GFDL-1.3-only
GFDL-1.3-or-later
GL2PS
GLWTPL
GNAT-exception
GNOME-examples-exception
GNU-compiler-exception
GPL-1.0-only
GPL-1.0-or-later
GPL-2.0-only
GPL-2.0-or-later
GPL-3.0-389-ds-base-exception
GPL-3.0-interface-exception
GPL-3.0-linking-exception
GPL-3.0-linking-source-exception
GPL-3.0-only
GPL-3.0-or-later
GPL-CC-1.0
GStreamer-exception-2005
GStreamer-exception-2008
Game-Programming-Gems
Giftware
Glide
Glulxe
Gmsh-exception
Graphics-Gems
Gutmann
HDF5
HIDAPI
HP-1986
HP-1989
HPND-DEC
HPND-Fenneberg-Livingston
HPND-INRIA-IMAG
HPND-Intel
HPND-Kevlin-Henney
HPND-MIT-disclaimer
HPND-Markus-Kuhn
HPND-Netrek
HPND-Pbmplus
HPND-UC-export-US
HPND-UC
HPND-doc-sell
HPND-doc
HPND-export-US-acknowledgement
HPND-export-US-modify
HPND-export-US
HPND-export2-US
HPND-merchantability-variant
HPND-sell-MIT-disclaimer-xserver
HPND-sell-regexpr
HPND-sell-variant-MIT-disclaimer-rev
HPND-sell-variant-MIT-disclaimer
HPND-sell-variant
HPND
HTMLTIDY
HaskellReport
Hippocratic-2.1
IBM-pibs
ICU
IEC-Code-Components-EULA
IJG-short
IJG
IPA
IPL-1.0
ISC-Veillard
ISC
ImageMagick
Imlib2
Independent-modules-exception
Info-ZIP
Inner-Net-2.0
InnoSetup
Intel-ACPI
Intel
Interbase-1.0
JPL-image
JPNIC
JSON
Jam
JasPer-2.0
Kastrup
Kazlib
KiCad-libraries-exception
Knuth-CTAN
LAL-1.2
LAL-1.3
LGPL-2.0-only
LGPL-2.0-or-later
LGPL-2.1-only
LGPL-2.1-or-later
LGPL-3.0-linking-exception
LGPL-3.0-only
LGPL-3.0-or-later
LGPLLR
LLGPL
LLVM-exception
LOOP
LPD-document
LPL-1.0
LPL-1.02
LPPL-1.0
LPPL-1.1
LPPL-1.2
LPPL-1.3a
LPPL-1.3c
LZMA-SDK-9.11-to-9.20
LZMA-SDK-9.22
LZMA-exception
Latex2e-translated-notice
Latex2e
Leptonica
LiLiQ-P-1.1
LiLiQ-R-1.1
LiLiQ-Rplus-1.1
Libpng
Libtool-exception
Linux-OpenIB
Linux-man-pages-1-para
Linux-man-pages-copyleft-2-para
Linux-man-pages-copyleft-var
Linux-man-pages-copyleft
Linux-syscall-note
Lucida-Bitmap-Fonts
MIPS
MIT-0
MIT-CMU
MIT-Click
MIT-Festival
MIT-Khronos-old
MIT-Modern-Variant
MIT-Wu
MIT-advertising
MIT-enna
MIT-feh
MIT-open-group
MIT-testregex
MIT
MITNFA
MMIXware
MPEG-SSG
MPL-1.0
MPL-1.1
MPL-2.0-no-copyleft-exception
MPL-2.0
MS-LPL
MS-PL
MS-RL
MTLL
Mackerras-3-Clause-acknowledgment
Mackerras-3-Clause
MakeIndex
Martin-Birgmeier
McPhee-slideshow
Minpack
MirOS
Motosoto
MulanPSL-1.0
MulanPSL-2.0
Multics
Mup
NAIST-2003
NASA-1.3
NBPL-1.0
NCBI-PD
NCGL-UK-2.0
NCL
NCSA
NGPL
NICTA-1.0
NIST-PD-fallback
NIST-PD
NIST-Software
NLOD-1.0
NLOD-2.0
NLPL
NOSL
NPL-1.0
NPL-1.1
NPOSL-3.0
NRL
NTIA-PD
NTP-0
NTP
Naumen
NetCDF
Newsletr
Nokia-Qt-exception-1.1
Nokia
Noweb
O-UDA-1.0
OAR
OCCT-PL
OCCT-exception-1.0
OCLC-2.0
OCaml-LGPL-linking-exception
ODC-By-1.0
ODbL-1.0
OFFIS
OFL-1.0-RFN
OFL-1.0-no-RFN
OFL-1.0
OFL-1.1-RFN
OFL-1.1-no-RFN
OFL-1.1
OGC-1.0
OGDL-Taiwan-1.0
OGL-Canada-2.0
OGL-UK-1.0
OGL-UK-2.0
OGL-UK-3.0
OGTSL
OLDAP-1.1
OLDAP-1.2
OLDAP-1.3
OLDAP-1.4
OLDAP-2.0.1
OLDAP-2.0
OLDAP-2.1
OLDAP-2.2.1
OLDAP-2.2.2
OLDAP-2.2
OLDAP-2.3
OLDAP-2.4
OLDAP-2.5
OLDAP-2.6
OLDAP-2.7
OLDAP-2.8
OLFL-1.3
OML
OPL-1.0
OPL-UK-3.0
OPUBL-1.0
OSET-PL-2.1
OSL-1.0
OSL-1.1
OSL-2.0
OSL-2.1
OSL-3.0
OpenJDK-assembly-exception-1.0
OpenPBS-2.3
OpenSSL-standalone
OpenSSL
OpenVision
PADL
PCRE2-exception
PDDL-1.0
PHP-3.0
PHP-3.01
PPL
PS-or-PDF-font-exception-20170817
PSF-2.0
Parity-6.0.0
Parity-7.0.0
Pixar
Plexus
PolyForm-Noncommercial-1.0.0
PolyForm-Small-Business-1.0.0
PostgreSQL
Python-2.0.1
Python-2.0
QPL-1.0-INRIA-2004-exception
QPL-1.0-INRIA-2004
QPL-1.0
Qhull
Qt-GPL-exception-1.0
Qt-LGPL-exception-1.1
Qwt-exception-1.0
RHeCos-1.1
RPL-1.1
RPL-1.5
RPSL-1.0
RRDtool-FLOSS-exception-2.0
RSA-MD
RSCPL
Rdisc
Ruby-pty
Ruby
SANE-exception
SAX-PD-2.0
SAX-PD
SCEA
SGI-B-1.0
SGI-B-1.1
SGI-B-2.0
SGI-OpenGL
SGP4
SHL-0.5
SHL-0.51
SHL-2.0
SHL-2.1
SISSL-1.2
SISSL
SL
SMAIL-GPL
SMLNJ
SMPPL
SNIA
SOFA
SPL-1.0
SSH-OpenSSH
SSH-short
SSLeay-standalone
SSPL-1.0
SUL-1.0
SWI-exception
SWL
Saxpath
SchemeReport
Sendmail-8.23
Sendmail-Open-Source-1.1
Sendmail
SimPL-2.0
Sleepycat
Soundex
Spencer-86
Spencer-94
Spencer-99
SugarCRM-1.1.3
Sun-PPP-2000
Sun-PPP
SunPro
Swift-exception
Symlinks
TAPR-OHL-1.0
TCL
TCP-wrappers
TGPPL-1.0
TMate
TORQUE-1.1
TOSL
TPDL
TPL-1.0
TTWL
TTYP0
TU-Berlin-1.0
TU-Berlin-2.0
TermReadKey
Texinfo-exception
ThirdEye
TrustedQSL
UBDL-exception
UCAR
UCL-1.0
UMich-Merit
UPL-1.0
URT-RLE
Ubuntu-font-1.0
Unicode-3.0
Unicode-DFS-2015
Unicode-DFS-2016
Unicode-TOU
Universal-FOSS-exception-1.0
UnixCrypt
Unlicense-libtelnet
Unlicense-libwhirlpool
Unlicense
VOSTROM
VSL-1.0
Vim
W3C-19980720
W3C-20150513
W3C
WTFPL
Watcom-1.0
Widget-Workshop
Wsuipa
WxWindows-exception-3.1
X11-distribute-modifications-variant
X11-swapped
X11
XFree86-1.1
XSkat
Xdebug-1.03
Xerox
Xfig
Xnet
YPL-1.0
YPL-1.1
ZPL-1.1
ZPL-2.0
ZPL-2.1
Zed
Zeeff
Zend-2.0
Zimbra-1.3
Zimbra-1.4
Zlib
any-OSI-perl-modules
any-OSI
bcrypt-Solar-Designer
blessing
bzip2-1.0.6
check-cvs
checkmk
copyleft-next-0.3.0
copyleft-next-0.3.1
cryptsetup-OpenSSL-exception
curl
cve-tou
deprecated_AGPL-1.0
deprecated_AGPL-3.0
deprecated_BSD-2-Clause-FreeBSD
deprecated_BSD-2-Clause-NetBSD
deprecated_GFDL-1.1
deprecated_GFDL-1.2
deprecated_GFDL-1.3
deprecated_GPL-1.0+
deprecated_GPL-1.0
deprecated_GPL-2.0+
deprecated_GPL-2.0-with-GCC-exception
deprecated_GPL-2.0-with-autoconf-exception
deprecated_GPL-2.0-with-bison-exception
deprecated_GPL-2.0-with-classpath-exception
deprecated_GPL-2.0-with-font-exception
deprecated_GPL-2.0
deprecated_GPL-3.0+
deprecated_GPL-3.0-with-GCC-exception
deprecated_GPL-3.0-with-autoconf-exception
deprecated_GPL-3.0
deprecated_LGPL-2.0+
deprecated_LGPL-2.0
deprecated_LGPL-2.1+
deprecated_LGPL-2.1
deprecated_LGPL-3.0+
deprecated_LGPL-3.0
deprecated_Net-SNMP
deprecated_Nunit
deprecated_StandardML-NJ
deprecated_bzip2-1.0.5
deprecated_eCos-2.0
deprecated_wxWindows
diffmark
dtoa
dvipdfm
eCos-exception-2.0
eGenix
erlang-otp-linking-exception
etalab-2.0
fmt-exception
freertos-exception-2.0
fwlw
gSOAP-1.3b
generic-xts
gnu-javamail-exception
gnuplot
gtkbook
harbour-exception
hdparm
i2p-gpl-java-exception
iMatix
jove
libpng-1.6.35
libpng-2.0
libpri-OpenH323-exception
libselinux-1.0
libtiff
libutil-David-Nugent
lsof
magaz
mailprio
man2html
metamail
mif-exception
mpi-permissive
mpich2
mplus
mxml-exception
ngrep
openvpn-openssl-exception
pkgconf
pnmstitch
polyparse-exception
psfrag
psutils
python-ldap
radvd
romic-exception
snprintf
softSurfer
ssh-keyscan
stunnel-exception
swrule
threeparttable
u-boot-exception-2.0
ulem
vsftpd-openssl-exception
w3m
wwl
x11vnc-openssl-exception
xinetd
xkeyboard-config-Zinoviev
xlock
xpp
xzoom
zlib-acknowledgement

16
common/travis/prepare.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
#
# prepare.sh
set -e
/bin/echo -e '\x1b[32mUpdating etc/conf...\x1b[0m'
echo XBPS_BUILD_ENVIRONMENT=void-packages-ci >> etc/conf
echo XBPS_ALLOW_RESTRICTED=yes >> etc/conf
/bin/echo -e '\x1b[32mEnabling uchroot chroot-style...\x1b[0m'
echo XBPS_CHROOT_CMD=uchroot >> etc/conf
/bin/echo -e '\x1b[32mBootstrapping...\x1b[0m'
./xbps-src binary-bootstrap

10
common/travis/set_mirror.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -e
TRAVIS_MIRROR=repo-ci.voidlinux.org
for _i in etc/xbps.d/repos-remote*.conf ; do
/bin/echo -e "\x1b[32mUpdating $_i...\x1b[0m"
sed -i "s:repo-default\.voidlinux\.org:$TRAVIS_MIRROR:g" $_i
done

18
common/travis/show_files.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
#
# show_files.sh
set -e
export XBPS_TARGET_ARCH="$2"
while read -r pkg; do
for subpkg in $(xsubpkg $pkg); do
/bin/echo -e "\x1b[32mFiles of $subpkg:\x1b[0m"
xbps-query --repository=hostdir/binpkgs/bootstrap \
--repository=hostdir/binpkgs \
--repository=hostdir/binpkgs/nonfree \
-i -f "$subpkg" ||
/bin/echo -e "\x1b[33m $subpkg wasn't found\x1b[0m"
done
done < /tmp/templates

View File

@@ -0,0 +1,20 @@
#!/bin/bash
# runs update-check on all changed templates, then errors only if there was an
# issue with the update-check. does not error if further updates are available,
# as there may be a good reason not to update to those versions
set -e
export XBPS_UPDATE_CHECK_VERBOSE=yes
err=0
while read -r pkg; do
/bin/echo -e "\x1b[34mVerifying update-check of $pkg:\x1b[0m"
./xbps-src update-check "$pkg" 2>&1 > /tmp/update-check.log || err=1
cat /tmp/update-check.log
if grep -q 'NO VERSION' /tmp/update-check.log; then
echo "::warning file=srcpkgs/$pkg/template,line=1,title=update-check failed::verify and fix update-check for $pkg"
fi
done < /tmp/templates
exit $err

17
common/travis/xlint.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
#
# xlint.sh
EXITCODE=0
read base tip < /tmp/revisions
/bin/echo -e "\x1b[34mLinting commits...\x1b[0m"
common/scripts/lint-commits $base $tip || EXITCODE=$?
for t in $(awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates); do
/bin/echo -e "\x1b[34mLinting $t...\x1b[0m"
xlint "$t" > /tmp/xlint_out || EXITCODE=$?
common/scripts/lint-version-change "$t" $base $tip > /tmp/vlint_out || EXITCODE=$?
awk -f common/scripts/lint2annotations.awk /tmp/xlint_out /tmp/vlint_out
done
exit $EXITCODE

28
common/travis/xpkgdiff.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
#
# xpkgdiff.sh
set -e
export XBPS_TARGET_ARCH="$2"
export DIFF='diff --unified=0 --report-identical-files --suppress-common-lines
--color=always --label REPO --label BUILT'
ARGS="-a $2 -R https://repo-ci.voidlinux.org/current"
while read -r pkg; do
for subpkg in $(xsubpkg $pkg); do
if xbps-query --repository=hostdir/binpkgs/bootstrap \
--repository=hostdir/binpkgs \
--repository=hostdir/binpkgs/nonfree \
-i "$subpkg" >&/dev/null; then
/bin/echo -e "\x1b[34mFile Diff of $subpkg:\x1b[0m"
xpkgdiff $ARGS -f $subpkg
/bin/echo -e "\x1b[34mMetadata Diff of $subpkg:\x1b[0m"
xpkgdiff $ARGS -S $subpkg
/bin/echo -e "\x1b[34mDependency Diff of $subpkg:\x1b[0m"
xpkgdiff $ARGS -x $subpkg
else
/bin/echo -e "\x1b[33m$subpkg wasn't found\x1b[0m"
fi
done
done < /tmp/templates