Compare commits

...

15 Commits

Author SHA1 Message Date
Arjan van de Ven 072d9b81a2 packages update 2024-09-11 17:01:52 +00:00
Brett T. Warden 85a3e1cd32 Add libpng-2.0 license 2024-09-11 08:38:47 -07:00
William Douglas 3bf41ad9c9 Update vendor script to always use the latest tag
Sometimes vendor repos get tagged but the package fails to update for
another reason. In this case the repo wouldn't have the new vendor
ARCHIVE set and new attempts to build would use the old vendor archive
causing failures. Force using the latest vendor tag as generally this
is what we want (if we get a bad vendor tag somehow, it should mean a
new tag needs to be created to replace it anyway).

Signed-off-by: William Douglas <william.douglas@intel.com>
2024-09-06 13:12:13 -07:00
Arjan van de Ven 92b3d682ec udpate 2024-08-22 18:35:05 +00:00
Arjan van de Ven ce873b4b19 packages update 2024-08-20 15:16:40 +00:00
Arjan van de Ven 463112629b packages update 2024-08-13 15:18:01 +00:00
Arjan van de Ven 0fd1fc5a1d packages update 2024-07-30 16:29:55 +00:00
William Douglas 0e9a2b7e82 Force git attributes for vendor directories
Avoid cases where user git settings cause files to have different line
endings than the package and cause hash mismatches when building.

Signed-off-by: William Douglas <william.douglas@intel.com>
2024-07-25 12:45:07 -07:00
William Douglas 398fb69708 Always remove the pumpAutospec file
Remove pumpAutospec even if the package hasn't yet become a git repo
yet.

Signed-off-by: William Douglas <william.douglas@intel.com>
2024-07-24 15:36:47 -07:00
William Douglas cdcb8aa9d8 Switch to git rm for removing the autospec log file
Signed-off-by: William Douglas <william.douglas@intel.com>
2024-07-22 16:38:33 -07:00
Arjan van de Ven 3168ba058e update 2024-07-22 23:22:51 +00:00
William Douglas 76fef57d5b Add env var for autospec logging
Add environment variable that autospec uses to decide when to log
fatal errors to a special file used for the update process.

Also does the cleanup of the autospec created file for new autospec
runs.

Signed-off-by: William Douglas <william.douglas@intel.com>
2024-07-22 16:20:55 -07:00
Arjan van de Ven 59ea0b102e new packages file 2024-07-09 18:23:06 +00:00
William Douglas e4c604a161 Export the output of cargo vendor
autospec learned how to use 'cargo vendor' output as a drop in
configuration file so put the output of cargo vendor there.

Signed-off-by: William Douglas <william.douglas@intel.com>
2024-07-08 15:11:34 -07:00
William Douglas 59c4520f37 Fix import order
Signed-off-by: William Douglas <william.douglas@intel.com>
2024-07-08 14:07:10 -07:00
4 changed files with 79 additions and 24 deletions
+2
View File
@@ -166,6 +166,7 @@ preautospec-checks:
#help to autospec. #help to autospec.
#help For more information, see the project at https://github.com/clearlinux/autospec #help For more information, see the project at https://github.com/clearlinux/autospec
autospec: preautospec-checks pullrebase localreponotice clean-old-content autospec: preautospec-checks pullrebase localreponotice clean-old-content
git rm --ignore-unmatch pumpAutospec || rm -f pumpAutospec
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \ @if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
echo "Specfile already exists and was not created by autospec.py! Aborting."; \ echo "Specfile already exists and was not created by autospec.py! Aborting."; \
exit 1; \ exit 1; \
@@ -406,6 +407,7 @@ update-versions:
#help or update the package and push the update to koji. #help or update the package and push the update to koji.
#help If no update.sh exists, update the version, autospec and push the #help If no update.sh exists, update the version, autospec and push the
#help update to koji (bumping the bump.list if found). #help update to koji (bumping the bump.list if found).
update: export AUTOSPEC_UPDATE=1
update: update:
@if [ -f update.first ]; then \ @if [ -f update.first ]; then \
for pkg in $$(< update.first); do \ for pkg in $$(< update.first); do \
+1
View File
@@ -5,3 +5,4 @@ GFDL-1.3+
MIT-Opengroup MIT-Opengroup
WXwindows WXwindows
w3c w3c
libpng-2.0
+56 -9
View File
@@ -26,6 +26,7 @@ LibreCAD
Linux-PAM Linux-PAM
LuaJIT LuaJIT
LyX LyX
MangoHud
MarkupSafe MarkupSafe
ModemManager ModemManager
MuseScore MuseScore
@@ -62,6 +63,8 @@ R-BMA
R-BatchJobs R-BatchJobs
R-BayesFactor R-BayesFactor
R-BiasedUrn R-BiasedUrn
R-Biobase
R-BiocGenerics
R-BiocManager R-BiocManager
R-BoolNet R-BoolNet
R-BradleyTerry2 R-BradleyTerry2
@@ -121,6 +124,7 @@ R-MNP
R-MatchIt R-MatchIt
R-Matching R-Matching
R-MatrixModels R-MatrixModels
R-MetricsWeighted
R-ModelMetrics R-ModelMetrics
R-NADA R-NADA
R-NLP R-NLP
@@ -148,6 +152,7 @@ R-RNetCDF
R-ROCR R-ROCR
R-ROSE R-ROSE
R-RProtoBuf R-RProtoBuf
R-RPushbullet
R-RSQLite R-RSQLite
R-RSclient R-RSclient
R-RUnit R-RUnit
@@ -216,6 +221,7 @@ R-arules
R-ash R-ash
R-askpass R-askpass
R-assertthat R-assertthat
R-audio
R-backports R-backports
R-base64enc R-base64enc
R-base64url R-base64url
@@ -263,6 +269,7 @@ R-calibrator
R-callr R-callr
R-car R-car
R-carData R-carData
R-cards
R-caret R-caret
R-cclust R-cclust
R-cellranger R-cellranger
@@ -338,6 +345,7 @@ R-distr
R-distrEx R-distrEx
R-distributional R-distributional
R-dlm R-dlm
R-doBy
R-doMC R-doMC
R-doMPI R-doMPI
R-doParallel R-doParallel
@@ -351,6 +359,7 @@ R-drc
R-dreamerr R-dreamerr
R-dtplyr R-dtplyr
R-dtw R-dtw
R-duckdb
R-dygraphs R-dygraphs
R-dynamicTreeCut R-dynamicTreeCut
R-dynlm R-dynlm
@@ -656,6 +665,7 @@ R-mvnormtest
R-mvoutlier R-mvoutlier
R-mvtnorm R-mvtnorm
R-nanoarrow R-nanoarrow
R-nanoparquet
R-natserv R-natserv
R-ncbit R-ncbit
R-ncdf4 R-ncdf4
@@ -879,6 +889,7 @@ R-sessioninfo
R-setRNG R-setRNG
R-sets R-sets
R-sf R-sf
R-sfd
R-sfsmisc R-sfsmisc
R-sgeostat R-sgeostat
R-shape R-shape
@@ -914,6 +925,7 @@ R-spatstat.linnet
R-spatstat.model R-spatstat.model
R-spatstat.random R-spatstat.random
R-spatstat.sparse R-spatstat.sparse
R-spatstat.univar
R-spatstat.utils R-spatstat.utils
R-spc R-spc
R-spdep R-spdep
@@ -963,6 +975,7 @@ R-tibble
R-tidyr R-tidyr
R-tidyrules R-tidyrules
R-tidyselect R-tidyselect
R-tidytable
R-tidyverse R-tidyverse
R-tikzDevice R-tikzDevice
R-timeDate R-timeDate
@@ -1072,6 +1085,7 @@ WPEBackend-fdo
WireGuard WireGuard
XStatic-term.js XStatic-term.js
Z3 Z3
aardvark-dns
abireport abireport
abseil-cpp abseil-cpp
accel-config accel-config
@@ -1160,7 +1174,6 @@ bash-completion
bashdb bashdb
bats bats
bc bc
bcache-tools
bcachefs-tools bcachefs-tools
bcc bcc
bcftools bcftools
@@ -1221,6 +1234,7 @@ byobu
bz2file bz2file
bzip2 bzip2
c-ares c-ares
c-blosc2
cJSON cJSON
c_rehash c_rehash
ca-certs ca-certs
@@ -1246,6 +1260,7 @@ cereal
cfitsio cfitsio
cgdb cgdb
cgit cgit
chafa
check check
cheese cheese
chirp chirp
@@ -1299,7 +1314,6 @@ cmocka
cmrt cmrt
cmus cmus
cnf cnf
cni
cni-plugins cni-plugins
cockpit cockpit
codec2 codec2
@@ -1392,6 +1406,7 @@ dbus-glib
dbus-python dbus-python
dconf dconf
dconf-editor dconf-editor
ddcutil
ddd ddd
deap deap
debugedit debugedit
@@ -1500,8 +1515,10 @@ fakeroot
falcosecurity-libs falcosecurity-libs
fann fann
farstream farstream
fastfetch
faultstat faultstat
fcgi fcgi
fd
fdk-aac fdk-aac
fdupes fdupes
feh feh
@@ -1548,7 +1565,6 @@ freeglut
freeipmi freeipmi
freetype freetype
fribidi fribidi
fritzing-app
frozen frozen
fs fs
fsarchiver fsarchiver
@@ -1558,6 +1574,7 @@ fwupd
fwupd-efi fwupd-efi
garcon garcon
gawk gawk
gbinder-python
gc gc
gcab gcab
gcc gcc
@@ -1577,8 +1594,6 @@ gdm
geany geany
geany-plugins geany-plugins
geary geary
gedit
gedit-plugins-gnome
geeqie geeqie
gegl gegl
gengetopt gengetopt
@@ -1749,6 +1764,7 @@ help2man
hexchat hexchat
hexedit hexedit
hicolor-icon-theme hicolor-icon-theme
highway
hiredis-c hiredis-c
hostname hostname
howdy howdy
@@ -1760,7 +1776,6 @@ hub
hugo hugo
hunspell hunspell
hwloc hwloc
hyperscan
hyphen hyphen
i2c-tools i2c-tools
i3 i3
@@ -2169,6 +2184,7 @@ libfontenc
libfprint libfprint
libfreehand libfreehand
libftdi1 libftdi1
libgbinder
libgcrypt libgcrypt
libgd libgd
libgdata libgdata
@@ -2177,6 +2193,7 @@ libgee
libgeotiff libgeotiff
libgit2 libgit2
libgit2-glib libgit2-glib
libglibutil
libglvnd libglvnd
libgnome-keyring libgnome-keyring
libgnomekbd libgnomekbd
@@ -2261,6 +2278,7 @@ libodfgen
libogg libogg
libopenmpt libopenmpt
libopenzwave libopenzwave
libopusenc
liborcus liborcus
libosinfo libosinfo
libpagemaker libpagemaker
@@ -2347,6 +2365,7 @@ libva-intel-driver
libva-utils libva-utils
libvdpau libvdpau
libvirt libvirt
libvirt-dbus
libvirt-glib libvirt-glib
libvirt-python libvirt-python
libvisio libvisio
@@ -2426,6 +2445,7 @@ luarocks
lutris lutris
luv luv
lv2 lv2
lxc
lynx lynx
lz4 lz4
lzlib lzlib
@@ -2503,6 +2523,7 @@ modsecurity
modsecurity-nginx modsecurity-nginx
modules modules
mokutil mokutil
mold
mono mono
moreutils moreutils
mosh mosh
@@ -2552,6 +2573,7 @@ neovim
net-snmp net-snmp
net-tools net-tools
netaddr netaddr
netavark
netbase netbase
netcdf netcdf
netcdf-fortran netcdf-fortran
@@ -2678,6 +2700,7 @@ parallel
parley parley
parted parted
pass pass
passt
passwdqc passwdqc
patch patch
patchelf patchelf
@@ -3072,6 +3095,7 @@ perl-IPC-ShareLite
perl-IPC-Shareable perl-IPC-Shareable
perl-IPC-System-Simple perl-IPC-System-Simple
perl-Image-Base perl-Image-Base
perl-Image-ExifTool
perl-Image-Info perl-Image-Info
perl-Image-Size perl-Image-Size
perl-Image-Xbm perl-Image-Xbm
@@ -3425,7 +3449,6 @@ perl-Test-Without-Module
perl-Test-YAML perl-Test-YAML
perl-Test-utf8 perl-Test-utf8
perl-Test2-Plugin-NoWarnings perl-Test2-Plugin-NoWarnings
perl-Test2-Suite
perl-Text-Autoformat perl-Text-Autoformat
perl-Text-Brew perl-Text-Brew
perl-Text-CSV perl-Text-CSV
@@ -3697,6 +3720,7 @@ pypi-acme
pypi-adal pypi-adal
pypi-aiodns pypi-aiodns
pypi-aiofiles pypi-aiofiles
pypi-aiohappyeyeballs
pypi-aiohttp pypi-aiohttp
pypi-aiohttp_cors pypi-aiohttp_cors
pypi-aiosignal pypi-aiosignal
@@ -3859,6 +3883,7 @@ pypi-cu2qu
pypi-curio pypi-curio
pypi-cvss pypi-cvss
pypi-cxxfilt pypi-cxxfilt
pypi-cysystemd
pypi-cython pypi-cython
pypi-cytoolz pypi-cytoolz
pypi-dacite pypi-dacite
@@ -3900,12 +3925,14 @@ pypi-docopt
pypi-docstring_parser pypi-docstring_parser
pypi-docstring_to_markdown pypi-docstring_to_markdown
pypi-docutils pypi-docutils
pypi-doit
pypi-doxypypy pypi-doxypypy
pypi-doxyqml pypi-doxyqml
pypi-dpcontracts pypi-dpcontracts
pypi-dulwich pypi-dulwich
pypi-ecdsa pypi-ecdsa
pypi-editables pypi-editables
pypi-einops
pypi-elementpath pypi-elementpath
pypi-enrich pypi-enrich
pypi-entrypoints pypi-entrypoints
@@ -3941,6 +3968,7 @@ pypi-flaky
pypi-flask pypi-flask
pypi-flatbuffers pypi-flatbuffers
pypi-flatten_json pypi-flatten_json
pypi-flexcache
pypi-flexparser pypi-flexparser
pypi-flit pypi-flit
pypi-flit_core pypi-flit_core
@@ -4101,6 +4129,9 @@ pypi-jupyterlab_link_share
pypi-jupyterlab_pygments pypi-jupyterlab_pygments
pypi-jupyterlab_server pypi-jupyterlab_server
pypi-jupyterlab_widgets pypi-jupyterlab_widgets
pypi-jupyterlite_core
pypi-jupyterlite_pyodide_kernel
pypi-jupyterlite_sphinx
pypi-jxmlease pypi-jxmlease
pypi-kcc pypi-kcc
pypi-kerberos pypi-kerberos
@@ -4208,6 +4239,7 @@ pypi-numexpr
pypi-numpoly pypi-numpoly
pypi-numpy pypi-numpy
pypi-numpydoc pypi-numpydoc
pypi-nvidia_ml_py
pypi-oauth2client pypi-oauth2client
pypi-oauthlib pypi-oauthlib
pypi-olefile pypi-olefile
@@ -4217,6 +4249,7 @@ pypi-openshift
pypi-openstep_plist pypi-openstep_plist
pypi-opt_einsum pypi-opt_einsum
pypi-ordered_set pypi-ordered_set
pypi-orjson
pypi-ouimeaux pypi-ouimeaux
pypi-outcome pypi-outcome
pypi-overrides pypi-overrides
@@ -4317,6 +4350,7 @@ pypi-pybind11
pypi-pybtex pypi-pybtex
pypi-pybtex_docutils pypi-pybtex_docutils
pypi-pycares pypi-pycares
pypi-pyclip
pypi-pyclipper pypi-pyclipper
pypi-pycodestyle pypi-pycodestyle
pypi-pycollada pypi-pycollada
@@ -4361,7 +4395,6 @@ pypi-pypresence
pypi-pyproject_api pypi-pyproject_api
pypi-pyproject_hooks pypi-pyproject_hooks
pypi-pyproject_metadata pypi-pyproject_metadata
pypi-pyprojectx
pypi-pypsrp pypi-pypsrp
pypi-pyqrcode pypi-pyqrcode
pypi-pyqt5_sip pypi-pyqt5_sip
@@ -4590,6 +4623,7 @@ pypi-texttable
pypi-threadpoolctl pypi-threadpoolctl
pypi-three_merge pypi-three_merge
pypi-tifffile pypi-tifffile
pypi-timm
pypi-tinycss2 pypi-tinycss2
pypi-tldextract pypi-tldextract
pypi-tokenizers pypi-tokenizers
@@ -4599,6 +4633,7 @@ pypi-tomli_w
pypi-tomlkit pypi-tomlkit
pypi-toolz pypi-toolz
pypi-torchmetrics pypi-torchmetrics
pypi-torchvision
pypi-tornado pypi-tornado
pypi-tornado_xstatic pypi-tornado_xstatic
pypi-tox pypi-tox
@@ -4777,8 +4812,10 @@ qemu
qemu-guest-additions qemu-guest-additions
qgit qgit
qhull qhull
qmapshack
qml-box2d qml-box2d
qpdf qpdf
qpl
qqc2-desktop-style qqc2-desktop-style
qrencode qrencode
qscintilla qscintilla
@@ -4876,7 +4913,6 @@ re2c
readline readline
rebootmgr rebootmgr
recode recode
redis-native
redis2-nginx-module redis2-nginx-module
redland redland
redsocks redsocks
@@ -4891,6 +4927,7 @@ rng-tools
robin-map robin-map
roboto roboto
rofi rofi
routino
rpcbind rpcbind
rpcsvc-proto rpcsvc-proto
rpm rpm
@@ -4955,6 +4992,7 @@ slurm
smartmontools smartmontools
smemstat smemstat
snappy snappy
snapshot
sndio sndio
socat socat
socket.io-client-cpp socket.io-client-cpp
@@ -5065,6 +5103,7 @@ tig
tigervnc tigervnc
time time
tini tini
tinyxml2
tiptop tiptop
tk tk
tmux tmux
@@ -5115,7 +5154,10 @@ v4l-utils
vala vala
valgrind valgrind
valijson valijson
valkey
vapoursynth
vbox-integration vbox-integration
vectorscan
vid.stab vid.stab
vifm vifm
vim vim
@@ -5128,12 +5170,14 @@ virt-manager
virt-viewer virt-viewer
vkd3d vkd3d
vlc vlc
volk
volume_key volume_key
vpnc vpnc
vsqlite vsqlite
vte vte
waffle waffle
wavpack wavpack
waydroid
wayland wayland
wayland-protocols wayland-protocols
waypipe waypipe
@@ -5147,10 +5191,12 @@ wget
which which
whois whois
wine wine
winegui
wireless-regdb-master wireless-regdb-master
wireplumber wireplumber
wireshark wireshark
wl-clipboard wl-clipboard
wlrobs
wlroots wlroots
wmctrl wmctrl
woff2 woff2
@@ -5168,6 +5214,7 @@ xapian-core
xastir xastir
xauth xauth
xbitmaps xbitmaps
xboxdrv
xcb-proto xcb-proto
xcb-util-cursor xcb-util-cursor
xcb-util-xrm xcb-util-xrm
+20 -15
View File
@@ -9,9 +9,8 @@ import subprocess
import tempfile import tempfile
import time import time
from git import Repo
import requests import requests
from git import Repo
def vendor_check(): def vendor_check():
@@ -74,13 +73,20 @@ def update_cargo_vendor(path, name, git):
subprocess.run(f"cp -a {vendor_git} {backup_vendor_git}", cwd=path, subprocess.run(f"cp -a {vendor_git} {backup_vendor_git}", cwd=path,
shell=True, check=True, stdout=subprocess.DEVNULL) shell=True, check=True, stdout=subprocess.DEVNULL)
shutil.rmtree(vendor_path) shutil.rmtree(vendor_path)
subprocess.run('cargo vendor', cwd=path, shell=True, check=True, cargo_vendors = subprocess.run('cargo vendor', cwd=path, shell=True,
stdout=subprocess.DEVNULL) check=True, stdout=subprocess.PIPE,
universal_newlines=True).stdout
with open(os.path.join(vendor_path, ".gitattributes"), "w", encoding='utf8') as gafile:
gafile.write("* text=false\n")
subprocess.run(f"cp -a {backup_vendor_git} {vendor_git}", cwd=path, subprocess.run(f"cp -a {backup_vendor_git} {vendor_git}", cwd=path,
shell=True, check=True, stdout=subprocess.DEVNULL) shell=True, check=True, stdout=subprocess.DEVNULL)
repo = Repo(vendor_path) repo = Repo(vendor_path)
if not (len(repo.untracked_files) > 0 or repo.is_dirty()): if not (len(repo.untracked_files) > 0 or repo.is_dirty()):
return False # Always use the newest tag as sometimes a new tag will
# be created but the package won't be updated to use it
# for a different failure reason.
tag = sorted(repo.tags, key=lambda x: x.name, reverse=True)[0]
return tag, cargo_vendors
subprocess.run('git add .', cwd=vendor_path, shell=True, check=True, subprocess.run('git add .', cwd=vendor_path, shell=True, check=True,
stdout=subprocess.DEVNULL) stdout=subprocess.DEVNULL)
subprocess.run('git commit -m "vendor update"', cwd=vendor_path, subprocess.run('git commit -m "vendor update"', cwd=vendor_path,
@@ -92,10 +98,10 @@ def update_cargo_vendor(path, name, git):
subprocess.run(f"git push origin main:main {tag}", cwd=vendor_path, subprocess.run(f"git push origin main:main {tag}", cwd=vendor_path,
shell=True, check=True, stdout=subprocess.DEVNULL) shell=True, check=True, stdout=subprocess.DEVNULL)
time.sleep(30) time.sleep(30)
return tag return tag, cargo_vendors
def update_cargo_sources(name, tag): def update_cargo_sources(name, tag, cargo_vendors):
makefile = [] makefile = []
options = [] options = []
archive_match = os.path.join(r'\$\(CGIT_BASE_URL\)', 'vendor', name, archive_match = os.path.join(r'\$\(CGIT_BASE_URL\)', 'vendor', name,
@@ -132,10 +138,11 @@ def update_cargo_sources(name, tag):
options.append(line) options.append(line)
with open('options.conf', 'w', encoding='utf8') as ofile: with open('options.conf', 'w', encoding='utf8') as ofile:
ofile.writelines(options) ofile.writelines(options)
with open('cargo_vendors', 'w', encoding='utf8') as cfile:
cfile.write(cargo_vendors)
def main(): def main():
updated = False
args = get_args() args = get_args()
vtype = vendor_check() vtype = vendor_check()
@@ -146,13 +153,11 @@ def main():
tdir = setup_content(args.url) tdir = setup_content(args.url)
if vtype == 'cargo': if vtype == 'cargo':
vdir = setup_cargo_vendor(tdir) vdir = setup_cargo_vendor(tdir)
if vdir: if not vdir:
tag = update_cargo_vendor(vdir, args.name, args.git) print(args.archives)
if tag: else:
update_cargo_sources(args.name, tag) tag, cargo_vendors = update_cargo_vendor(vdir, args.name, args.git)
updated = True update_cargo_sources(args.name, tag, cargo_vendors)
if not updated:
print(args.archives)
shutil.rmtree(tdir) shutil.rmtree(tdir)