Compare commits

..

31 Commits

Author SHA1 Message Date
clrbuilder 976837dd36 Update packages file for version 39620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-07-13 00:07:09 -07:00
clrbuilder 6102ce39b8 Update packages file for version 39610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-07-11 00:08:15 -07:00
clrbuilder 4ed6de4b77 Update packages file for version 39600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-07-07 12:42:26 -07:00
clrbuilder 5af73631bd Update packages file for version 39590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-07-06 07:19:14 -07:00
clrbuilder 7a63c36293 Update packages file for version 39550
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-07-03 11:31:57 -07:00
clrbuilder 442543a9aa Update packages file for version 39540
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-06-29 00:06:26 -07:00
clrbuilder 43b28277c0 Update packages file for version 39530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-06-28 14:39:47 -07:00
clrbuilder c371f6a233 Update packages file for version 39490
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-06-27 15:09:21 -07:00
clrbuilder 485815c4fe Update packages file for version 39470
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-06-27 00:07:28 -07:00
clrbuilder ffd02240f4 Update packages file for version 39460
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-06-26 16:11:45 -07:00
clrbuilder 69e4a64658 Update packages file for version 39450
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-06-23 09:07:00 -07:00
William Douglas 61a91af0ff Fix logic for detecting new vendor
Missing grouping in vendor .git changed caused detection failures.

Signed-off-by: William Douglas <william.douglas@intel.com>
2023-06-01 15:08:51 -07:00
clrbuilder fc6b90aaa5 Update packages file for version 38830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-04-18 07:56:02 -07:00
clrbuilder b25ec94cf9 Update packages file for version 38820
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-04-17 13:01:55 -07:00
clrbuilder a8500a2645 Update packages file for version 38810
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-04-17 07:48:28 -07:00
clrbuilder 9d15900efd Update packages file for version 38800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-04-14 09:13:47 -07:00
clrbuilder 9d101b84cf Update packages file for version 38760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-04-12 11:23:10 -07:00
clrbuilder 89d86df8d3 Update packages file for version 38750
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-04-11 00:07:27 -07:00
clrbuilder 23e40ddcd8 Update packages file for version 38740
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-04-06 00:07:15 -07:00
clrbuilder e0a40a10f2 Update packages file for version 38710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-04-03 14:52:16 -07:00
clrbuilder 3b76c04f7f Update packages file for version 38700
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-03-30 16:26:28 -07:00
clrbuilder 8b9b13698f Update packages file for version 38690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-03-30 11:21:18 -07:00
clrbuilder 1f2b9cc5a7 Update packages file for version 38680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-03-30 00:06:55 -07:00
William Douglas aa0028d372 Correct test for config value being set
Fix the vendor.py test checking if cargo vendoring should be done.

Signed-off-by: William Douglas <william.douglas@intel.com>
2023-03-29 16:31:28 -07:00
clrbuilder fb17b414ed Update packages file for version 38650
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-03-28 00:08:23 -07:00
William Douglas ead0c3e12d Only vendor if cargo_vendor is true not just if it exists
Signed-off-by: William Douglas <william.douglas@intel.com>
2023-03-27 10:19:53 -07:00
clrbuilder 610754dddd Update packages file for version 38640
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-03-24 13:27:46 -07:00
William Douglas ef9417d080 Add checks to ensure options.conf is valid
Signed-off-by: William Douglas <william.douglas@intel.com>
2023-03-24 11:18:11 -07:00
William Douglas dcc38f2193 Add vendor target
Add handling for a vendor target that will handle specific vendor
requirements from a package's options.conf.

The initial change adds handling for 'cargo vendor', creating a new
repo in the configured git repositiory and setting up the ARCHIVES
variable in the package's Makefile.

If the repo already exists, the tooling will check if a repo change
was detected after re-vendoring the sources. If a change is detected
the new content will be pushed and the ARCHIVES variable will be
updated.

Signed-off-by: William Douglas <william.douglas@intel.com>
2023-03-23 15:01:17 -07:00
clrbuilder 9be96daea4 Update packages file for version 38630
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-03-23 00:07:26 -07:00
clrbuilder 1350df4df6 Update packages file for version 38620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2023-03-21 14:46:06 -07:00
4 changed files with 262 additions and 59 deletions
+5
View File
@@ -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 \
+3
View File
@@ -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
+126 -59
View File
@@ -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
@@ -1203,8 +1203,6 @@ casync
ccache
ccid
cdparanoia
ceph
ceph-deploy
cereal
cfitsio
cgdb
@@ -1273,18 +1271,15 @@ colordiff
columbiad
compat-atkmm-soname16
compat-babeltrace-one
compat-boost-soname1.74.0
compat-cairomm-soname10
compat-curl-gnutls-soname4
compat-codec2-soname1
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-json-c-soname4
compat-libffi-soname6
compat-libpng-soname12
@@ -1294,12 +1289,10 @@ compat-libva-soname1
compat-libvpx-soname7
compat-lua-52
compat-lua-53
compat-openssl-soname11
compat-pangomm-soname14
compat-protobuf-soname29
compat-readline-soname5
compat-rest-soname07
compat-webkitgtk-soname40
compat-tiff-soname5
component
compute-image-packages
configobj
@@ -1333,7 +1326,6 @@ cups-bjnp
cups-filters
cups-pk-helper
curl
curl-mini
custom_inherit
cycler
cyrus-sasl
@@ -1388,6 +1380,7 @@ dolphin
dolphin-plugins
dos2unix
dosfstools
dotconf
double-conversion
dovecot
doxygen
@@ -1427,7 +1420,6 @@ emacs
emacs-x11
embree
enchant
enlightenment
eog
eog-plugins
epm
@@ -1450,10 +1442,11 @@ extra-cmake-modules
f2fs-tools
faas-cli
fakeroot
falcosecurity-libs
fann
farstream
faultstat
fcgi
fdm_materials
fdupes
feh
fetchmail
@@ -1481,6 +1474,7 @@ flrig
fltk
fluidsynth
fmt
fnotifystat
folks
font-util
fontconfig
@@ -1489,6 +1483,7 @@ fonttools
forkstat
fortune-mod
fossil
fprintd
frameworkintegration
freedv
freeglut
@@ -1534,7 +1529,6 @@ geocode-glib
geos
gettext
gexiv2
gfbgraph
gflags
gftp
gh
@@ -1598,6 +1592,7 @@ gnome-music
gnome-online-accounts
gnome-panel
gnome-photos
gnome-remote-desktop
gnome-screensaver
gnome-screenshot
gnome-session
@@ -1609,7 +1604,6 @@ gnome-system-monitor
gnome-terminal
gnome-text-editor
gnome-themes-extra
gnome-todo
gnome-tweaks
gnome-user-docs
gnome-video-effects
@@ -1642,7 +1636,6 @@ grantleetheme
graphene
graphite
graphviz
grass
grep
grig
grilo
@@ -1730,7 +1723,6 @@ iftop
igsc
igt-gpu-tools
iio-sensor-proxy
imagescan
imapfilter
imlib2
indent
@@ -1746,6 +1738,7 @@ intel-gmmlib
intel-hybrid-driver
intel-ipsec-mb
intel-media-driver
intel-one-mono
intelhex
intltool
ioping
@@ -1794,7 +1787,6 @@ kactivities
kactivities-stats
kactivitymanagerd
kalarm
kalarmcal
kamera
kanagram
kapidox
@@ -1846,7 +1838,6 @@ kdegraphics-thumbnailers
kdelibs4support
kdenetwork-filesharing
kdenlive
kdepim-apps-libs
kdepim-runtime
kdeplasma-addons
kdesdk-kioslaves
@@ -1949,6 +1940,7 @@ kpackage
kparts
kpeople
kpimtextedit
kpipewire
kpkpass
kplotting
kpty
@@ -1981,6 +1973,7 @@ ksysguard
ksystemlog
ksystemstats
kteatime
ktextaddons
ktexteditor
ktextwidgets
ktimer
@@ -2020,10 +2013,8 @@ less
level-zero
leveldb
lftp
libArcus
libCharon
lib4sbom
libMED
libSavitar
libX11
libXScrnSaver
libXaw
@@ -2046,6 +2037,7 @@ libaccounts-glib
libaccounts-qt
libadwaita
libaio
libao
libappindicator
libarchive
libass
@@ -2093,6 +2085,7 @@ libe-book
libebur128
libeconf
libedit
libei
libepoxy
libepubgen
liberation-fonts
@@ -2109,8 +2102,8 @@ libffi
libfido2
libfixmath
libfm
libfm-qt
libfontenc
libfprint
libfreehand
libftdi1
libgcrypt
@@ -2165,7 +2158,6 @@ libksieve
libksysguard
liblangtag
liblogging
liblxqt
libmaxminddb
libmbim
libmediaart
@@ -2196,6 +2188,7 @@ libnma
libnotify
libnsl
libnumbertext
libnvme
liboauth
libodfgen
libogg
@@ -2219,7 +2212,6 @@ libqalculate
libqb
libqmi
libqrtr-glib
libqtxdg
libqxp
libratbag
librdkafka
@@ -2256,7 +2248,6 @@ libstaroffice
libstatgrab
libstemmer_c
libstoragemgmt
libsysstat
libtasn1
libtermkey
libthai
@@ -2293,6 +2284,7 @@ libwebp
libwnck
libwnck3
libwpd
libwpe
libwpg
libwps
libxcvt
@@ -2319,7 +2311,6 @@ linux-current
linux-firmware
linux-firmware-ipu
linux-hyperv-lts
linux-iot-lts2018
linux-iot-lts2018-preempt-rt
linux-libc-headers
linux-lts2017
@@ -2329,17 +2320,17 @@ linux-lts2020
linux-lts2021
linux-ltscurrent
linux-ltsprev
linux-mainline
linux-oracle
linux-preempt-rt
linux-tools
linuxptp
lksctp-tools
lldpd
llvm
llvm11
llvm12
llvm13
llvm14
llvm15
lm-sensors
lmdb
logrotate
@@ -2362,21 +2353,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 +2480,7 @@ netbase
netcdf
netdata
nethogs
netplan
nettle
network-manager-applet
networkmanager-qt
@@ -2550,6 +2527,7 @@ numactl
numatop
numlockx
numpy-stl
nv-codec-headers
nvme-cli
oath-toolkit
obs-studio
@@ -2572,7 +2550,6 @@ openQA
openal-soft
openblas
openbox
opencl-clang
opencl-headers
openconnect
openct
@@ -2580,8 +2557,6 @@ opencv
openexr
openjade
openjdk
openjdk11
openjdk13
openjpeg
openldap
openmpi
@@ -2610,9 +2585,11 @@ oxygen-icons5
p11-kit
p7zip
pacrunner
pagemon
paho.mqtt.c
paho.mqtt.cpp
palapeli
pam_wrapper
pandas
pandoc
pango
@@ -2621,6 +2598,7 @@ parallel
parley
parted
pass
passwdqc
patch
patchelf
patchutils
@@ -2629,7 +2607,6 @@ pavucontrol
pbzip2
pciutils
pcmanfm
pcmanfm-qt
pcp
pcre
pcre2
@@ -2850,6 +2827,7 @@ perl-Devel-Refactor
perl-Devel-Size
perl-Devel-StackTrace
perl-Devel-StackTrace-AsHTML
perl-Devel-StackTrace-Extract
perl-Devel-Symdump
perl-Digest-CRC
perl-Digest-HMAC
@@ -2995,6 +2973,7 @@ perl-IO-Interactive
perl-IO-Interactive-Tiny
perl-IO-Interface
perl-IO-Multiplex
perl-IO-Pager
perl-IO-Pipely
perl-IO-Prompter
perl-IO-Socket-INET6
@@ -3049,6 +3028,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
@@ -3274,6 +3254,7 @@ perl-Sub-Exporter
perl-Sub-Exporter-ForMethods
perl-Sub-Exporter-Progressive
perl-Sub-Identify
perl-Sub-Infix
perl-Sub-Info
perl-Sub-Install
perl-Sub-Name
@@ -3317,6 +3298,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,13 +3442,13 @@ perl-boolean
perl-common-sense
perl-constant-defer
perl-curry
perl-gettext
perl-inc-latest
perl-indirect
perl-latest
perl-libwww-perl
perl-libxml-perl
perl-local-lib
perl-match-simple
perl-multidimensional
perl-namespace-autoclean
perl-namespace-clean
@@ -3574,6 +3556,7 @@ pmdk
pmix
pngcrush
po4a
poco
podman
polkit
polkit-kde-agent
@@ -3584,7 +3567,6 @@ popt
portaudio
portmidi
postfix
postgis
postgresql
potrace
powerdevil
@@ -3634,10 +3616,12 @@ pypi-aiohttp
pypi-aiohttp_cors
pypi-aiosignal
pypi-aiosmtpd
pypi-aiosqlite
pypi-alabaster
pypi-altgraph
pypi-amqp
pypi-aniso8601
pypi-annotated_types
pypi-ansi2html
pypi-ansible_builder
pypi-ansible_compat
@@ -3668,6 +3652,8 @@ pypi-asyncssh
pypi-asynctest
pypi-atomicwrites
pypi-atpublic
pypi-attr
pypi-attrdict
pypi-attrs
pypi-autocommand
pypi-automat
@@ -3682,6 +3668,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 +3678,7 @@ pypi-bashlex
pypi-bcrypt
pypi-beautifulsoup4
pypi-beniget
pypi-billiard
pypi-binaryornot
pypi-bindep
pypi-bitmath
@@ -3753,6 +3741,7 @@ pypi-cmarkgfm
pypi-cmd2
pypi-codecov
pypi-colorama
pypi-coloredlogs
pypi-colorlog
pypi-columnize
pypi-comm
@@ -3768,6 +3757,7 @@ pypi-contextvars
pypi-contourpy
pypi-cookiecutter
pypi-coverage
pypi-coverage_enable_subprocess
pypi-coveralls
pypi-cppy
pypi-crashtest
@@ -3775,6 +3765,7 @@ pypi-crcmod
pypi-cryptography
pypi-cryptography_vectors
pypi-cs
pypi-csscompressor
pypi-cssselect
pypi-cssselect2
pypi-cu2qu
@@ -3794,6 +3785,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 +3804,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 +3842,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 +3859,7 @@ pypi-flit_core
pypi-flit_scm
pypi-folium
pypi-fontmath
pypi-freetype_py
pypi-freezegun
pypi-frozenlist
pypi-fsspec
@@ -3872,9 +3871,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 +3929,7 @@ pypi-httpx
pypi-huggingface_hub
pypi-humanfriendly
pypi-humanize
pypi-hupper
pypi-hyperframe
pypi-hyperlink
pypi-hypothesis
@@ -3984,6 +3987,7 @@ pypi-jmespath
pypi-joblib
pypi-josepy
pypi-jpype1
pypi-jsmin
pypi-json5
pypi-jsondiff
pypi-jsonlines
@@ -3999,11 +4003,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,12 +4027,15 @@ pypi-kubernetes
pypi-langcodes
pypi-lark_parser
pypi-latexcodec
pypi-lavacli
pypi-lazy
pypi-lazy_loader
pypi-lazy_object_proxy
pypi-ldap3
pypi-libarchive_c
pypi-libevdev
pypi-lightning_utilities
pypi-linkchecker
pypi-linkify_it_py
pypi-livereload
pypi-llfuse
@@ -4038,9 +4049,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 +4065,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 +4125,7 @@ pypi-olefile
pypi-onnx
pypi-opcodes
pypi-openshift
pypi-openstep_plist
pypi-opt_einsum
pypi-ordered_set
pypi-ouimeaux
@@ -4114,6 +4134,7 @@ pypi-ovirt_imageio
pypi-packaging
pypi-paho_mqtt
pypi-pandocfilters
pypi-parameterized
pypi-paramiko
pypi-parse
pypi-parse_type
@@ -4121,17 +4142,23 @@ 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-pdfminer.six
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
Executable
+128
View File
@@ -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()