mirror of
https://github.com/clearlinux/common.git
synced 2026-06-16 11:06:15 +00:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f825b6b7fc | |||
| 4627d7a47d | |||
| 8b2e15fa59 | |||
| ec3903192a | |||
| da6bc31e4a | |||
| c360ffe52c | |||
| f092f66d8d | |||
| 704e8c90b8 | |||
| 1ca80a16a3 | |||
| 27e359bda0 | |||
| 3db02dd609 | |||
| 5866d7afbf | |||
| 437d1ee01a | |||
| cb5d78bb2f |
@@ -582,6 +582,78 @@ cloc: $(SRPMFILE)
|
||||
@$(MOCK) --clean --scrub=chroot --uniqueext=$(PKG_NAME)
|
||||
cat results/cloc.txt
|
||||
|
||||
#help catchup: Backport the commits from the current version to the upstream HEAD (not release).
|
||||
#help Only works if giturl is defined and the current package version can be mapped to a git tag.
|
||||
catchup:
|
||||
$(MAKE) catchup-HEAD
|
||||
|
||||
#help catchup-<commit|tag>: Backport the commits from the current version to the specified commit or tag.
|
||||
#help Only works if giturl is defined and the current package version can be mapped to a git tag.
|
||||
catchup-%:
|
||||
@target=$*; \
|
||||
giturl=$$(grep -E '^giturl\s*=\s*\S+' options.conf | sed 's/giturl\s*=\s*//' 2>/dev/null); \
|
||||
if [[ -z "$${giturl}" ]]; then \
|
||||
echo "Error: giturl not defined in options.conf"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
mkdir -p results; \
|
||||
if [[ -d results/$(PKG_NAME) ]]; then \
|
||||
echo "Reusing existing repository..."; \
|
||||
git -C results/$(PKG_NAME) fetch origin; \
|
||||
else \
|
||||
echo "Cloning upstream repository..."; \
|
||||
git -C results clone "$${giturl}" $(PKG_NAME); \
|
||||
fi; \
|
||||
if ! git -C results/$(PKG_NAME) rev-parse --verify --quiet "$${target}" >/dev/null; then \
|
||||
echo "Error: Target commit/tag $${target} not found"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
version=$$(rpm -q --qf '%{VERSION}\n' --specfile $(SPECFILE) | head -1); \
|
||||
echo "Version: $${version}"; \
|
||||
current_tag=$$(git -C results/$(PKG_NAME) tag --list | grep -E "^($(PKG_NAME)-)?v?$${version}$$") || { \
|
||||
echo "Error: No tag found for current package version"; \
|
||||
exit 1; \
|
||||
}; \
|
||||
echo "Catching up from $${current_tag} to $${target}"; \
|
||||
for commit in $$(git -C results/$(PKG_NAME) log --reverse --pretty=oneline $${current_tag}..$${target} | cut -d' ' -f1); do \
|
||||
$(MAKE) backport-$${commit}; \
|
||||
done;
|
||||
|
||||
|
||||
#help backport-<commit>: Retrieve a commit from the upstream git repository and save it as a backport patch.
|
||||
#help The giturl is read from options.conf.
|
||||
backport-%:
|
||||
@commit=$*; \
|
||||
echo "Backporting commit: $${commit}"; \
|
||||
giturl=$$(grep -E '^giturl\s*=\s*\S+' options.conf | sed 's/giturl\s*=\s*//' 2>/dev/null); \
|
||||
if [[ -z "$${giturl}" ]]; then \
|
||||
echo "Error: giturl not defined in options.conf"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
mkdir -p results; \
|
||||
if [[ -d results/$(PKG_NAME) ]]; then \
|
||||
echo "Reusing existing repository..."; \
|
||||
git -C results/$(PKG_NAME) fetch origin; \
|
||||
else \
|
||||
echo "Cloning upstream repository..."; \
|
||||
git -C results clone "$${giturl}" $(PKG_NAME); \
|
||||
fi; \
|
||||
full_commit=$$(git -C results/$(PKG_NAME) show --pretty=oneline $${commit} 2>/dev/null | head -1 | cut -d' ' -f 1); \
|
||||
if [[ -z "$${full_commit}" ]]; then \
|
||||
echo "Error: Commit for $${commit} not found"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
patch=backport-$${full_commit}.patch; \
|
||||
git -C results/$(PKG_NAME) format-patch -1 --stdout $${full_commit} > $${patch}; \
|
||||
if [[ -s $${patch} ]]; then \
|
||||
echo "$${patch} created"; \
|
||||
grep -qE "^$${patch}$$" series 2>/dev/null || echo "$${patch}" >> series; \
|
||||
else \
|
||||
rm -f $${patch}; \
|
||||
echo "Error: Failed to create backport patch"; \
|
||||
exit 1; \
|
||||
fi \
|
||||
|
||||
.PHONY: whatrequires
|
||||
#help whatrequires: Output a list of packages that directly depend on this one,
|
||||
#help showing the subpackage-level breakdown. Each line of output has the format
|
||||
|
||||
@@ -180,6 +180,7 @@ R-Ryacas
|
||||
R-SGP
|
||||
R-SGPdata
|
||||
R-SQUAREM
|
||||
R-SimDesign
|
||||
R-Sleuth2
|
||||
R-SnowballC
|
||||
R-SparseM
|
||||
@@ -232,6 +233,7 @@ R-bayesplot
|
||||
R-bazar
|
||||
R-bbmle
|
||||
R-bdsmatrix
|
||||
R-beepr
|
||||
R-beeswarm
|
||||
R-bench
|
||||
R-benchr
|
||||
@@ -809,6 +811,7 @@ R-readr
|
||||
R-readstata13
|
||||
R-readxl
|
||||
R-recipes
|
||||
R-reformulas
|
||||
R-registry
|
||||
R-relimp
|
||||
R-rematch
|
||||
@@ -871,6 +874,7 @@ R-rsvg
|
||||
R-runjags
|
||||
R-rversions
|
||||
R-rvest
|
||||
R-rworldmap
|
||||
R-s2
|
||||
R-sampling
|
||||
R-sandwich
|
||||
@@ -1204,6 +1208,7 @@ boost
|
||||
borgbackup
|
||||
boto3
|
||||
botocore
|
||||
bottom
|
||||
bovo
|
||||
box2d
|
||||
bpftool
|
||||
@@ -1234,6 +1239,7 @@ buildreq-qmake
|
||||
buildreq-qt6
|
||||
buildreq-scons
|
||||
buildx
|
||||
bwidget
|
||||
byobu
|
||||
bz2file
|
||||
bzip2
|
||||
@@ -1340,6 +1346,7 @@ compat-cairomm-soname10
|
||||
compat-codec2-soname1
|
||||
compat-enchant-soname1
|
||||
compat-ffmpeg-4.4
|
||||
compat-ffmpeg-6
|
||||
compat-fuse-soname2
|
||||
compat-gcc-10
|
||||
compat-gcr-soname1
|
||||
@@ -1361,12 +1368,14 @@ compat-libvpx-soname8
|
||||
compat-pangomm-soname14
|
||||
compat-protobuf-soname29
|
||||
compat-protobuf-soname32
|
||||
compat-python3-rolling
|
||||
compat-re2-soname10
|
||||
compat-readline-soname5
|
||||
compat-taglib-soname1
|
||||
compat-tbb-soname2
|
||||
compat-tiff-soname5
|
||||
compat-wlroots-soname11
|
||||
compat-yaml-cpp-soname6
|
||||
component
|
||||
compose
|
||||
configobj
|
||||
@@ -1581,6 +1590,7 @@ fsearch
|
||||
fuse
|
||||
fwupd
|
||||
fwupd-efi
|
||||
game-music-emu
|
||||
garcon
|
||||
gawk
|
||||
gbinder-python
|
||||
@@ -1747,6 +1757,7 @@ gstreamer-vaapi
|
||||
gtk+
|
||||
gtk-doc
|
||||
gtk-frdp
|
||||
gtk-layer-shell
|
||||
gtk-vnc
|
||||
gtk-xfce-engine
|
||||
gtk3
|
||||
@@ -1840,6 +1851,7 @@ ipe
|
||||
iperf
|
||||
ipmitool
|
||||
ipp-crypto
|
||||
ipp-usb
|
||||
iproute2
|
||||
ipset
|
||||
iptables
|
||||
@@ -1852,6 +1864,7 @@ irrlicht
|
||||
irrlichtmt
|
||||
irssi
|
||||
isa-l
|
||||
isl
|
||||
iso-codes
|
||||
isodate
|
||||
isomd5sum
|
||||
@@ -2258,6 +2271,7 @@ libmbim
|
||||
libmediaart
|
||||
libmemcached
|
||||
libmicrohttpd
|
||||
libmikmod
|
||||
libmnl
|
||||
libmodbus
|
||||
libmodplug
|
||||
@@ -2378,6 +2392,7 @@ libva
|
||||
libva-intel-driver
|
||||
libva-utils
|
||||
libvdpau
|
||||
libversion
|
||||
libvirt
|
||||
libvirt-dbus
|
||||
libvirt-glib
|
||||
@@ -2431,6 +2446,7 @@ linux-ltscurrent
|
||||
linux-ltsprev
|
||||
linux-preempt-rt
|
||||
linux-tools
|
||||
linuxcnc
|
||||
linuxptp
|
||||
lksctp-tools
|
||||
lldpd
|
||||
@@ -2498,7 +2514,6 @@ mesa
|
||||
mesa-demos
|
||||
meson
|
||||
messagelib
|
||||
meta-c-basic
|
||||
meta-desktop-gnome
|
||||
meta-os-core
|
||||
meta-os-core-plus
|
||||
@@ -2521,6 +2536,7 @@ mingw-crt
|
||||
mingw-gcc
|
||||
minicom
|
||||
minimodem
|
||||
minizip-ng
|
||||
minuet
|
||||
mixer-tools
|
||||
mkfontdir
|
||||
@@ -3644,7 +3660,6 @@ php-zmq
|
||||
picmi
|
||||
picocom
|
||||
pidgin
|
||||
pidgin-sipe
|
||||
pigeonhole
|
||||
pigz
|
||||
pim-data-exporter
|
||||
@@ -3732,6 +3747,7 @@ pynvim
|
||||
pyotherside
|
||||
pyotp
|
||||
pyparted
|
||||
pypi-Yapps
|
||||
pypi-absl_py
|
||||
pypi-abydos
|
||||
pypi-accelerate
|
||||
@@ -3749,7 +3765,6 @@ pypi-alabaster
|
||||
pypi-altair
|
||||
pypi-altgraph
|
||||
pypi-amqp
|
||||
pypi-aniso8601
|
||||
pypi-annotated_types
|
||||
pypi-ansi2html
|
||||
pypi-ansible_builder
|
||||
@@ -3785,7 +3800,6 @@ pypi-atpublic
|
||||
pypi-attr
|
||||
pypi-attrdict
|
||||
pypi-attrs
|
||||
pypi-autocommand
|
||||
pypi-automat
|
||||
pypi-awesomeversion
|
||||
pypi-awscrt
|
||||
@@ -3803,7 +3817,6 @@ pypi-babel
|
||||
pypi-backcall
|
||||
pypi-backoff
|
||||
pypi-backports.ssl_match_hostname
|
||||
pypi-bash_kernel
|
||||
pypi-bashlex
|
||||
pypi-bcrypt
|
||||
pypi-beartype
|
||||
@@ -3842,14 +3855,12 @@ pypi-cachy
|
||||
pypi-cairocffi
|
||||
pypi-cairosvg
|
||||
pypi-calver
|
||||
pypi-capturer
|
||||
pypi-cattrs
|
||||
pypi-cerberus
|
||||
pypi-certbot
|
||||
pypi-certbot_dns_google
|
||||
pypi-certifi
|
||||
pypi-cffi
|
||||
pypi-cffsubr
|
||||
pypi-cfgv
|
||||
pypi-chai
|
||||
pypi-chaospy
|
||||
@@ -3859,7 +3870,6 @@ pypi-check_jsonschema
|
||||
pypi-check_manifest
|
||||
pypi-cheetah3
|
||||
pypi-cheroot
|
||||
pypi-cherrypy
|
||||
pypi-cibuildwheel
|
||||
pypi-ciscoisesdk
|
||||
pypi-ciso8601
|
||||
@@ -3871,11 +3881,11 @@ pypi-click_log
|
||||
pypi-clikit
|
||||
pypi-cloudevents
|
||||
pypi-cloudflare
|
||||
pypi-clr_artifact
|
||||
pypi-cmarkgfm
|
||||
pypi-cmd2
|
||||
pypi-codecov
|
||||
pypi-colorama
|
||||
pypi-coloredlogs
|
||||
pypi-colorlog
|
||||
pypi-columnize
|
||||
pypi-comm
|
||||
@@ -3896,6 +3906,7 @@ pypi-coveralls
|
||||
pypi-cppy
|
||||
pypi-crashtest
|
||||
pypi-crcmod
|
||||
pypi-crypt_r
|
||||
pypi-cryptography
|
||||
pypi-cryptography_vectors
|
||||
pypi-cs
|
||||
@@ -3918,6 +3929,7 @@ pypi-decorator
|
||||
pypi-deepmerge
|
||||
pypi-deepspeed
|
||||
pypi-dep_logic
|
||||
pypi-dependency_groups
|
||||
pypi-deprecated
|
||||
pypi-deprecation
|
||||
pypi-devpi_client
|
||||
@@ -4112,10 +4124,8 @@ pypi-isort
|
||||
pypi-itsdangerous
|
||||
pypi-janus
|
||||
pypi-jaraco.classes
|
||||
pypi-jaraco.collections
|
||||
pypi-jaraco.context
|
||||
pypi-jaraco.functools
|
||||
pypi-jaraco.text
|
||||
pypi-jarn.viewdoc
|
||||
pypi-javaproperties
|
||||
pypi-jedi
|
||||
@@ -4128,7 +4138,6 @@ pypi-jinxed
|
||||
pypi-jmespath
|
||||
pypi-joblib
|
||||
pypi-josepy
|
||||
pypi-jsmin
|
||||
pypi-json5
|
||||
pypi-jsondiff
|
||||
pypi-jsonlines
|
||||
@@ -4158,7 +4167,6 @@ pypi-jupyterlab_server
|
||||
pypi-jupyterlab_widgets
|
||||
pypi-jupyterlite_core
|
||||
pypi-jupyterlite_pyodide_kernel
|
||||
pypi-jupyterlite_sphinx
|
||||
pypi-jxmlease
|
||||
pypi-kcc
|
||||
pypi-kerberos
|
||||
@@ -4176,6 +4184,7 @@ pypi-lazy
|
||||
pypi-lazy_loader
|
||||
pypi-lazy_object_proxy
|
||||
pypi-ldap3
|
||||
pypi-legacy_cgi
|
||||
pypi-levenshtein
|
||||
pypi-libarchive_c
|
||||
pypi-libevdev
|
||||
@@ -4360,6 +4369,7 @@ pypi-progress
|
||||
pypi-progressbar
|
||||
pypi-prometheus_client
|
||||
pypi-prompt_toolkit
|
||||
pypi-propcache
|
||||
pypi-proto_plus
|
||||
pypi-protobuf
|
||||
pypi-psautohint
|
||||
@@ -4375,7 +4385,6 @@ pypi-py3dns
|
||||
pypi-py3nvml
|
||||
pypi-py_cpuinfo
|
||||
pypi-pyaml
|
||||
pypi-pyarrow
|
||||
pypi-pyasn1
|
||||
pypi-pyasn1_modules
|
||||
pypi-pybind11
|
||||
@@ -4415,7 +4424,6 @@ pypi-pylint
|
||||
pypi-pymdown_extensions
|
||||
pypi-pynacl
|
||||
pypi-pynetbox
|
||||
pypi-pynsist
|
||||
pypi-pynvml
|
||||
pypi-pyomo
|
||||
pypi-pyopengl
|
||||
@@ -4505,6 +4513,7 @@ pypi-rapidfuzz
|
||||
pypi-rapidfuzz_capi
|
||||
pypi-rcssmin
|
||||
pypi-rdflib
|
||||
pypi-re2
|
||||
pypi-readme_renderer
|
||||
pypi-readtime
|
||||
pypi-recommonmark
|
||||
@@ -4514,7 +4523,6 @@ pypi-regress
|
||||
pypi-reportlab
|
||||
pypi-repoze.lru
|
||||
pypi-requests
|
||||
pypi-requests_download
|
||||
pypi-requests_file
|
||||
pypi-requests_gssapi
|
||||
pypi-requests_kerberos
|
||||
@@ -4530,7 +4538,6 @@ pypi-retrolab
|
||||
pypi-retry
|
||||
pypi-retry_decorator
|
||||
pypi-retryz
|
||||
pypi-retype
|
||||
pypi-rfc3339_validator
|
||||
pypi-rfc3986
|
||||
pypi-rfc3986_validator
|
||||
@@ -4674,7 +4681,6 @@ pypi-tornado_xstatic
|
||||
pypi-tox
|
||||
pypi-tqdm
|
||||
pypi-traitlets
|
||||
pypi-trampolim
|
||||
pypi-transformers
|
||||
pypi-translationstring
|
||||
pypi-trimesh
|
||||
@@ -4684,7 +4690,6 @@ pypi-trove_classifiers
|
||||
pypi-truststore
|
||||
pypi-ttp
|
||||
pypi-twine
|
||||
pypi-typed_ast
|
||||
pypi-typeguard
|
||||
pypi-types_cffi
|
||||
pypi-types_colorama
|
||||
@@ -4715,7 +4720,6 @@ pypi-tzdata
|
||||
pypi-tzlocal
|
||||
pypi-ua_parser
|
||||
pypi-uc_micro_py
|
||||
pypi-ufo2ft
|
||||
pypi-ufolib2
|
||||
pypi-uharfbuzz
|
||||
pypi-ujson
|
||||
@@ -4815,6 +4819,7 @@ pypi-zope.security
|
||||
pypi-zope.testing
|
||||
pypi-zope.testrunner
|
||||
pypi-zopfli
|
||||
pystring
|
||||
python
|
||||
python-digitalocean
|
||||
python-distutils-extra
|
||||
@@ -4984,6 +4989,7 @@ s3fs-fuse
|
||||
salt
|
||||
samba
|
||||
samtools
|
||||
sane-airscan
|
||||
sane-backends
|
||||
sassc
|
||||
sbc
|
||||
@@ -4996,6 +5002,7 @@ scour
|
||||
scowl
|
||||
screen
|
||||
scummvm
|
||||
scx
|
||||
sddm
|
||||
sddm-kcm
|
||||
seahorse
|
||||
@@ -5107,7 +5114,9 @@ tallow
|
||||
tar
|
||||
taskwarrior
|
||||
tbb
|
||||
tbtools
|
||||
tcl
|
||||
tclx
|
||||
tcpdump
|
||||
tdb
|
||||
tecla
|
||||
@@ -5162,6 +5171,7 @@ udisks2
|
||||
udunits
|
||||
uget
|
||||
uhttpmock
|
||||
uhubctl
|
||||
umockdev
|
||||
unbundle
|
||||
unibilium
|
||||
@@ -5176,7 +5186,6 @@ usb-modeswitch-data
|
||||
usbredir
|
||||
usbutils
|
||||
userspace-rcu
|
||||
usrbinjava
|
||||
usrbinvi
|
||||
usrsctp
|
||||
utf8proc
|
||||
@@ -5236,6 +5245,7 @@ wlroots
|
||||
wmctrl
|
||||
woff2
|
||||
wol
|
||||
wolfssl
|
||||
wpa_supplicant
|
||||
wsjtx
|
||||
wslu
|
||||
@@ -5322,6 +5332,7 @@ xrandr
|
||||
xrdb
|
||||
xrdp
|
||||
xrestop
|
||||
xscorch
|
||||
xscreensaver
|
||||
xsel
|
||||
xset
|
||||
@@ -5355,6 +5366,7 @@ zenity
|
||||
zimg
|
||||
zip
|
||||
zlib
|
||||
zlib-ng
|
||||
znc
|
||||
zopfli
|
||||
zsh
|
||||
|
||||
Reference in New Issue
Block a user