mirror of
https://github.com/clearlinux/common.git
synced 2026-06-16 19:16:00 +00:00
Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f5b1aa8c87 | |||
| c61c91f9f2 | |||
| a57af837d8 | |||
| 03ba957d5f | |||
| d661496a4c | |||
| 4e1ce01d4e | |||
| dfeb8f9862 | |||
| 79c4befdea | |||
| c8c0c08100 | |||
| 877cd04101 | |||
| 7453e26bc7 | |||
| 11e0b5baee | |||
| 54c652944f | |||
| ef5179c975 | |||
| fc9793ff4e | |||
| 1508582709 | |||
| fca82072fa | |||
| 7fb07fdb29 | |||
| 387cb23c79 | |||
| c63ed02014 | |||
| d0773602f5 | |||
| 7b2b947843 | |||
| e619aeeab5 | |||
| f041821042 | |||
| 04e79ac6f7 | |||
| 942c21283f | |||
| 0803beead9 | |||
| 8bf3888935 |
@@ -15,6 +15,7 @@ SRPMVERS = $(shell [ ! -f $(SPECFILE) ] || rpmspec -D '_vendor clr' --srpm -q --
|
||||
SRPMFILE = results/$(SRPMVERS).src.rpm
|
||||
|
||||
LATEST_RPMS = $(wildcard rpms/*.rpm)
|
||||
DEBUGINFO_RPM = $(wildcard rpms/*-debuginfo-*.rpm)
|
||||
RPMS ?= $(LATEST_RPMS)
|
||||
|
||||
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
|
||||
@@ -408,6 +409,31 @@ install:
|
||||
done
|
||||
@$(MAKE) loop-down DEVICE=6
|
||||
|
||||
#help install-debuginfo-local: Install locally built debuginfo RPM to
|
||||
#help the automatic debuginfo cache location (/var/cache/debuginfo)
|
||||
install-debuginfo-local:
|
||||
tmpdir=$$(mktemp -d); \
|
||||
rpm2cpio ${DEBUGINFO_RPM} | ( cd $$tmpdir; cpio -i -d -u); \
|
||||
dest=/var/cache/debuginfo/lib; \
|
||||
find $$tmpdir/usr/lib/debug/ -mindepth 1 -maxdepth 1 | while read -r d; do \
|
||||
sudo chown -R dbginfo:dbginfo "$$d"; \
|
||||
sudo cp -a "$$d" $$dest/; \
|
||||
done; \
|
||||
dest=/var/cache/debuginfo/src; \
|
||||
find $$tmpdir/usr/src/debug/ -mindepth 1 -maxdepth 1 | while read -r d; do \
|
||||
sudo chown -R dbginfo:dbginfo "$$d"; \
|
||||
sudo cp -a "$$d" $$dest/; \
|
||||
done; \
|
||||
sudo rm -rf $$tmpdir
|
||||
|
||||
#help install-local: Install locally built RPMs to the root filesystem. Note that the
|
||||
#help debuginfo RPM installs to /var/cache/debuginfo
|
||||
install-local:
|
||||
for r in $(filter-out ${DEBUGINFO_RPM},${RPMS}); do \
|
||||
rpm2cpio $$r | (cd /; sudo cpio -i -d -u); \
|
||||
done
|
||||
$(MAKE) install-debuginfo-local
|
||||
|
||||
#help generateupstream: Run this rule to create or update the 'upstream' file
|
||||
#help by downloading the upstream source tarballs listed in the spec file and
|
||||
#help calculating their hashes. Autospec performs this step automatically, so
|
||||
|
||||
@@ -41,6 +41,7 @@ Pint
|
||||
PyDispatcher
|
||||
PyJWT
|
||||
PyMySQL
|
||||
PyNaCl
|
||||
PyWavelets
|
||||
PyYAML
|
||||
Pygments
|
||||
@@ -785,6 +786,9 @@ Theano
|
||||
Thunar
|
||||
UkPostcodeParser
|
||||
Vertex-theme
|
||||
Vulkan-Headers
|
||||
Vulkan-Loader
|
||||
Vulkan-Tools
|
||||
WALinuxAgent
|
||||
WSGIProxy2
|
||||
WSME
|
||||
@@ -873,6 +877,7 @@ argparse
|
||||
ark
|
||||
artikulate
|
||||
asciidoc
|
||||
asciinema
|
||||
asio
|
||||
asn1crypto
|
||||
aspell
|
||||
@@ -927,6 +932,7 @@ bashdb
|
||||
bats
|
||||
bazel
|
||||
bc
|
||||
bcc
|
||||
bcrypt
|
||||
bdftopcf
|
||||
beautifulsoup4
|
||||
@@ -1012,6 +1018,7 @@ cgdb
|
||||
cgit
|
||||
chardet
|
||||
check
|
||||
check-manifest
|
||||
cheese
|
||||
cheroot
|
||||
chrome-gnome-shell
|
||||
@@ -1132,8 +1139,10 @@ cov-core
|
||||
coverage
|
||||
cpio
|
||||
cppcheck
|
||||
cpprestsdk
|
||||
cppunit
|
||||
cpuid
|
||||
cpuloadgen
|
||||
cracklib
|
||||
crcmod
|
||||
createrepo_c
|
||||
@@ -1194,6 +1203,7 @@ django-discover-runner
|
||||
django-nose
|
||||
django-pyscss
|
||||
django_compressor
|
||||
dlt-daemon
|
||||
dmenu
|
||||
dmidecode
|
||||
dnf
|
||||
@@ -1217,6 +1227,7 @@ dosfstools
|
||||
double-conversion
|
||||
dovecot
|
||||
doxygen
|
||||
dpcontracts
|
||||
dpdk
|
||||
dracut
|
||||
dragon
|
||||
@@ -1239,6 +1250,7 @@ efivar
|
||||
eigen
|
||||
elasticsearch
|
||||
elasticsearch-dep
|
||||
electric-fence
|
||||
elementary-xfce
|
||||
elfutils
|
||||
elixir
|
||||
@@ -1295,6 +1307,7 @@ flake8-docstrings
|
||||
flake8-import-order
|
||||
flake8-polyfill
|
||||
flatpak
|
||||
flatpak-builder
|
||||
fldigi
|
||||
flex
|
||||
flmsg
|
||||
@@ -1306,6 +1319,8 @@ font-adobe-75dpi
|
||||
font-bitstream-type1
|
||||
font-util
|
||||
fontconfig
|
||||
fontforge
|
||||
fonttools
|
||||
frameworkintegration
|
||||
freeglut
|
||||
freeipmi
|
||||
@@ -1526,6 +1541,7 @@ idna-ssl
|
||||
ifaddr
|
||||
iftop
|
||||
ilmbase
|
||||
image
|
||||
imagesize
|
||||
imapfilter
|
||||
imlib2
|
||||
@@ -1535,14 +1551,18 @@ influxdb
|
||||
iniparse
|
||||
init-rdahead
|
||||
inotify-tools
|
||||
intel-gmmlib
|
||||
intel-gpu-tools
|
||||
intel-hybrid-driver
|
||||
intel-media-driver
|
||||
intltool
|
||||
ioc-cbc-tools
|
||||
ioping
|
||||
iotop
|
||||
ipaddr
|
||||
ipaddress
|
||||
ipdb
|
||||
ipdbplugin
|
||||
iperf
|
||||
ipmctl
|
||||
ipmitool
|
||||
@@ -1599,6 +1619,7 @@ jupyter_console
|
||||
jupyter_core
|
||||
jupyterlab
|
||||
jupyterlab_launcher
|
||||
jupyterlab_server
|
||||
kactivities
|
||||
kactivities-stats
|
||||
kactivitymanagerd
|
||||
@@ -1771,6 +1792,7 @@ kqtquickcharts
|
||||
krb5
|
||||
krdc
|
||||
kreversi
|
||||
krita
|
||||
kross
|
||||
kruler
|
||||
krunner
|
||||
@@ -1887,6 +1909,7 @@ libe-book
|
||||
libepoxy
|
||||
libepubgen
|
||||
liberasurecode
|
||||
liberation-fonts
|
||||
libetonyek
|
||||
libev
|
||||
libevdev
|
||||
@@ -2004,6 +2027,7 @@ libsodium
|
||||
libsolv
|
||||
libsoup
|
||||
libspectre
|
||||
libspiro
|
||||
libsrtp
|
||||
libssh
|
||||
libssh2
|
||||
@@ -2016,6 +2040,7 @@ libtirpc
|
||||
libtool
|
||||
libudev0-shim
|
||||
libuev
|
||||
libuninameslist
|
||||
libunistring
|
||||
libunwind
|
||||
libusb
|
||||
@@ -2053,6 +2078,8 @@ libyami-utils
|
||||
libzip
|
||||
libzmf
|
||||
libzmq
|
||||
lightdm
|
||||
lightdm-gtk-greeter
|
||||
linecache2
|
||||
links
|
||||
linux
|
||||
@@ -2063,6 +2090,8 @@ linux-gce
|
||||
linux-hyperv
|
||||
linux-hyperv-lts
|
||||
linux-hyperv-mini
|
||||
linux-iot-lts2017-preempt-rt
|
||||
linux-iot-lts2018
|
||||
linux-kata
|
||||
linux-kvm
|
||||
linux-libc-headers
|
||||
@@ -2087,6 +2116,7 @@ lsacpi
|
||||
lshw
|
||||
lskat
|
||||
lsof
|
||||
lsscsi
|
||||
ltp
|
||||
ltrace
|
||||
lua
|
||||
@@ -2136,6 +2166,7 @@ mistune
|
||||
mixer-tools
|
||||
mkfontdir
|
||||
mkfontscale
|
||||
mkl-dnn
|
||||
mkosi
|
||||
mobile-broadband-provider-info
|
||||
mock
|
||||
@@ -2162,6 +2193,7 @@ mpfr
|
||||
mpg123
|
||||
mpi4py
|
||||
mpmath
|
||||
mraa
|
||||
msgpack
|
||||
msmtp
|
||||
msr-tools
|
||||
@@ -2236,6 +2268,7 @@ nss-altfiles
|
||||
nss-pam-ldapd
|
||||
ntfs-3g
|
||||
ntlm-auth
|
||||
ntp
|
||||
ntplib
|
||||
numactl
|
||||
numatop
|
||||
@@ -2256,6 +2289,7 @@ olefile
|
||||
onig
|
||||
onnx
|
||||
opa-psm2
|
||||
opcodes
|
||||
open-iscsi
|
||||
open-isns
|
||||
open-lldp
|
||||
@@ -2327,6 +2361,9 @@ p11-kit
|
||||
p7zip
|
||||
packaging
|
||||
pacrunner
|
||||
paho-mqtt
|
||||
paho.mqtt.c
|
||||
paho.mqtt.cpp
|
||||
palapeli
|
||||
pandas
|
||||
pandoc
|
||||
@@ -2752,6 +2789,7 @@ perl-Net-IDN-Encode
|
||||
perl-Net-INET6Glue
|
||||
perl-Net-Ident
|
||||
perl-Net-MAC
|
||||
perl-Net-MQTT
|
||||
perl-Net-NTP
|
||||
perl-Net-OpenID-Common
|
||||
perl-Net-OpenID-Consumer
|
||||
@@ -3103,11 +3141,11 @@ pyflakes
|
||||
pygobject
|
||||
pyinotify
|
||||
pykerberos
|
||||
pylama
|
||||
pyliblzma
|
||||
pylint
|
||||
pymemcache
|
||||
pymongo
|
||||
pynacl
|
||||
pypandoc
|
||||
pyparsing
|
||||
pyperclip
|
||||
@@ -3115,6 +3153,7 @@ pypowervm
|
||||
pyquery
|
||||
pyreadline
|
||||
pyrfc3339
|
||||
pyroma
|
||||
pyroute2
|
||||
pyrsistent
|
||||
pysaml2
|
||||
@@ -3124,6 +3163,7 @@ pysnmp
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-forked
|
||||
pytest-randomly
|
||||
pytest-repeat
|
||||
pytest-rerunfailures
|
||||
pytest-runner
|
||||
@@ -3137,12 +3177,14 @@ python-barbicanclient
|
||||
python-ceilometerclient
|
||||
python-cinderclient
|
||||
python-dateutil
|
||||
python-dateutil-legacypython
|
||||
python-designateclient
|
||||
python-editor
|
||||
python-future
|
||||
python-gflags
|
||||
python-glanceclient
|
||||
python-heatclient
|
||||
python-hwinfo
|
||||
python-kconfiglib
|
||||
python-keystoneclient
|
||||
python-krbV
|
||||
@@ -3175,6 +3217,7 @@ python-urwid
|
||||
python-zaqarclient
|
||||
python-zeep
|
||||
python3
|
||||
pytools
|
||||
pytz
|
||||
pyudev
|
||||
pywbem
|
||||
@@ -3245,6 +3288,7 @@ redsocks
|
||||
reno
|
||||
reportlab
|
||||
repoze.lru
|
||||
repoze.sphinx.autointerface
|
||||
repoze.who
|
||||
requests
|
||||
requests-kerberos
|
||||
@@ -3315,6 +3359,7 @@ sg3_utils
|
||||
shadow
|
||||
shared-mime-info
|
||||
sharutils
|
||||
shell
|
||||
shim
|
||||
siege
|
||||
simg-tools
|
||||
@@ -3515,7 +3560,6 @@ voluptuous
|
||||
voluptuous-serialize
|
||||
vsqlite
|
||||
vte
|
||||
vulkan-sdk
|
||||
waffle
|
||||
waitress
|
||||
warlock
|
||||
@@ -3534,6 +3578,7 @@ weston
|
||||
wget
|
||||
wheel
|
||||
which
|
||||
whois
|
||||
widgetsnbextension
|
||||
winpdb
|
||||
wireless-regdb-master
|
||||
@@ -3633,7 +3678,6 @@ yelp-tools
|
||||
yelp-xsl
|
||||
yum
|
||||
yum-metadata-parser
|
||||
yum-utils
|
||||
zVMCloudConnector
|
||||
zake
|
||||
zc.lockfile
|
||||
|
||||
+12
-3
@@ -6,6 +6,7 @@ SERVERCA=""
|
||||
CLIENTCA=""
|
||||
WORKSPACE="clearlinux"
|
||||
PACKAGE_REPOS=
|
||||
NEEDS_KVM_GROUP=
|
||||
|
||||
help() {
|
||||
printf "%s\n" >&2 "Usage: $SCRIPT [options]" \
|
||||
@@ -115,6 +116,10 @@ required_progs() {
|
||||
|
||||
required_progs
|
||||
|
||||
if ! groups | grep -qw kvm; then
|
||||
NEEDS_KVM_GROUP=1
|
||||
fi
|
||||
|
||||
echo "Initializing development workspace in \"$WORKSPACE\" . . ."
|
||||
|
||||
mkdir "$WORKSPACE"
|
||||
@@ -146,8 +151,10 @@ if [ "$USE_KOJI" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Adding user to kvm group . . ."
|
||||
sudo usermod -a -G kvm $USER
|
||||
if [ -n "$NEEDS_KVM_GROUP" ]; then
|
||||
echo "Adding user to kvm group . . ."
|
||||
sudo usermod -a -G kvm $USER
|
||||
fi
|
||||
|
||||
echo "Cloning special project repositories . . ."
|
||||
make ${JOBS_ARG} clone-projects
|
||||
@@ -179,7 +186,9 @@ if [ -z "$PACKAGE_REPOS" ]; then
|
||||
echo "NOTE: To clone all package repos, run \"cd $WORKSPACE; make [-j NUM] clone-packages\""
|
||||
echo "NOTE: To clone a single package repo with NAME, run \"cd $WORKSPACE; make clone_NAME\""
|
||||
fi
|
||||
echo 'NOTE: logout and log back in to finalize the setup process'
|
||||
if [ -n "$NEEDS_KVM_GROUP" ]; then
|
||||
echo 'NOTE: logout and log back in to finalize the setup process'
|
||||
fi
|
||||
|
||||
|
||||
# vi: ft=sh sw=2 et sts=2
|
||||
|
||||
Reference in New Issue
Block a user