mirror of
https://github.com/clearlinux/common.git
synced 2026-06-16 11:06:15 +00:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 485815c4fe | |||
| ffd02240f4 | |||
| 69e4a64658 | |||
| 61a91af0ff | |||
| fc6b90aaa5 | |||
| b25ec94cf9 | |||
| a8500a2645 | |||
| 9d15900efd | |||
| 9d101b84cf | |||
| 89d86df8d3 | |||
| 23e40ddcd8 | |||
| e0a40a10f2 | |||
| 3b76c04f7f | |||
| 8b9b13698f | |||
| 1f2b9cc5a7 | |||
| aa0028d372 | |||
| fb17b414ed | |||
| ead0c3e12d | |||
| 610754dddd | |||
| ef9417d080 | |||
| dcc38f2193 | |||
| 9be96daea4 | |||
| 1350df4df6 |
@@ -157,6 +157,10 @@ pullrebase:
|
||||
fi \
|
||||
fi
|
||||
|
||||
# help vendor: Attempt to create an updated vendor tar archive if needed
|
||||
vendor: preautospec-checks pullrebase clean-old-content
|
||||
@ $(TOPLVL)/projects/common/vendor.py $(firstword $(NEWURL) $(URL)) $(PKG_NAME) $(VND_BASE_URL)
|
||||
|
||||
preautospec-checks:
|
||||
|
||||
#help autospec: automatically generates a specfile. If there is
|
||||
@@ -171,6 +175,7 @@ autospec: preautospec-checks pullrebase localreponotice clean-old-content
|
||||
exit 1; \
|
||||
fi
|
||||
@printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(PKG_NAME) '$(firstword $(value NEWURL) $(value URL))' '$(value ARCHIVES)' > Makefile
|
||||
@$(MAKE) vendor
|
||||
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py \
|
||||
--target . \
|
||||
--integrity \
|
||||
|
||||
@@ -35,6 +35,9 @@ PKG_BASE_URL = https://github.com/clearlinux-pkgs
|
||||
# Location where project repos are hosted.
|
||||
PRJ_BASE_URL = https://github.com/clearlinux
|
||||
|
||||
# Location where vendor repos are hosted.
|
||||
VND_BASE_URL =
|
||||
|
||||
# Project repos that are integral to the common tooling.
|
||||
PROJ_PKGS = autospec clr-bundles common
|
||||
|
||||
|
||||
@@ -5,9 +5,8 @@ CGNS
|
||||
CUnit
|
||||
Coin
|
||||
CopyQ
|
||||
Cura
|
||||
CuraEngine
|
||||
DML
|
||||
Endeavour
|
||||
F-Engrave
|
||||
FreeRDP
|
||||
GConf
|
||||
@@ -40,13 +39,11 @@ OpenIPMI
|
||||
OpenSC
|
||||
OpenSP
|
||||
Pacemaker
|
||||
ParaView
|
||||
PyMySQL
|
||||
PyQt5
|
||||
PySocks
|
||||
PyYAML
|
||||
QAT_engine
|
||||
QGIS
|
||||
R
|
||||
R-AER
|
||||
R-ATR
|
||||
@@ -80,6 +77,7 @@ R-DendSer
|
||||
R-Deriv
|
||||
R-DescTools
|
||||
R-DiagrammeR
|
||||
R-DiceDesign
|
||||
R-DistributionUtils
|
||||
R-DoseFinding
|
||||
R-Ecdat
|
||||
@@ -259,6 +257,7 @@ R-caret
|
||||
R-cclust
|
||||
R-cellranger
|
||||
R-checkmate
|
||||
R-chk
|
||||
R-chron
|
||||
R-circlize
|
||||
R-classInt
|
||||
@@ -317,6 +316,8 @@ R-dendextend
|
||||
R-desc
|
||||
R-devtools
|
||||
R-dfoptim
|
||||
R-diagram
|
||||
R-dials
|
||||
R-dichromat
|
||||
R-diffobj
|
||||
R-diffusionMap
|
||||
@@ -1015,30 +1016,29 @@ SDL_image
|
||||
SDL_mixer
|
||||
SDL_net
|
||||
SDL_ttf
|
||||
SFCGAL
|
||||
SFML
|
||||
SPIRV-Cross
|
||||
SPIRV-Tools
|
||||
SVT-AV1
|
||||
SVT-HEVC
|
||||
SmartXbar
|
||||
Solaar
|
||||
Sphinx
|
||||
SuiteSparse
|
||||
TLP
|
||||
Thunar
|
||||
UCD
|
||||
Uranium
|
||||
VTK
|
||||
Vc
|
||||
Vulkan-Headers
|
||||
Vulkan-Loader
|
||||
Vulkan-Tools
|
||||
WALinuxAgent
|
||||
WPEBackend-fdo
|
||||
WireGuard
|
||||
XStatic-term.js
|
||||
Z3
|
||||
abireport
|
||||
abseil-cpp
|
||||
accel-config
|
||||
accountsservice
|
||||
acl
|
||||
@@ -1083,6 +1083,7 @@ arpack-ng
|
||||
artikulate
|
||||
asciidoc
|
||||
asciinema
|
||||
asio
|
||||
aspell
|
||||
aspell-de
|
||||
aspell-en
|
||||
@@ -1130,7 +1131,6 @@ bcc
|
||||
bcftools
|
||||
bdftopcf
|
||||
bemenu
|
||||
bijiben
|
||||
bind-utils
|
||||
binutils
|
||||
binwalk
|
||||
@@ -1273,18 +1273,17 @@ colordiff
|
||||
columbiad
|
||||
compat-atkmm-soname16
|
||||
compat-babeltrace-one
|
||||
compat-boost-soname1.74.0
|
||||
compat-cairomm-soname10
|
||||
compat-codec2-soname1
|
||||
compat-curl-gnutls-soname4
|
||||
compat-enchant-soname1
|
||||
compat-fuse-soname2
|
||||
compat-gcc-10
|
||||
compat-gcr-soname1
|
||||
compat-gdal-soname27
|
||||
compat-glibmm-soname24
|
||||
compat-gnome-bluetooth-soname-13
|
||||
compat-gtksourceview-soname3
|
||||
compat-icu4c-soname67
|
||||
compat-icu4c-soname70
|
||||
compat-json-c-soname4
|
||||
compat-libffi-soname6
|
||||
compat-libpng-soname12
|
||||
@@ -1299,7 +1298,7 @@ compat-pangomm-soname14
|
||||
compat-protobuf-soname29
|
||||
compat-readline-soname5
|
||||
compat-rest-soname07
|
||||
compat-webkitgtk-soname40
|
||||
compat-tiff-soname5
|
||||
component
|
||||
compute-image-packages
|
||||
configobj
|
||||
@@ -1388,6 +1387,7 @@ dolphin
|
||||
dolphin-plugins
|
||||
dos2unix
|
||||
dosfstools
|
||||
dotconf
|
||||
double-conversion
|
||||
dovecot
|
||||
doxygen
|
||||
@@ -1427,7 +1427,6 @@ emacs
|
||||
emacs-x11
|
||||
embree
|
||||
enchant
|
||||
enlightenment
|
||||
eog
|
||||
eog-plugins
|
||||
epm
|
||||
@@ -1450,10 +1449,10 @@ extra-cmake-modules
|
||||
f2fs-tools
|
||||
faas-cli
|
||||
fakeroot
|
||||
falcosecurity-libs
|
||||
fann
|
||||
farstream
|
||||
fcgi
|
||||
fdm_materials
|
||||
fdupes
|
||||
feh
|
||||
fetchmail
|
||||
@@ -1489,6 +1488,7 @@ fonttools
|
||||
forkstat
|
||||
fortune-mod
|
||||
fossil
|
||||
fprintd
|
||||
frameworkintegration
|
||||
freedv
|
||||
freeglut
|
||||
@@ -1598,6 +1598,7 @@ gnome-music
|
||||
gnome-online-accounts
|
||||
gnome-panel
|
||||
gnome-photos
|
||||
gnome-remote-desktop
|
||||
gnome-screensaver
|
||||
gnome-screenshot
|
||||
gnome-session
|
||||
@@ -1609,7 +1610,6 @@ gnome-system-monitor
|
||||
gnome-terminal
|
||||
gnome-text-editor
|
||||
gnome-themes-extra
|
||||
gnome-todo
|
||||
gnome-tweaks
|
||||
gnome-user-docs
|
||||
gnome-video-effects
|
||||
@@ -1642,7 +1642,6 @@ grantleetheme
|
||||
graphene
|
||||
graphite
|
||||
graphviz
|
||||
grass
|
||||
grep
|
||||
grig
|
||||
grilo
|
||||
@@ -1730,7 +1729,6 @@ iftop
|
||||
igsc
|
||||
igt-gpu-tools
|
||||
iio-sensor-proxy
|
||||
imagescan
|
||||
imapfilter
|
||||
imlib2
|
||||
indent
|
||||
@@ -1746,6 +1744,7 @@ intel-gmmlib
|
||||
intel-hybrid-driver
|
||||
intel-ipsec-mb
|
||||
intel-media-driver
|
||||
intel-one-mono
|
||||
intelhex
|
||||
intltool
|
||||
ioping
|
||||
@@ -1794,7 +1793,6 @@ kactivities
|
||||
kactivities-stats
|
||||
kactivitymanagerd
|
||||
kalarm
|
||||
kalarmcal
|
||||
kamera
|
||||
kanagram
|
||||
kapidox
|
||||
@@ -1846,7 +1844,6 @@ kdegraphics-thumbnailers
|
||||
kdelibs4support
|
||||
kdenetwork-filesharing
|
||||
kdenlive
|
||||
kdepim-apps-libs
|
||||
kdepim-runtime
|
||||
kdeplasma-addons
|
||||
kdesdk-kioslaves
|
||||
@@ -1949,6 +1946,7 @@ kpackage
|
||||
kparts
|
||||
kpeople
|
||||
kpimtextedit
|
||||
kpipewire
|
||||
kpkpass
|
||||
kplotting
|
||||
kpty
|
||||
@@ -1981,6 +1979,7 @@ ksysguard
|
||||
ksystemlog
|
||||
ksystemstats
|
||||
kteatime
|
||||
ktextaddons
|
||||
ktexteditor
|
||||
ktextwidgets
|
||||
ktimer
|
||||
@@ -2020,10 +2019,8 @@ less
|
||||
level-zero
|
||||
leveldb
|
||||
lftp
|
||||
libArcus
|
||||
libCharon
|
||||
lib4sbom
|
||||
libMED
|
||||
libSavitar
|
||||
libX11
|
||||
libXScrnSaver
|
||||
libXaw
|
||||
@@ -2046,6 +2043,7 @@ libaccounts-glib
|
||||
libaccounts-qt
|
||||
libadwaita
|
||||
libaio
|
||||
libao
|
||||
libappindicator
|
||||
libarchive
|
||||
libass
|
||||
@@ -2093,6 +2091,7 @@ libe-book
|
||||
libebur128
|
||||
libeconf
|
||||
libedit
|
||||
libei
|
||||
libepoxy
|
||||
libepubgen
|
||||
liberation-fonts
|
||||
@@ -2109,8 +2108,8 @@ libffi
|
||||
libfido2
|
||||
libfixmath
|
||||
libfm
|
||||
libfm-qt
|
||||
libfontenc
|
||||
libfprint
|
||||
libfreehand
|
||||
libftdi1
|
||||
libgcrypt
|
||||
@@ -2165,7 +2164,6 @@ libksieve
|
||||
libksysguard
|
||||
liblangtag
|
||||
liblogging
|
||||
liblxqt
|
||||
libmaxminddb
|
||||
libmbim
|
||||
libmediaart
|
||||
@@ -2219,7 +2217,6 @@ libqalculate
|
||||
libqb
|
||||
libqmi
|
||||
libqrtr-glib
|
||||
libqtxdg
|
||||
libqxp
|
||||
libratbag
|
||||
librdkafka
|
||||
@@ -2256,7 +2253,6 @@ libstaroffice
|
||||
libstatgrab
|
||||
libstemmer_c
|
||||
libstoragemgmt
|
||||
libsysstat
|
||||
libtasn1
|
||||
libtermkey
|
||||
libthai
|
||||
@@ -2293,6 +2289,7 @@ libwebp
|
||||
libwnck
|
||||
libwnck3
|
||||
libwpd
|
||||
libwpe
|
||||
libwpg
|
||||
libwps
|
||||
libxcvt
|
||||
@@ -2335,11 +2332,12 @@ linux-preempt-rt
|
||||
linux-tools
|
||||
linuxptp
|
||||
lksctp-tools
|
||||
lldpd
|
||||
llvm
|
||||
llvm11
|
||||
llvm12
|
||||
llvm13
|
||||
llvm14
|
||||
llvm15
|
||||
lm-sensors
|
||||
lmdb
|
||||
logrotate
|
||||
@@ -2362,21 +2360,6 @@ luarocks
|
||||
lutris
|
||||
luv
|
||||
lv2
|
||||
lxqt-about
|
||||
lxqt-admin
|
||||
lxqt-build-tools
|
||||
lxqt-config
|
||||
lxqt-globalkeys
|
||||
lxqt-notificationd
|
||||
lxqt-openssh-askpass
|
||||
lxqt-panel
|
||||
lxqt-policykit
|
||||
lxqt-powermanagement
|
||||
lxqt-qtplugin
|
||||
lxqt-runner
|
||||
lxqt-session
|
||||
lxqt-sudo
|
||||
lxqt-themes
|
||||
lynx
|
||||
lz4
|
||||
lzlib
|
||||
@@ -2504,6 +2487,7 @@ netbase
|
||||
netcdf
|
||||
netdata
|
||||
nethogs
|
||||
netplan
|
||||
nettle
|
||||
network-manager-applet
|
||||
networkmanager-qt
|
||||
@@ -2550,6 +2534,7 @@ numactl
|
||||
numatop
|
||||
numlockx
|
||||
numpy-stl
|
||||
nv-codec-headers
|
||||
nvme-cli
|
||||
oath-toolkit
|
||||
obs-studio
|
||||
@@ -2572,7 +2557,6 @@ openQA
|
||||
openal-soft
|
||||
openblas
|
||||
openbox
|
||||
opencl-clang
|
||||
opencl-headers
|
||||
openconnect
|
||||
openct
|
||||
@@ -2613,6 +2597,7 @@ pacrunner
|
||||
paho.mqtt.c
|
||||
paho.mqtt.cpp
|
||||
palapeli
|
||||
pam_wrapper
|
||||
pandas
|
||||
pandoc
|
||||
pango
|
||||
@@ -2629,7 +2614,6 @@ pavucontrol
|
||||
pbzip2
|
||||
pciutils
|
||||
pcmanfm
|
||||
pcmanfm-qt
|
||||
pcp
|
||||
pcre
|
||||
pcre2
|
||||
@@ -3049,6 +3033,7 @@ perl-List-UtilsBy
|
||||
perl-Locale-Maketext-Gettext
|
||||
perl-Locale-Maketext-Lexicon
|
||||
perl-Locale-Msgfmt
|
||||
perl-Locale-gettext
|
||||
perl-Log-Agent
|
||||
perl-Log-Any
|
||||
perl-Log-Contextual
|
||||
@@ -3317,6 +3302,7 @@ perl-Test-Fatal
|
||||
perl-Test-File
|
||||
perl-Test-File-ShareDir-Dist
|
||||
perl-Test-Fork
|
||||
perl-Test-Future-IO-Impl
|
||||
perl-Test-Identity
|
||||
perl-Test-Inter
|
||||
perl-Test-LWP-UserAgent
|
||||
@@ -3460,7 +3446,6 @@ perl-boolean
|
||||
perl-common-sense
|
||||
perl-constant-defer
|
||||
perl-curry
|
||||
perl-gettext
|
||||
perl-inc-latest
|
||||
perl-indirect
|
||||
perl-latest
|
||||
@@ -3574,6 +3559,7 @@ pmdk
|
||||
pmix
|
||||
pngcrush
|
||||
po4a
|
||||
poco
|
||||
podman
|
||||
polkit
|
||||
polkit-kde-agent
|
||||
@@ -3584,7 +3570,6 @@ popt
|
||||
portaudio
|
||||
portmidi
|
||||
postfix
|
||||
postgis
|
||||
postgresql
|
||||
potrace
|
||||
powerdevil
|
||||
@@ -3634,6 +3619,7 @@ pypi-aiohttp
|
||||
pypi-aiohttp_cors
|
||||
pypi-aiosignal
|
||||
pypi-aiosmtpd
|
||||
pypi-aiosqlite
|
||||
pypi-alabaster
|
||||
pypi-altgraph
|
||||
pypi-amqp
|
||||
@@ -3668,6 +3654,8 @@ pypi-asyncssh
|
||||
pypi-asynctest
|
||||
pypi-atomicwrites
|
||||
pypi-atpublic
|
||||
pypi-attr
|
||||
pypi-attrdict
|
||||
pypi-attrs
|
||||
pypi-autocommand
|
||||
pypi-automat
|
||||
@@ -3682,6 +3670,7 @@ pypi-azure_mgmt_netapp
|
||||
pypi-azure_mgmt_network
|
||||
pypi-azure_mgmt_resource
|
||||
pypi-azure_mgmt_storage
|
||||
pypi-b4
|
||||
pypi-babel
|
||||
pypi-backcall
|
||||
pypi-backoff
|
||||
@@ -3691,6 +3680,7 @@ pypi-bashlex
|
||||
pypi-bcrypt
|
||||
pypi-beautifulsoup4
|
||||
pypi-beniget
|
||||
pypi-billiard
|
||||
pypi-binaryornot
|
||||
pypi-bindep
|
||||
pypi-bitmath
|
||||
@@ -3753,6 +3743,7 @@ pypi-cmarkgfm
|
||||
pypi-cmd2
|
||||
pypi-codecov
|
||||
pypi-colorama
|
||||
pypi-coloredlogs
|
||||
pypi-colorlog
|
||||
pypi-columnize
|
||||
pypi-comm
|
||||
@@ -3768,6 +3759,7 @@ pypi-contextvars
|
||||
pypi-contourpy
|
||||
pypi-cookiecutter
|
||||
pypi-coverage
|
||||
pypi-coverage_enable_subprocess
|
||||
pypi-coveralls
|
||||
pypi-cppy
|
||||
pypi-crashtest
|
||||
@@ -3775,6 +3767,7 @@ pypi-crcmod
|
||||
pypi-cryptography
|
||||
pypi-cryptography_vectors
|
||||
pypi-cs
|
||||
pypi-csscompressor
|
||||
pypi-cssselect
|
||||
pypi-cssselect2
|
||||
pypi-cu2qu
|
||||
@@ -3794,6 +3787,10 @@ pypi-deepmerge
|
||||
pypi-deepspeed
|
||||
pypi-deprecated
|
||||
pypi-deprecation
|
||||
pypi-devpi_client
|
||||
pypi-devpi_common
|
||||
pypi-devpi_process
|
||||
pypi-devpi_server
|
||||
pypi-diff_cover
|
||||
pypi-diff_match_patch
|
||||
pypi-diffoscope
|
||||
@@ -3809,6 +3806,7 @@ pypi-django_babel
|
||||
pypi-django_compressor
|
||||
pypi-django_discover_runner
|
||||
pypi-django_nose
|
||||
pypi-dkimpy
|
||||
pypi-dnacentersdk
|
||||
pypi-dns_lexicon
|
||||
pypi-dnspython
|
||||
@@ -3846,7 +3844,9 @@ pypi-fastimport
|
||||
pypi-fastjsonschema
|
||||
pypi-filecache
|
||||
pypi-filelock
|
||||
pypi-findpython
|
||||
pypi-fissix
|
||||
pypi-fixtures
|
||||
pypi-flake8
|
||||
pypi-flake8_blind_except
|
||||
pypi-flake8_class_newline
|
||||
@@ -3861,6 +3861,7 @@ pypi-flit_core
|
||||
pypi-flit_scm
|
||||
pypi-folium
|
||||
pypi-fontmath
|
||||
pypi-freetype_py
|
||||
pypi-freezegun
|
||||
pypi-frozenlist
|
||||
pypi-fsspec
|
||||
@@ -3872,9 +3873,12 @@ pypi-gcs_oauth2_boto_plugin
|
||||
pypi-gevent
|
||||
pypi-geventhttpclient
|
||||
pypi-ghp_import
|
||||
pypi-git_filter_repo
|
||||
pypi-gitdb
|
||||
pypi-gitpython
|
||||
pypi-glad
|
||||
pypi-glfw
|
||||
pypi-glyphslib
|
||||
pypi-gmqtt
|
||||
pypi-google_api_core
|
||||
pypi-google_api_python_client
|
||||
@@ -3927,6 +3931,7 @@ pypi-httpx
|
||||
pypi-huggingface_hub
|
||||
pypi-humanfriendly
|
||||
pypi-humanize
|
||||
pypi-hupper
|
||||
pypi-hyperframe
|
||||
pypi-hyperlink
|
||||
pypi-hypothesis
|
||||
@@ -3984,6 +3989,7 @@ pypi-jmespath
|
||||
pypi-joblib
|
||||
pypi-josepy
|
||||
pypi-jpype1
|
||||
pypi-jsmin
|
||||
pypi-json5
|
||||
pypi-jsondiff
|
||||
pypi-jsonlines
|
||||
@@ -3999,11 +4005,15 @@ pypi-jupyter_events
|
||||
pypi-jupyter_nbgallery
|
||||
pypi-jupyter_packaging
|
||||
pypi-jupyter_server
|
||||
pypi-jupyter_server_fileid
|
||||
pypi-jupyter_server_mathjax
|
||||
pypi-jupyter_server_terminals
|
||||
pypi-jupyter_server_ydoc
|
||||
pypi-jupyter_sphinx
|
||||
pypi-jupyter_ydoc
|
||||
pypi-jupyterlab
|
||||
pypi-jupyterlab_launcher
|
||||
pypi-jupyterlab_link_share
|
||||
pypi-jupyterlab_pygments
|
||||
pypi-jupyterlab_server
|
||||
pypi-jupyterlab_widgets
|
||||
@@ -4019,6 +4029,8 @@ pypi-kubernetes
|
||||
pypi-langcodes
|
||||
pypi-lark_parser
|
||||
pypi-latexcodec
|
||||
pypi-lavacli
|
||||
pypi-lazy
|
||||
pypi-lazy_loader
|
||||
pypi-lazy_object_proxy
|
||||
pypi-ldap3
|
||||
@@ -4038,9 +4050,12 @@ pypi-macholib
|
||||
pypi-mako
|
||||
pypi-markdown
|
||||
pypi-markdown2
|
||||
pypi-markdown_exec
|
||||
pypi-markdown_include
|
||||
pypi-markdown_it_py
|
||||
pypi-matplotlib
|
||||
pypi-matplotlib_inline
|
||||
pypi-maturin
|
||||
pypi-mdit_py_plugins
|
||||
pypi-mdurl
|
||||
pypi-mergedeep
|
||||
@@ -4051,10 +4066,15 @@ pypi-mistune
|
||||
pypi-mkdocs
|
||||
pypi-mkdocs_autorefs
|
||||
pypi-mkdocs_exclude
|
||||
pypi-mkdocs_gen_files
|
||||
pypi-mkdocs_htmlproofer_plugin
|
||||
pypi-mkdocs_material_extensions
|
||||
pypi-mkdocs_monorepo_plugin
|
||||
pypi-mkdocstrings
|
||||
pypi-mkdocstrings_python
|
||||
pypi-ml_dtypes
|
||||
pypi-mock
|
||||
pypi-moddb
|
||||
pypi-modulegraph
|
||||
pypi-molecule
|
||||
pypi-molecule_docker
|
||||
@@ -4106,6 +4126,7 @@ pypi-olefile
|
||||
pypi-onnx
|
||||
pypi-opcodes
|
||||
pypi-openshift
|
||||
pypi-openstep_plist
|
||||
pypi-opt_einsum
|
||||
pypi-ordered_set
|
||||
pypi-ouimeaux
|
||||
@@ -4114,6 +4135,7 @@ pypi-ovirt_imageio
|
||||
pypi-packaging
|
||||
pypi-paho_mqtt
|
||||
pypi-pandocfilters
|
||||
pypi-parameterized
|
||||
pypi-paramiko
|
||||
pypi-parse
|
||||
pypi-parse_type
|
||||
@@ -4121,17 +4143,22 @@ pypi-parsedatetime
|
||||
pypi-parsley
|
||||
pypi-parso
|
||||
pypi-partd
|
||||
pypi-passlib
|
||||
pypi-paste
|
||||
pypi-pastedeploy
|
||||
pypi-pastel
|
||||
pypi-patatt
|
||||
pypi-pathlib2
|
||||
pypi-pathspec
|
||||
pypi-pathtools
|
||||
pypi-patsy
|
||||
pypi-pbr
|
||||
pypi-pdm
|
||||
pypi-pdm_backend
|
||||
pypi-pdm_pep517
|
||||
pypi-pecan
|
||||
pypi-ped
|
||||
pypi-pefile
|
||||
pypi-pep517
|
||||
pypi-pep621
|
||||
pypi-pep8
|
||||
@@ -4143,13 +4170,17 @@ pypi-phabricator
|
||||
pypi-pickleshare
|
||||
pypi-picobox
|
||||
pypi-pid
|
||||
pypi-pidigits
|
||||
pypi-pillow
|
||||
pypi-pint
|
||||
pypi-pip
|
||||
pypi-pip_tools
|
||||
pypi-pipdeptree
|
||||
pypi-pkgconfig
|
||||
pypi-pkginfo
|
||||
pypi-pkgutil_resolve_name
|
||||
pypi-plaster
|
||||
pypi-plaster_pastedeploy
|
||||
pypi-platformdirs
|
||||
pypi-plotly
|
||||
pypi-pluggy
|
||||
@@ -4179,7 +4210,9 @@ pypi-ptyprocess
|
||||
pypi-pure_eval
|
||||
pypi-purestorage
|
||||
pypi-purity_fb
|
||||
pypi-purl
|
||||
pypi-py
|
||||
pypi-py3dns
|
||||
pypi-py3nvml
|
||||
pypi-py_cpuinfo
|
||||
pypi-pyaml
|
||||
@@ -4227,15 +4260,19 @@ pypi-pyparsing
|
||||
pypi-pyperclip
|
||||
pypi-pyperf
|
||||
pypi-pypowerflex
|
||||
pypi-pypresence
|
||||
pypi-pyproject_api
|
||||
pypi-pyproject_hooks
|
||||
pypi-pyproject_metadata
|
||||
pypi-pyprojectx
|
||||
pypi-pypsrp
|
||||
pypi-pyqrcode
|
||||
pypi-pyqt5_sip
|
||||
pypi-pyqt6_sip
|
||||
pypi-pyqt_builder
|
||||
pypi-pyquery
|
||||
pypi-pyramid
|
||||
pypi-pyrate_limiter
|
||||
pypi-pyreadline
|
||||
pypi-pyrfc3339
|
||||
pypi-pyro4
|
||||
@@ -4308,6 +4345,7 @@ pypi-qtpy
|
||||
pypi-rapidfuzz
|
||||
pypi-rapidfuzz_capi
|
||||
pypi-rcssmin
|
||||
pypi-rdflib
|
||||
pypi-readme_renderer
|
||||
pypi-recommonmark
|
||||
pypi-regex
|
||||
@@ -4326,6 +4364,7 @@ pypi-requirements_parser
|
||||
pypi-resolvelib
|
||||
pypi-responses
|
||||
pypi-restructuredtext_lint
|
||||
pypi-retrolab
|
||||
pypi-retry
|
||||
pypi-retry_decorator
|
||||
pypi-retryz
|
||||
@@ -4386,6 +4425,7 @@ pypi-sniffio
|
||||
pypi-snowballstemmer
|
||||
pypi-sortedcontainers
|
||||
pypi-soupsieve
|
||||
pypi-spdx_tools
|
||||
pypi-sphinx
|
||||
pypi-sphinx_ansible_theme
|
||||
pypi-sphinx_argparse
|
||||
@@ -4430,7 +4470,9 @@ pypi-sshtunnel
|
||||
pypi-stack_data
|
||||
pypi-statsmodels
|
||||
pypi-storops
|
||||
pypi-strictyaml
|
||||
pypi-subprocess_tee
|
||||
pypi-suds
|
||||
pypi-sure
|
||||
pypi-svg.path
|
||||
pypi-tabulate
|
||||
@@ -4452,6 +4494,7 @@ pypi-three_merge
|
||||
pypi-tifffile
|
||||
pypi-tinycss2
|
||||
pypi-tldextract
|
||||
pypi-tokenizers
|
||||
pypi-toml
|
||||
pypi-tomli
|
||||
pypi-tomli_w
|
||||
@@ -4464,6 +4507,7 @@ pypi-tox
|
||||
pypi-tqdm
|
||||
pypi-traitlets
|
||||
pypi-trampolim
|
||||
pypi-translationstring
|
||||
pypi-trimesh
|
||||
pypi-trio
|
||||
pypi-trio_websocket
|
||||
@@ -4478,6 +4522,7 @@ pypi-types_dataclasses
|
||||
pypi-types_docutils
|
||||
pypi-types_enum34
|
||||
pypi-types_ipaddress
|
||||
pypi-types_jsonschema
|
||||
pypi-types_mock
|
||||
pypi-types_psutil
|
||||
pypi-types_pyopenssl
|
||||
@@ -4498,20 +4543,25 @@ pypi-tzdata
|
||||
pypi-tzlocal
|
||||
pypi-ua_parser
|
||||
pypi-uc_micro_py
|
||||
pypi-ufo2ft
|
||||
pypi-ufolib2
|
||||
pypi-uharfbuzz
|
||||
pypi-ujson
|
||||
pypi-unearth
|
||||
pypi-unicodedata2
|
||||
pypi-unidecode
|
||||
pypi-unidiff
|
||||
pypi-uritemplate
|
||||
pypi-uritools
|
||||
pypi-urllib3
|
||||
pypi-urlobject
|
||||
pypi-urwid
|
||||
pypi-user_agents
|
||||
pypi-userpath
|
||||
pypi-uvloop
|
||||
pypi-venusian
|
||||
pypi-verboselogs
|
||||
pypi-versioneer
|
||||
pypi-vine
|
||||
pypi-virtualenv
|
||||
pypi-volatile
|
||||
@@ -4521,6 +4571,7 @@ pypi-vsts_cd_manager
|
||||
pypi-waitress
|
||||
pypi-warlock
|
||||
pypi-watchdog
|
||||
pypi-wcmatch
|
||||
pypi-wcwidth
|
||||
pypi-webcolors
|
||||
pypi-webencodings
|
||||
@@ -4537,6 +4588,7 @@ pypi-wrapt
|
||||
pypi-wsgiproxy2
|
||||
pypi-wsproto
|
||||
pypi-wurlitzer
|
||||
pypi-xcffib
|
||||
pypi-xgboost
|
||||
pypi-xmldiff
|
||||
pypi-xmljson
|
||||
@@ -4557,11 +4609,14 @@ pypi-xstatic_objectpath
|
||||
pypi-xstatic_roboto_fontface
|
||||
pypi-xvfbwrapper
|
||||
pypi-xyzservices
|
||||
pypi-y_py
|
||||
pypi-yamllint
|
||||
pypi-yamlloader
|
||||
pypi-yapf
|
||||
pypi-yarg
|
||||
pypi-yarl
|
||||
pypi-yattag
|
||||
pypi-ypy_websocket
|
||||
pypi-zabbix_api
|
||||
pypi-zc.lockfile
|
||||
pypi-zeroconf
|
||||
@@ -4608,6 +4663,7 @@ qalculate-gtk
|
||||
qatlib
|
||||
qbittorrent
|
||||
qca-qt5
|
||||
qcoro
|
||||
qemu
|
||||
qemu-guest-additions
|
||||
qgit
|
||||
@@ -4623,6 +4679,8 @@ qt-creator
|
||||
qt3d
|
||||
qt5ct
|
||||
qt6base
|
||||
qt6svg
|
||||
qt6tools
|
||||
qtbase
|
||||
qtcanvas3d
|
||||
qtcharts
|
||||
@@ -4655,7 +4713,6 @@ qtwebchannel
|
||||
qtwebengine
|
||||
qtwebsockets
|
||||
qtx11extras
|
||||
qtxdg-tools
|
||||
qtxmlpatterns
|
||||
quagga
|
||||
quassel
|
||||
@@ -4666,6 +4723,7 @@ rabbitmq-c
|
||||
rabbitmq-server
|
||||
rage
|
||||
ragel
|
||||
rapidjson
|
||||
raptor2
|
||||
rasqal
|
||||
rclone
|
||||
@@ -4685,6 +4743,7 @@ rest
|
||||
restic
|
||||
rhythmbox
|
||||
rinutils
|
||||
ripgrep
|
||||
rlwrap
|
||||
rng-tools
|
||||
robin-map
|
||||
@@ -4753,7 +4812,9 @@ smartcols
|
||||
smartmontools
|
||||
smemstat
|
||||
snappy
|
||||
sndio
|
||||
socat
|
||||
socket.io-client-cpp
|
||||
sof-bin
|
||||
softflowd
|
||||
solid
|
||||
@@ -4873,6 +4934,7 @@ tracker
|
||||
tracker-miners
|
||||
tree
|
||||
tree-sitter
|
||||
trurl
|
||||
tzdata
|
||||
uchardet
|
||||
ucpp
|
||||
@@ -4906,6 +4968,7 @@ uwsgi
|
||||
v4l-utils
|
||||
vala
|
||||
valgrind
|
||||
valijson
|
||||
vbox-integration
|
||||
vifm
|
||||
vim
|
||||
@@ -4929,7 +4992,8 @@ wayland
|
||||
wayland-protocols
|
||||
wcslib
|
||||
webkitgtk
|
||||
webkitgtk50
|
||||
webkitgtk60
|
||||
websocketpp
|
||||
weechat
|
||||
weston
|
||||
wget
|
||||
@@ -4939,6 +5003,7 @@ wine
|
||||
wireless-regdb-master
|
||||
wireplumber
|
||||
wireshark
|
||||
wl-clipboard
|
||||
wlroots
|
||||
wmctrl
|
||||
woff2
|
||||
@@ -4961,6 +5026,7 @@ xcursor-themes
|
||||
xcursorgen
|
||||
xdg-dbus-proxy
|
||||
xdg-desktop-portal
|
||||
xdg-desktop-portal-gnome
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-kde
|
||||
xdg-user-dirs
|
||||
@@ -5012,6 +5078,7 @@ xmlsec1
|
||||
xmlstarlet
|
||||
xmlto
|
||||
xmodmap
|
||||
xnec2c
|
||||
xorg-fonts
|
||||
xorg-server
|
||||
xorgproto
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import configparser
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import time
|
||||
|
||||
from git import Repo
|
||||
|
||||
import requests
|
||||
|
||||
|
||||
def vendor_check():
|
||||
if not os.path.isfile('options.conf'):
|
||||
return False
|
||||
config = configparser.ConfigParser(interpolation=None)
|
||||
config.read('options.conf')
|
||||
if 'autospec' not in config.sections():
|
||||
return False
|
||||
if vendor := config['autospec'].get('cargo_vendor'):
|
||||
if vendor == "true":
|
||||
return 'cargo'
|
||||
|
||||
return False
|
||||
|
||||
|
||||
def get_args():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('url')
|
||||
parser.add_argument('name')
|
||||
parser.add_argument('git')
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def setup_content(url):
|
||||
tdir = tempfile.mkdtemp()
|
||||
outfile = os.path.join(tdir, os.path.basename(url))
|
||||
response = requests.get(url, timeout=30)
|
||||
response.raise_for_status()
|
||||
with open(outfile, 'wb') as cfile:
|
||||
cfile.write(response.content)
|
||||
|
||||
subprocess.run(f"tar xf {outfile}", shell=True, cwd=tdir, check=True)
|
||||
os.remove(outfile)
|
||||
return tdir
|
||||
|
||||
|
||||
def setup_cargo_vendor(path):
|
||||
for dirpath, _, files in os.walk(path):
|
||||
for fname in files:
|
||||
if fname == "Cargo.toml":
|
||||
return dirpath
|
||||
return False
|
||||
|
||||
|
||||
def update_cargo_vendor(path, name, git):
|
||||
git_uri = os.path.join(git, name)
|
||||
vendor_path = os.path.join(path, 'vendor')
|
||||
subprocess.run(f"git clone {git_uri} {vendor_path}", shell=True, check=True)
|
||||
vendor_git = os.path.join(vendor_path, '.git')
|
||||
if not os.path.isdir(vendor_git):
|
||||
# initialize a git repo
|
||||
subprocess.run('git init .', cwd=vendor_path, shell=True, check=True)
|
||||
subprocess.run(f"git remote add origin {git_uri}", cwd=vendor_path,
|
||||
shell=True, check=True)
|
||||
backup_vendor_git = os.path.join(path, 'clear-linux-vendor-git')
|
||||
subprocess.run(f"cp -a {vendor_git} {backup_vendor_git}", cwd=path,
|
||||
shell=True, check=True)
|
||||
shutil.rmtree(vendor_path)
|
||||
subprocess.run('cargo vendor', cwd=path, shell=True, check=True)
|
||||
subprocess.run(f"cp -a {backup_vendor_git} {vendor_git}", cwd=path,
|
||||
shell=True, check=True)
|
||||
repo = Repo(vendor_path)
|
||||
if not (len(repo.untracked_files) > 0 or repo.is_dirty()):
|
||||
return False
|
||||
subprocess.run('git add .', cwd=vendor_path, shell=True, check=True)
|
||||
subprocess.run('git commit -m "vendor update"', cwd=vendor_path,
|
||||
shell=True, check=True)
|
||||
gmt = time.gmtime()
|
||||
tag = f"{gmt.tm_year}-{gmt.tm_mon:02d}-{gmt.tm_mday:02d}-{gmt.tm_hour:02d}-{gmt.tm_min:02d}-{gmt.tm_sec:02d}"
|
||||
subprocess.run(f"git tag {tag}", cwd=vendor_path, shell=True,
|
||||
check=True)
|
||||
subprocess.run(f"git push origin main:main {tag}", cwd=vendor_path,
|
||||
shell=True, check=True)
|
||||
time.sleep(30)
|
||||
return tag
|
||||
|
||||
|
||||
def update_cargo_sources(name, tag):
|
||||
makefile = []
|
||||
archive_match = os.path.join('$(CGIT_BASE_URL)', 'vendor', name,
|
||||
'snapshot', name)
|
||||
with open('Makefile', encoding='utf8') as mfile:
|
||||
for line in mfile.readlines():
|
||||
if line.startswith('ARCHIVES'):
|
||||
if re.match(archive_match + '[a-zA-Z0-9_\-.]+\.tar\.xz', line):
|
||||
new_archives = re.sub(archive_match + '[a-zA-Z0-9_\-.]+\.tar\.xz',
|
||||
f"{archive_match}-{tag}.tar.xz\n", line)
|
||||
else:
|
||||
new_archives = f"ARCHIVES = {archive_match}-{tag}.tar.xz ./vendor\n"
|
||||
makefile.append(new_archives)
|
||||
else:
|
||||
makefile.append(line)
|
||||
with open('Makefile', 'w', encoding='utf8') as mfile:
|
||||
mfile.writelines(makefile)
|
||||
|
||||
|
||||
def main():
|
||||
vtype = vendor_check()
|
||||
if not vtype:
|
||||
return
|
||||
|
||||
args = get_args()
|
||||
tdir = setup_content(args.url)
|
||||
if vtype == 'cargo':
|
||||
vdir = setup_cargo_vendor(tdir)
|
||||
if vdir:
|
||||
tag = update_cargo_vendor(vdir, args.name, args.git)
|
||||
if tag:
|
||||
update_cargo_sources(args.name, tag)
|
||||
shutil.rmtree(tdir)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user