mirror of
https://github.com/clearlinux/common.git
synced 2026-07-14 00:35:53 +00:00
Compare commits
49 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| accf578c02 | |||
| efe2b2bccf | |||
| 9f77cbb6e3 | |||
| bd6c14938b | |||
| 32729558d9 | |||
| b2ad8dbda8 | |||
| e545190de3 | |||
| 9921115897 | |||
| 8d5f8e37c5 | |||
| 6bc5718c25 | |||
| a21156767e | |||
| 9dd5bb895b | |||
| 67b7ef2bf4 | |||
| 6ad56934fd | |||
| 7b08135720 | |||
| 168c9b8606 | |||
| 3ff4181689 | |||
| a581ac8fbf | |||
| 601ca9e0fc | |||
| 8848658fcf | |||
| b76a7bc7f8 | |||
| f8f9619eec | |||
| b7b8774581 | |||
| b3618cc43c | |||
| 921ac270fe | |||
| f41acbdeb0 | |||
| 83a461fe40 | |||
| 6876f3d11e | |||
| 5a4dd4451a | |||
| d48889eb29 | |||
| b402f2bbdf | |||
| 1fcaa4aea6 | |||
| 71b927321f | |||
| 40f17091a6 | |||
| 3b062e1b45 | |||
| 3c3fc1a16c | |||
| 3c7aac6a8e | |||
| baf555428f | |||
| 262d005c62 | |||
| ceff8301a1 | |||
| 8eb7264597 | |||
| c10d558ee6 | |||
| bd75d90fc7 | |||
| 081c620f82 | |||
| 7e017ee247 | |||
| 5b43360fe8 | |||
| eb8879f0f0 | |||
| f18ba9060d | |||
| 9fc1471023 |
+19
-10
@@ -70,10 +70,9 @@ proper: repodel
|
|||||||
mockclean:
|
mockclean:
|
||||||
$(MOCK) --clean --scrub=all
|
$(MOCK) --clean --scrub=all
|
||||||
|
|
||||||
#help mockproper: Clean mock chroot and cache directories for this package.
|
#help mockproper: Clean mock chroot
|
||||||
mockproper:
|
mockproper:
|
||||||
$(MOCK) --clean --scrub=all --uniqueext=$(PKG_NAME)
|
$(MOCK) --clean --uniqueext=$(PKG_NAME)
|
||||||
$(MOCK) --clean --scrub=chroot --uniqueext=$(PKG_NAME)
|
|
||||||
|
|
||||||
configemail:
|
configemail:
|
||||||
@test -d .git || git init
|
@test -d .git || git init
|
||||||
@@ -187,6 +186,8 @@ autospec: preautospec-checks pullrebase localreponotice clean-old-content
|
|||||||
bash update_changelog.sh ; \
|
bash update_changelog.sh ; \
|
||||||
git commit --amend --no-edit Change* ; \
|
git commit --amend --no-edit Change* ; \
|
||||||
fi
|
fi
|
||||||
|
git diff | grep -q index || python3 $(TOPLVL)/projects/common/patchfilter.py > for-review.txt ;
|
||||||
|
git diff | grep -q index || python3 $(TOPLVL)/projects/common/patchfilter.py ;
|
||||||
|
|
||||||
#help autospecnogit: Runs autospec, but does not create a commit
|
#help autospecnogit: Runs autospec, but does not create a commit
|
||||||
autospecnogit:
|
autospecnogit:
|
||||||
@@ -412,27 +413,35 @@ install:
|
|||||||
#help install-debuginfo-local: Install locally built debuginfo RPM to
|
#help install-debuginfo-local: Install locally built debuginfo RPM to
|
||||||
#help the automatic debuginfo cache location (/var/cache/debuginfo)
|
#help the automatic debuginfo cache location (/var/cache/debuginfo)
|
||||||
install-debuginfo-local:
|
install-debuginfo-local:
|
||||||
|
@if [ -z "${DEBUGINFO_RPM}" ]; then \
|
||||||
|
echo "No debuginfo to install... skipping"; \
|
||||||
|
exit 0; \
|
||||||
|
fi; \
|
||||||
|
echo -n "Installing ${DEBUGINFO_RPM}... "; \
|
||||||
tmpdir=$$(mktemp -d); \
|
tmpdir=$$(mktemp -d); \
|
||||||
rpm2cpio ${DEBUGINFO_RPM} | ( cd $$tmpdir; cpio -i -d -u); \
|
rpm2cpio ${DEBUGINFO_RPM} | ( cd $$tmpdir; cpio -i -d -u 2> /dev/null); \
|
||||||
dest=/var/cache/debuginfo/lib; \
|
dest=/var/cache/debuginfo/lib; \
|
||||||
find $$tmpdir/usr/lib/debug/ -mindepth 1 -maxdepth 1 | while read -r d; do \
|
find $$tmpdir/usr/lib/debug/ -mindepth 1 -maxdepth 1 2> /dev/null | while read -r d; do \
|
||||||
sudo chown -R dbginfo:dbginfo "$$d"; \
|
sudo chown -R dbginfo:dbginfo "$$d"; \
|
||||||
sudo cp -a "$$d" $$dest/; \
|
sudo cp -a "$$d" $$dest/; \
|
||||||
done; \
|
done; \
|
||||||
dest=/var/cache/debuginfo/src; \
|
dest=/var/cache/debuginfo/src; \
|
||||||
find $$tmpdir/usr/src/debug/ -mindepth 1 -maxdepth 1 | while read -r d; do \
|
find $$tmpdir/usr/src/debug/ -mindepth 1 -maxdepth 1 2> /dev/null | while read -r d; do \
|
||||||
sudo chown -R dbginfo:dbginfo "$$d"; \
|
sudo chown -R dbginfo:dbginfo "$$d"; \
|
||||||
sudo cp -a "$$d" $$dest/; \
|
sudo cp -a "$$d" $$dest/; \
|
||||||
done; \
|
done; \
|
||||||
sudo rm -rf $$tmpdir
|
sudo rm -rf $$tmpdir; \
|
||||||
|
echo "done"
|
||||||
|
|
||||||
#help install-local: Install locally built RPMs to the root filesystem. Note that the
|
#help install-local: Install locally built RPMs to the root filesystem. Note that the
|
||||||
#help debuginfo RPM installs to /var/cache/debuginfo
|
#help debuginfo RPM installs to /var/cache/debuginfo
|
||||||
install-local:
|
install-local:
|
||||||
for r in $(filter-out ${DEBUGINFO_RPM},${RPMS}); do \
|
@for r in $(filter-out ${DEBUGINFO_RPM},${RPMS}); do \
|
||||||
rpm2cpio $$r | (cd /; sudo cpio -i -d -u); \
|
echo -n "Installing $$r... "; \
|
||||||
|
rpm2cpio $$r | (cd /; sudo cpio -i -d -u 2> /dev/null); \
|
||||||
|
echo "done"; \
|
||||||
done
|
done
|
||||||
$(MAKE) install-debuginfo-local
|
@$(MAKE) -s install-debuginfo-local
|
||||||
|
|
||||||
#help install-mock: Install locally built RPMs to the mock rootcache
|
#help install-mock: Install locally built RPMs to the mock rootcache
|
||||||
#help filesystem. This command is usually used with "make shell".
|
#help filesystem. This command is usually used with "make shell".
|
||||||
|
|||||||
+6
-2
@@ -226,8 +226,12 @@ autospecnew: preautospecnew-checks localreponotice
|
|||||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||||
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
||||||
$(URL); \
|
$(URL); \
|
||||||
[ $$? -eq 0 ] && $(MAKE) link-new-rpms PKG_REPO_DIR="${TOPLVL}/packages/${NAME}"; \
|
if [ $$? -eq 0 ]; then \
|
||||||
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
|
$(MAKE) link-new-rpms PKG_REPO_DIR="${TOPLVL}/packages/${NAME}"; \
|
||||||
|
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
|
||||||
|
python3 $(TOPLVL)/projects/common/patchfilter.py <(git -C $(TOPLVL)/packages/$(NAME) show) > $(TOPLVL)/packages/$(NAME)/for-review.txt; \
|
||||||
|
python3 $(TOPLVL)/projects/common/patchfilter.py <(git -C $(TOPLVL)/packages/$(NAME) show); \
|
||||||
|
fi; \
|
||||||
else \
|
else \
|
||||||
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
|
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
|
|||||||
@@ -99,6 +99,8 @@ CECILL-2.0
|
|||||||
CECILL-2.1
|
CECILL-2.1
|
||||||
CECILL-B
|
CECILL-B
|
||||||
CECILL-C
|
CECILL-C
|
||||||
|
CERN-OHL-1.1
|
||||||
|
CERN-OHL-1.2
|
||||||
CNRI-Jython
|
CNRI-Jython
|
||||||
CNRI-Python
|
CNRI-Python
|
||||||
CNRI-Python-GPL-Compatible
|
CNRI-Python-GPL-Compatible
|
||||||
@@ -183,6 +185,7 @@ Info-ZIP
|
|||||||
Intel
|
Intel
|
||||||
Intel-ACPI
|
Intel-ACPI
|
||||||
Interbase-1.0
|
Interbase-1.0
|
||||||
|
JPNIC
|
||||||
JSON
|
JSON
|
||||||
JasPer-2.0
|
JasPer-2.0
|
||||||
LAL-1.2
|
LAL-1.2
|
||||||
@@ -325,6 +328,7 @@ Spencer-94
|
|||||||
Spencer-99
|
Spencer-99
|
||||||
StandardML-NJ
|
StandardML-NJ
|
||||||
SugarCRM-1.1.3
|
SugarCRM-1.1.3
|
||||||
|
TAPR-OHL-1.0
|
||||||
TCL
|
TCL
|
||||||
TCP-wrappers
|
TCP-wrappers
|
||||||
TMate
|
TMate
|
||||||
@@ -373,6 +377,7 @@ eGenix
|
|||||||
gSOAP-1.3b
|
gSOAP-1.3b
|
||||||
gnuplot
|
gnuplot
|
||||||
iMatix
|
iMatix
|
||||||
|
libpng-2.0
|
||||||
libtiff
|
libtiff
|
||||||
mpich2
|
mpich2
|
||||||
psfrag
|
psfrag
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ FreeCAD
|
|||||||
FreeRDP
|
FreeRDP
|
||||||
GConf
|
GConf
|
||||||
GitPython
|
GitPython
|
||||||
|
GtkD
|
||||||
HeapDict
|
HeapDict
|
||||||
ImageMagick
|
ImageMagick
|
||||||
JAGS
|
JAGS
|
||||||
@@ -42,6 +43,7 @@ Markdown
|
|||||||
MarkupSafe
|
MarkupSafe
|
||||||
ModemManager
|
ModemManager
|
||||||
MonkeyType
|
MonkeyType
|
||||||
|
MuseScore
|
||||||
MySQL-python
|
MySQL-python
|
||||||
NetworkManager
|
NetworkManager
|
||||||
NetworkManager-openconnect
|
NetworkManager-openconnect
|
||||||
@@ -58,6 +60,7 @@ PasteDeploy
|
|||||||
Pillow
|
Pillow
|
||||||
Pint
|
Pint
|
||||||
PyDispatcher
|
PyDispatcher
|
||||||
|
PyICU
|
||||||
PyJWT
|
PyJWT
|
||||||
PyMySQL
|
PyMySQL
|
||||||
PyNaCl
|
PyNaCl
|
||||||
@@ -321,6 +324,7 @@ R-dotCall64
|
|||||||
R-downloader
|
R-downloader
|
||||||
R-dplyr
|
R-dplyr
|
||||||
R-drc
|
R-drc
|
||||||
|
R-dtplyr
|
||||||
R-dtw
|
R-dtw
|
||||||
R-dygraphs
|
R-dygraphs
|
||||||
R-dynlm
|
R-dynlm
|
||||||
@@ -391,6 +395,7 @@ R-fossil
|
|||||||
R-fpc
|
R-fpc
|
||||||
R-fracdiff
|
R-fracdiff
|
||||||
R-fs
|
R-fs
|
||||||
|
R-fst
|
||||||
R-futile.logger
|
R-futile.logger
|
||||||
R-futile.options
|
R-futile.options
|
||||||
R-future
|
R-future
|
||||||
@@ -434,6 +439,7 @@ R-haplo.stats
|
|||||||
R-haven
|
R-haven
|
||||||
R-hdrcde
|
R-hdrcde
|
||||||
R-here
|
R-here
|
||||||
|
R-hexView
|
||||||
R-hexbin
|
R-hexbin
|
||||||
R-highlight
|
R-highlight
|
||||||
R-highr
|
R-highr
|
||||||
@@ -488,6 +494,7 @@ R-leaps
|
|||||||
R-lfe
|
R-lfe
|
||||||
R-lhs
|
R-lhs
|
||||||
R-libcoin
|
R-libcoin
|
||||||
|
R-lintr
|
||||||
R-listenv
|
R-listenv
|
||||||
R-listviewer
|
R-listviewer
|
||||||
R-lle
|
R-lle
|
||||||
@@ -661,6 +668,8 @@ R-rasterVis
|
|||||||
R-rbenchmark
|
R-rbenchmark
|
||||||
R-rcmdcheck
|
R-rcmdcheck
|
||||||
R-reactR
|
R-reactR
|
||||||
|
R-reactlog
|
||||||
|
R-readODS
|
||||||
R-readr
|
R-readr
|
||||||
R-readstata13
|
R-readstata13
|
||||||
R-readxl
|
R-readxl
|
||||||
@@ -677,6 +686,7 @@ R-reprex
|
|||||||
R-reshape
|
R-reshape
|
||||||
R-reshape2
|
R-reshape2
|
||||||
R-reticulate
|
R-reticulate
|
||||||
|
R-rex
|
||||||
R-rgenoud
|
R-rgenoud
|
||||||
R-rgeos
|
R-rgeos
|
||||||
R-rgl
|
R-rgl
|
||||||
@@ -689,6 +699,7 @@ R-rjags
|
|||||||
R-rjstat
|
R-rjstat
|
||||||
R-rlang
|
R-rlang
|
||||||
R-rmarkdown
|
R-rmarkdown
|
||||||
|
R-rmatio
|
||||||
R-rms
|
R-rms
|
||||||
R-rmutil
|
R-rmutil
|
||||||
R-rncl
|
R-rncl
|
||||||
@@ -769,6 +780,7 @@ R-startupmsg
|
|||||||
R-statip
|
R-statip
|
||||||
R-statmod
|
R-statmod
|
||||||
R-statnet.common
|
R-statnet.common
|
||||||
|
R-stringdist
|
||||||
R-stringi
|
R-stringi
|
||||||
R-stringr
|
R-stringr
|
||||||
R-strucchange
|
R-strucchange
|
||||||
@@ -861,6 +873,7 @@ SDL_image
|
|||||||
SDL_mixer
|
SDL_mixer
|
||||||
SDL_net
|
SDL_net
|
||||||
SDL_ttf
|
SDL_ttf
|
||||||
|
SFML
|
||||||
SPIRV-Headers
|
SPIRV-Headers
|
||||||
SPIRV-Tools
|
SPIRV-Tools
|
||||||
SQLAlchemy
|
SQLAlchemy
|
||||||
@@ -948,6 +961,7 @@ akonadiconsole
|
|||||||
akregator
|
akregator
|
||||||
alabaster
|
alabaster
|
||||||
alembic
|
alembic
|
||||||
|
alsa-firmware
|
||||||
alsa-lib
|
alsa-lib
|
||||||
alsa-plugins
|
alsa-plugins
|
||||||
alsa-utils
|
alsa-utils
|
||||||
@@ -1002,6 +1016,8 @@ atomicwrites
|
|||||||
attica
|
attica
|
||||||
attr
|
attr
|
||||||
attrs
|
attrs
|
||||||
|
audacious
|
||||||
|
audacious-plugins
|
||||||
audiofile
|
audiofile
|
||||||
audisp-json
|
audisp-json
|
||||||
audit
|
audit
|
||||||
@@ -1077,6 +1093,7 @@ boto
|
|||||||
boto3
|
boto3
|
||||||
botocore
|
botocore
|
||||||
bovo
|
bovo
|
||||||
|
breathe
|
||||||
breeze
|
breeze
|
||||||
breeze-gtk
|
breeze-gtk
|
||||||
breeze-icons
|
breeze-icons
|
||||||
@@ -1104,6 +1121,7 @@ buildreq-kernel
|
|||||||
buildreq-make
|
buildreq-make
|
||||||
buildreq-meson
|
buildreq-meson
|
||||||
buildreq-mvn
|
buildreq-mvn
|
||||||
|
buildreq-php
|
||||||
buildreq-qmake
|
buildreq-qmake
|
||||||
buildreq-scons
|
buildreq-scons
|
||||||
bundle-chroot-builder
|
bundle-chroot-builder
|
||||||
@@ -1122,6 +1140,7 @@ cairo
|
|||||||
cairomm
|
cairomm
|
||||||
calc
|
calc
|
||||||
calendarsupport
|
calendarsupport
|
||||||
|
can-utils
|
||||||
cantarell-fonts
|
cantarell-fonts
|
||||||
cantata
|
cantata
|
||||||
cantor
|
cantor
|
||||||
@@ -1134,6 +1153,7 @@ catch2
|
|||||||
catkin
|
catkin
|
||||||
catkin_pkg
|
catkin_pkg
|
||||||
ccache
|
ccache
|
||||||
|
ccid
|
||||||
ceilometer
|
ceilometer
|
||||||
ceph
|
ceph
|
||||||
ceph-deploy
|
ceph-deploy
|
||||||
@@ -1158,6 +1178,7 @@ clear-config-management
|
|||||||
clear-font
|
clear-font
|
||||||
click
|
click
|
||||||
click-datetime
|
click-datetime
|
||||||
|
click-log
|
||||||
cliff
|
cliff
|
||||||
clinfo
|
clinfo
|
||||||
cln
|
cln
|
||||||
@@ -1180,6 +1201,7 @@ clr-init
|
|||||||
clr-installer
|
clr-installer
|
||||||
clr-man-pages
|
clr-man-pages
|
||||||
clr-network-troubleshooter
|
clr-network-troubleshooter
|
||||||
|
clr-one-shot-updates
|
||||||
clr-power-tweaks
|
clr-power-tweaks
|
||||||
clr-python-timestamp
|
clr-python-timestamp
|
||||||
clr-pyversion-strip
|
clr-pyversion-strip
|
||||||
@@ -1228,6 +1250,7 @@ collectl
|
|||||||
colorama
|
colorama
|
||||||
colord
|
colord
|
||||||
colord-gtk
|
colord-gtk
|
||||||
|
columbiad
|
||||||
comedilib
|
comedilib
|
||||||
comfortaa-fonts
|
comfortaa-fonts
|
||||||
commonmark
|
commonmark
|
||||||
@@ -1252,6 +1275,7 @@ compat-icu4c-soname61
|
|||||||
compat-ilmbase-soname23
|
compat-ilmbase-soname23
|
||||||
compat-intel-gmmlib-soname1
|
compat-intel-gmmlib-soname1
|
||||||
compat-ipset-soname10
|
compat-ipset-soname10
|
||||||
|
compat-ldc-soname84
|
||||||
compat-libgit2-soname27
|
compat-libgit2-soname27
|
||||||
compat-libical-soname2
|
compat-libical-soname2
|
||||||
compat-libidn-soname11
|
compat-libidn-soname11
|
||||||
@@ -1262,6 +1286,7 @@ compat-libwebp-soname6
|
|||||||
compat-llvm-soname4
|
compat-llvm-soname4
|
||||||
compat-llvm-soname5
|
compat-llvm-soname5
|
||||||
compat-llvm-soname6
|
compat-llvm-soname6
|
||||||
|
compat-llvm-soname7
|
||||||
compat-mariadb-soname18
|
compat-mariadb-soname18
|
||||||
compat-mpfr-soname4
|
compat-mpfr-soname4
|
||||||
compat-opencv-soname32
|
compat-opencv-soname32
|
||||||
@@ -1272,6 +1297,7 @@ compat-openssl-soname-10
|
|||||||
compat-poppler-soname78
|
compat-poppler-soname78
|
||||||
compat-poppler-soname82
|
compat-poppler-soname82
|
||||||
compat-poppler-soname83
|
compat-poppler-soname83
|
||||||
|
compat-poppler-soname86
|
||||||
compat-protobuf-soname14
|
compat-protobuf-soname14
|
||||||
compat-protobuf-soname15
|
compat-protobuf-soname15
|
||||||
compat-python36
|
compat-python36
|
||||||
@@ -1280,6 +1306,7 @@ compat-readline-soname5
|
|||||||
compat-readline-soname7
|
compat-readline-soname7
|
||||||
component
|
component
|
||||||
compute-image-packages
|
compute-image-packages
|
||||||
|
conda
|
||||||
configobj
|
configobj
|
||||||
configparser
|
configparser
|
||||||
confuse
|
confuse
|
||||||
@@ -1349,6 +1376,81 @@ decorator
|
|||||||
defusedxml
|
defusedxml
|
||||||
dejagnu
|
dejagnu
|
||||||
dejavu-fonts
|
dejavu-fonts
|
||||||
|
deprecated-Babel
|
||||||
|
deprecated-Cython
|
||||||
|
deprecated-Jinja2
|
||||||
|
deprecated-Mako
|
||||||
|
deprecated-Markdown
|
||||||
|
deprecated-MarkupSafe
|
||||||
|
deprecated-PyYAML
|
||||||
|
deprecated-Pygments
|
||||||
|
deprecated-Sphinx
|
||||||
|
deprecated-WebOb
|
||||||
|
deprecated-Werkzeug
|
||||||
|
deprecated-Whoosh
|
||||||
|
deprecated-alabaster
|
||||||
|
deprecated-asn1crypto
|
||||||
|
deprecated-attrs
|
||||||
|
deprecated-boto3
|
||||||
|
deprecated-botocore
|
||||||
|
deprecated-certifi
|
||||||
|
deprecated-cffi
|
||||||
|
deprecated-chardet
|
||||||
|
deprecated-colorama
|
||||||
|
deprecated-configparser
|
||||||
|
deprecated-contextlib2
|
||||||
|
deprecated-coverage
|
||||||
|
deprecated-cryptography
|
||||||
|
deprecated-docutils
|
||||||
|
deprecated-funcsigs
|
||||||
|
deprecated-futures
|
||||||
|
deprecated-glances
|
||||||
|
deprecated-html5lib
|
||||||
|
deprecated-hypothesis
|
||||||
|
deprecated-idna
|
||||||
|
deprecated-imagesize
|
||||||
|
deprecated-ipaddress
|
||||||
|
deprecated-isort
|
||||||
|
deprecated-jmespath
|
||||||
|
deprecated-linecache2
|
||||||
|
deprecated-mido
|
||||||
|
deprecated-nose
|
||||||
|
deprecated-numpy
|
||||||
|
deprecated-ordereddict
|
||||||
|
deprecated-pexpect
|
||||||
|
deprecated-pluggy
|
||||||
|
deprecated-psycopg2
|
||||||
|
deprecated-py
|
||||||
|
deprecated-pyOpenSSL
|
||||||
|
deprecated-pyasn1
|
||||||
|
deprecated-pycairo
|
||||||
|
deprecated-pycparser
|
||||||
|
deprecated-pycurl
|
||||||
|
deprecated-pyflakes
|
||||||
|
deprecated-pyparsing
|
||||||
|
deprecated-python-dldt
|
||||||
|
deprecated-python-memcached
|
||||||
|
deprecated-python-mock
|
||||||
|
deprecated-python-multilib
|
||||||
|
deprecated-pytz
|
||||||
|
deprecated-requests
|
||||||
|
deprecated-s3transfer
|
||||||
|
deprecated-setproctitle
|
||||||
|
deprecated-setuptools_scm
|
||||||
|
deprecated-simplejson
|
||||||
|
deprecated-six
|
||||||
|
deprecated-snowballstemmer
|
||||||
|
deprecated-sphinx_rtd_theme
|
||||||
|
deprecated-sphinxcontrib-websupport
|
||||||
|
deprecated-testscenarios
|
||||||
|
deprecated-traceback2
|
||||||
|
deprecated-typing
|
||||||
|
deprecated-unittest2
|
||||||
|
deprecated-urllib3
|
||||||
|
deprecated-warlock
|
||||||
|
deprecated-webcolors
|
||||||
|
deprecated-zope.testing
|
||||||
|
deprecated-zope.testrunner
|
||||||
deprecation
|
deprecation
|
||||||
desktop-file-utils
|
desktop-file-utils
|
||||||
desktop-icons
|
desktop-icons
|
||||||
@@ -1448,8 +1550,10 @@ envs
|
|||||||
eog
|
eog
|
||||||
eog-plugins
|
eog-plugins
|
||||||
epm
|
epm
|
||||||
|
epydoc
|
||||||
eternalegypt
|
eternalegypt
|
||||||
ethtool
|
ethtool
|
||||||
|
etr
|
||||||
eventlet
|
eventlet
|
||||||
eventviews
|
eventviews
|
||||||
evince
|
evince
|
||||||
@@ -1465,6 +1569,7 @@ expect
|
|||||||
extra-cmake-modules
|
extra-cmake-modules
|
||||||
extras
|
extras
|
||||||
f2fs-tools
|
f2fs-tools
|
||||||
|
faas-cli
|
||||||
faba-icon-theme
|
faba-icon-theme
|
||||||
fakeroot
|
fakeroot
|
||||||
fann
|
fann
|
||||||
@@ -1472,6 +1577,7 @@ fann2
|
|||||||
farstream
|
farstream
|
||||||
fasteners
|
fasteners
|
||||||
fastimport
|
fastimport
|
||||||
|
fastnumbers
|
||||||
fcgi
|
fcgi
|
||||||
fcoe-utils
|
fcoe-utils
|
||||||
fdm_materials
|
fdm_materials
|
||||||
@@ -1560,6 +1666,7 @@ gexiv2
|
|||||||
gfbgraph
|
gfbgraph
|
||||||
gflags
|
gflags
|
||||||
gftp
|
gftp
|
||||||
|
ghc
|
||||||
ghostscript
|
ghostscript
|
||||||
gimp
|
gimp
|
||||||
git
|
git
|
||||||
@@ -1691,6 +1798,7 @@ gtkmm2
|
|||||||
gtkmm3
|
gtkmm3
|
||||||
gtksourceview
|
gtksourceview
|
||||||
gtkspell3
|
gtkspell3
|
||||||
|
gtkwave
|
||||||
guile
|
guile
|
||||||
gupnp-av
|
gupnp-av
|
||||||
gutenprint
|
gutenprint
|
||||||
@@ -1706,7 +1814,9 @@ hammock
|
|||||||
haproxy
|
haproxy
|
||||||
hardlink
|
hardlink
|
||||||
harfbuzz
|
harfbuzz
|
||||||
|
haskell-random
|
||||||
hdf5
|
hdf5
|
||||||
|
hdmedians
|
||||||
hdparm
|
hdparm
|
||||||
heat
|
heat
|
||||||
helloworld
|
helloworld
|
||||||
@@ -1718,6 +1828,7 @@ hicolor-icon-theme
|
|||||||
hiredis
|
hiredis
|
||||||
hold
|
hold
|
||||||
home-assistant
|
home-assistant
|
||||||
|
home-assistant-frontend
|
||||||
horizon
|
horizon
|
||||||
horovod
|
horovod
|
||||||
hostname
|
hostname
|
||||||
@@ -1757,6 +1868,7 @@ iftop
|
|||||||
igt-gpu-tools
|
igt-gpu-tools
|
||||||
ilmbase
|
ilmbase
|
||||||
image
|
image
|
||||||
|
imageio
|
||||||
imagesize
|
imagesize
|
||||||
imapfilter
|
imapfilter
|
||||||
imlib2
|
imlib2
|
||||||
@@ -1769,6 +1881,7 @@ init-rdahead
|
|||||||
inkscape
|
inkscape
|
||||||
inotify-tools
|
inotify-tools
|
||||||
intel-cmt-cat
|
intel-cmt-cat
|
||||||
|
intel-compute-runtime
|
||||||
intel-gmmlib
|
intel-gmmlib
|
||||||
intel-graphics-compiler
|
intel-graphics-compiler
|
||||||
intel-hybrid-driver
|
intel-hybrid-driver
|
||||||
@@ -1851,6 +1964,7 @@ kactivitymanagerd
|
|||||||
kafka-dep
|
kafka-dep
|
||||||
kalarm
|
kalarm
|
||||||
kalarmcal
|
kalarmcal
|
||||||
|
kalgebra
|
||||||
kamera
|
kamera
|
||||||
kanagram
|
kanagram
|
||||||
kapidox
|
kapidox
|
||||||
@@ -1942,6 +2056,7 @@ kgeography
|
|||||||
kget
|
kget
|
||||||
kglobalaccel
|
kglobalaccel
|
||||||
kgoldrunner
|
kgoldrunner
|
||||||
|
kgpg
|
||||||
kguiaddons
|
kguiaddons
|
||||||
khal
|
khal
|
||||||
khangman
|
khangman
|
||||||
@@ -2079,6 +2194,7 @@ lcov
|
|||||||
ldacBT
|
ldacBT
|
||||||
ldap3
|
ldap3
|
||||||
ldb
|
ldb
|
||||||
|
ldc
|
||||||
ledmon
|
ledmon
|
||||||
lensfun
|
lensfun
|
||||||
less
|
less
|
||||||
@@ -2209,6 +2325,7 @@ libkipi
|
|||||||
libkleo
|
libkleo
|
||||||
libkmahjongg
|
libkmahjongg
|
||||||
libkomparediff2
|
libkomparediff2
|
||||||
|
libksane
|
||||||
libksba
|
libksba
|
||||||
libkscreen
|
libkscreen
|
||||||
libksieve
|
libksieve
|
||||||
@@ -2264,6 +2381,7 @@ libqmi
|
|||||||
libqtxdg
|
libqtxdg
|
||||||
libqxp
|
libqxp
|
||||||
librabbitmq
|
librabbitmq
|
||||||
|
libreoffice
|
||||||
librepo
|
librepo
|
||||||
librevenge
|
librevenge
|
||||||
librsvg
|
librsvg
|
||||||
@@ -2354,15 +2472,15 @@ linux-hyperv
|
|||||||
linux-hyperv-lts
|
linux-hyperv-lts
|
||||||
linux-iot-lts2017-preempt-rt
|
linux-iot-lts2017-preempt-rt
|
||||||
linux-iot-lts2018
|
linux-iot-lts2018
|
||||||
|
linux-iot-lts2018-preempt-rt
|
||||||
|
linux-iot-lts2019
|
||||||
linux-kata
|
linux-kata
|
||||||
linux-kvm
|
linux-kvm
|
||||||
linux-libc-headers
|
linux-libc-headers
|
||||||
linux-lts
|
|
||||||
linux-lts2017
|
linux-lts2017
|
||||||
linux-lts2018
|
linux-lts2018
|
||||||
linux-networktest
|
linux-networktest
|
||||||
linux-oracle
|
linux-oracle
|
||||||
linux-pk414-preempt-rt
|
|
||||||
linux-preempt-rt
|
linux-preempt-rt
|
||||||
linux-steam-integration
|
linux-steam-integration
|
||||||
linux-tools
|
linux-tools
|
||||||
@@ -2485,6 +2603,7 @@ mpfr
|
|||||||
mpg123
|
mpg123
|
||||||
mpi4py
|
mpi4py
|
||||||
mpmath
|
mpmath
|
||||||
|
mpv
|
||||||
mraa
|
mraa
|
||||||
msgpack
|
msgpack
|
||||||
msm
|
msm
|
||||||
@@ -2512,10 +2631,12 @@ mycroft-core
|
|||||||
mypaint-brushes
|
mypaint-brushes
|
||||||
mypy
|
mypy
|
||||||
mypy_extensions
|
mypy_extensions
|
||||||
|
mysqltcl
|
||||||
mythes
|
mythes
|
||||||
nagios-plugins
|
nagios-plugins
|
||||||
nano
|
nano
|
||||||
nasm
|
nasm
|
||||||
|
natsort
|
||||||
nautilus
|
nautilus
|
||||||
nbconvert
|
nbconvert
|
||||||
nbformat
|
nbformat
|
||||||
@@ -2525,6 +2646,7 @@ ncurses
|
|||||||
ncurses-compat
|
ncurses-compat
|
||||||
ndctl
|
ndctl
|
||||||
ndg_httpsclient
|
ndg_httpsclient
|
||||||
|
ndpi
|
||||||
neofetch
|
neofetch
|
||||||
neomutt
|
neomutt
|
||||||
neon
|
neon
|
||||||
@@ -2549,6 +2671,7 @@ nfs4-acl-tools
|
|||||||
nftables
|
nftables
|
||||||
nghttp2
|
nghttp2
|
||||||
nginx
|
nginx
|
||||||
|
nginx-mainline
|
||||||
nicstat
|
nicstat
|
||||||
ninja
|
ninja
|
||||||
nload
|
nload
|
||||||
@@ -2562,6 +2685,7 @@ nose-cover3
|
|||||||
nose-parameterized
|
nose-parameterized
|
||||||
nosexcover
|
nosexcover
|
||||||
nosync
|
nosync
|
||||||
|
not-ffmpeg
|
||||||
notebook
|
notebook
|
||||||
notmuch
|
notmuch
|
||||||
noto-cjk
|
noto-cjk
|
||||||
@@ -2575,6 +2699,7 @@ nss
|
|||||||
nss-altfiles
|
nss-altfiles
|
||||||
nss-pam-ldapd
|
nss-pam-ldapd
|
||||||
ntfs-3g
|
ntfs-3g
|
||||||
|
ntl
|
||||||
ntlm-auth
|
ntlm-auth
|
||||||
ntp
|
ntp
|
||||||
ntplib
|
ntplib
|
||||||
@@ -2608,6 +2733,7 @@ open-vm-tools
|
|||||||
openQA
|
openQA
|
||||||
openal-soft
|
openal-soft
|
||||||
openblas
|
openblas
|
||||||
|
opencl-clang
|
||||||
openconnect
|
openconnect
|
||||||
opencv
|
opencv
|
||||||
openexr
|
openexr
|
||||||
@@ -2638,6 +2764,7 @@ os-autoinst
|
|||||||
os-brick
|
os-brick
|
||||||
os-client-config
|
os-client-config
|
||||||
os-ken
|
os-ken
|
||||||
|
os-resource-classes
|
||||||
os-service-types
|
os-service-types
|
||||||
os-testr
|
os-testr
|
||||||
os-traits
|
os-traits
|
||||||
@@ -2707,6 +2834,7 @@ parted
|
|||||||
pass
|
pass
|
||||||
passlib
|
passlib
|
||||||
patch
|
patch
|
||||||
|
patchelf
|
||||||
patchutils
|
patchutils
|
||||||
pathlib
|
pathlib
|
||||||
pathlib2
|
pathlib2
|
||||||
@@ -2719,6 +2847,7 @@ pciutils
|
|||||||
pcmanfm-qt
|
pcmanfm-qt
|
||||||
pcre
|
pcre
|
||||||
pcre2
|
pcre2
|
||||||
|
pcsc-lite
|
||||||
pdns
|
pdns
|
||||||
pdns-recursor
|
pdns-recursor
|
||||||
pecan
|
pecan
|
||||||
@@ -2749,6 +2878,7 @@ perl-Audio-FLAC-Header
|
|||||||
perl-Audio-Musepack
|
perl-Audio-Musepack
|
||||||
perl-Audio-Scan
|
perl-Audio-Scan
|
||||||
perl-Audio-Wav
|
perl-Audio-Wav
|
||||||
|
perl-Authen-SASL
|
||||||
perl-B-Hooks-EndOfScope
|
perl-B-Hooks-EndOfScope
|
||||||
perl-B-Hooks-OP-Check
|
perl-B-Hooks-OP-Check
|
||||||
perl-B-Keywords
|
perl-B-Keywords
|
||||||
@@ -2854,6 +2984,7 @@ perl-Data-Page
|
|||||||
perl-Data-Password
|
perl-Data-Password
|
||||||
perl-Data-Printer
|
perl-Data-Printer
|
||||||
perl-Data-Random
|
perl-Data-Random
|
||||||
|
perl-Data-Section
|
||||||
perl-Data-Serializer
|
perl-Data-Serializer
|
||||||
perl-Data-Structure-Util
|
perl-Data-Structure-Util
|
||||||
perl-Data-Uniqid
|
perl-Data-Uniqid
|
||||||
@@ -3204,6 +3335,7 @@ perl-Set-Scalar
|
|||||||
perl-Smart-Comments
|
perl-Smart-Comments
|
||||||
perl-Socket-MsgHdr
|
perl-Socket-MsgHdr
|
||||||
perl-Socket6
|
perl-Socket6
|
||||||
|
perl-Software-License
|
||||||
perl-Sort-Key
|
perl-Sort-Key
|
||||||
perl-Sort-Naturally
|
perl-Sort-Naturally
|
||||||
perl-Sort-Versions
|
perl-Sort-Versions
|
||||||
@@ -3388,6 +3520,13 @@ pexpect
|
|||||||
phonon
|
phonon
|
||||||
phoronix-test-suite
|
phoronix-test-suite
|
||||||
php
|
php
|
||||||
|
php-imagick
|
||||||
|
php-mailparse
|
||||||
|
php-redis
|
||||||
|
php-timezonedb
|
||||||
|
php-xdebug
|
||||||
|
php-yaml
|
||||||
|
php-zip
|
||||||
pickleshare
|
pickleshare
|
||||||
picmi
|
picmi
|
||||||
picocom
|
picocom
|
||||||
@@ -3424,9 +3563,10 @@ ply
|
|||||||
plzip
|
plzip
|
||||||
pmdk
|
pmdk
|
||||||
polkit
|
polkit
|
||||||
|
polkit-kde-agent
|
||||||
polkit-qt
|
polkit-qt
|
||||||
poppler
|
poppler
|
||||||
poppler-data
|
poppler-data-clr-rename
|
||||||
popt
|
popt
|
||||||
portaudio
|
portaudio
|
||||||
portend
|
portend
|
||||||
@@ -3484,6 +3624,7 @@ pycadf
|
|||||||
pycairo
|
pycairo
|
||||||
pycam
|
pycam
|
||||||
pycodestyle
|
pycodestyle
|
||||||
|
pycosat
|
||||||
pycparser
|
pycparser
|
||||||
pycrypto
|
pycrypto
|
||||||
pycurl
|
pycurl
|
||||||
@@ -3509,6 +3650,7 @@ pyliblzma
|
|||||||
pylint
|
pylint
|
||||||
pymemcache
|
pymemcache
|
||||||
pymongo
|
pymongo
|
||||||
|
pyotherside
|
||||||
pyotp
|
pyotp
|
||||||
pypandoc
|
pypandoc
|
||||||
pyparsing
|
pyparsing
|
||||||
@@ -3716,7 +3858,9 @@ rsa
|
|||||||
rsync
|
rsync
|
||||||
rsyslog
|
rsyslog
|
||||||
rt-tests
|
rt-tests
|
||||||
|
rtkit
|
||||||
rtslib-fb
|
rtslib-fb
|
||||||
|
rttr
|
||||||
ruamel-yaml
|
ruamel-yaml
|
||||||
ruby
|
ruby
|
||||||
runc
|
runc
|
||||||
@@ -3752,6 +3896,7 @@ seaborn
|
|||||||
seahorse
|
seahorse
|
||||||
secretstorage
|
secretstorage
|
||||||
sed
|
sed
|
||||||
|
segno
|
||||||
selenium
|
selenium
|
||||||
semantic_version
|
semantic_version
|
||||||
seqdiag
|
seqdiag
|
||||||
@@ -3783,7 +3928,9 @@ smart_open
|
|||||||
smartcols
|
smartcols
|
||||||
smartmontools
|
smartmontools
|
||||||
smmap2
|
smmap2
|
||||||
|
snabb
|
||||||
snappy
|
snappy
|
||||||
|
snitun
|
||||||
snowballstemmer
|
snowballstemmer
|
||||||
socat
|
socat
|
||||||
sof-crosstool-ng
|
sof-crosstool-ng
|
||||||
@@ -3806,12 +3953,18 @@ speexdsp
|
|||||||
sphinx-feature-classification
|
sphinx-feature-classification
|
||||||
sphinx_rtd_theme
|
sphinx_rtd_theme
|
||||||
sphinxcontrib-apidoc
|
sphinxcontrib-apidoc
|
||||||
|
sphinxcontrib-applehelp
|
||||||
sphinxcontrib-bibtex
|
sphinxcontrib-bibtex
|
||||||
sphinxcontrib-blockdiag
|
sphinxcontrib-blockdiag
|
||||||
|
sphinxcontrib-devhelp
|
||||||
|
sphinxcontrib-htmlhelp
|
||||||
sphinxcontrib-httpdomain
|
sphinxcontrib-httpdomain
|
||||||
|
sphinxcontrib-jsmath
|
||||||
sphinxcontrib-newsfeed
|
sphinxcontrib-newsfeed
|
||||||
sphinxcontrib-programoutput
|
sphinxcontrib-programoutput
|
||||||
|
sphinxcontrib-qthelp
|
||||||
sphinxcontrib-seqdiag
|
sphinxcontrib-seqdiag
|
||||||
|
sphinxcontrib-serializinghtml
|
||||||
sphinxcontrib-spelling
|
sphinxcontrib-spelling
|
||||||
sphinxcontrib-trio
|
sphinxcontrib-trio
|
||||||
sphinxcontrib-websupport
|
sphinxcontrib-websupport
|
||||||
@@ -3835,6 +3988,7 @@ startup-notification
|
|||||||
statsd
|
statsd
|
||||||
statsmodels
|
statsmodels
|
||||||
stellarium
|
stellarium
|
||||||
|
step
|
||||||
stestr
|
stestr
|
||||||
stevedore
|
stevedore
|
||||||
stow
|
stow
|
||||||
@@ -3847,6 +4001,7 @@ subversion
|
|||||||
sudo
|
sudo
|
||||||
suds-jurko
|
suds-jurko
|
||||||
sundials
|
sundials
|
||||||
|
supertuxkart
|
||||||
sure
|
sure
|
||||||
suricata
|
suricata
|
||||||
svg.path
|
svg.path
|
||||||
@@ -3931,6 +4086,7 @@ tinyxml2
|
|||||||
tiptop
|
tiptop
|
||||||
tk
|
tk
|
||||||
tmux
|
tmux
|
||||||
|
todoist
|
||||||
tokyocabinet
|
tokyocabinet
|
||||||
toolz
|
toolz
|
||||||
tooz
|
tooz
|
||||||
@@ -4006,6 +4162,7 @@ virt-manager
|
|||||||
virt-viewer
|
virt-viewer
|
||||||
virtualenv
|
virtualenv
|
||||||
vlc
|
vlc
|
||||||
|
volk
|
||||||
volume_key
|
volume_key
|
||||||
voluptuous
|
voluptuous
|
||||||
voluptuous-serialize
|
voluptuous-serialize
|
||||||
@@ -4127,6 +4284,7 @@ xterm
|
|||||||
xtrans
|
xtrans
|
||||||
xvfb-run
|
xvfb-run
|
||||||
xwd
|
xwd
|
||||||
|
xwdrun
|
||||||
xwininfo
|
xwininfo
|
||||||
xz
|
xz
|
||||||
yajl
|
yajl
|
||||||
|
|||||||
+348
@@ -0,0 +1,348 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
import sys
|
||||||
|
import tempfile
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
header = list()
|
||||||
|
files = list()
|
||||||
|
files_chunks = dict() # dict to list
|
||||||
|
files_header = dict() # dict to list
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def push_chunk(file, chunk):
|
||||||
|
global files_chunks
|
||||||
|
|
||||||
|
if len(chunk) == 0:
|
||||||
|
return
|
||||||
|
|
||||||
|
if file not in files_chunks:
|
||||||
|
files_chunks[file] = list()
|
||||||
|
|
||||||
|
files_chunks[file].append(chunk)
|
||||||
|
|
||||||
|
|
||||||
|
def parse_patch(lines):
|
||||||
|
global header
|
||||||
|
global files
|
||||||
|
global files_chunks
|
||||||
|
global files_header
|
||||||
|
|
||||||
|
phase = 0
|
||||||
|
|
||||||
|
currentfile = ""
|
||||||
|
currentchunk = list()
|
||||||
|
|
||||||
|
|
||||||
|
for line in lines:
|
||||||
|
line = line.replace("\n","")
|
||||||
|
|
||||||
|
if line.startswith("diff --git"):
|
||||||
|
|
||||||
|
push_chunk(currentfile, currentchunk)
|
||||||
|
currentchunk = list()
|
||||||
|
|
||||||
|
filename = line.replace("diff --git","")
|
||||||
|
index= filename.find("b/")
|
||||||
|
if index >= 0:
|
||||||
|
filename = filename[index:].strip()
|
||||||
|
currentfile = filename
|
||||||
|
files.append(currentfile)
|
||||||
|
phase = 1
|
||||||
|
|
||||||
|
if line.startswith("@@"):
|
||||||
|
push_chunk(currentfile, currentchunk)
|
||||||
|
currentchunk = list()
|
||||||
|
phase = 2
|
||||||
|
|
||||||
|
|
||||||
|
if phase == 0:
|
||||||
|
header.append(line)
|
||||||
|
if phase == 1:
|
||||||
|
if currentfile not in files_header:
|
||||||
|
files_header[currentfile] = list()
|
||||||
|
files_header[currentfile].append(line)
|
||||||
|
if phase == 2:
|
||||||
|
currentchunk.append(line)
|
||||||
|
|
||||||
|
push_chunk(currentfile, currentchunk)
|
||||||
|
currentchunk = list()
|
||||||
|
|
||||||
|
def print_all():
|
||||||
|
global header
|
||||||
|
global files
|
||||||
|
global files_chunks
|
||||||
|
global files_header
|
||||||
|
|
||||||
|
for line in header:
|
||||||
|
print(line)
|
||||||
|
for file in files:
|
||||||
|
for line in files_header[file]:
|
||||||
|
print(line)
|
||||||
|
if file in files_chunks:
|
||||||
|
for chunk in files_chunks[file]:
|
||||||
|
for line in chunk:
|
||||||
|
print(line)
|
||||||
|
|
||||||
|
|
||||||
|
def zap_entire_file(filename):
|
||||||
|
global header
|
||||||
|
global files
|
||||||
|
global files_chunks
|
||||||
|
global files_header
|
||||||
|
if filename in files:
|
||||||
|
files.remove(filename)
|
||||||
|
|
||||||
|
def zap_entire_file_end(filename):
|
||||||
|
global header
|
||||||
|
global files
|
||||||
|
global files_chunks
|
||||||
|
global files_header
|
||||||
|
for file in files:
|
||||||
|
if file.endswith(filename):
|
||||||
|
files.remove(file)
|
||||||
|
|
||||||
|
def zap_line_in_file(filename, match):
|
||||||
|
global header
|
||||||
|
global files
|
||||||
|
global files_chunks
|
||||||
|
global files_header
|
||||||
|
for file in files:
|
||||||
|
if file.endswith(filename):
|
||||||
|
for chunk in files_chunks[filename]:
|
||||||
|
to_delete = list()
|
||||||
|
for line in chunk:
|
||||||
|
if line == ("+" + match):
|
||||||
|
to_delete.append(line)
|
||||||
|
if line == ("-" + match):
|
||||||
|
to_delete.append(line)
|
||||||
|
for line in to_delete:
|
||||||
|
chunk.remove(line)
|
||||||
|
|
||||||
|
|
||||||
|
def zap_line_in_file_start(filename, match):
|
||||||
|
global header
|
||||||
|
global files
|
||||||
|
global files_chunks
|
||||||
|
global files_header
|
||||||
|
|
||||||
|
for file in files:
|
||||||
|
if file.endswith(filename):
|
||||||
|
for chunk in files_chunks[file]:
|
||||||
|
to_remove = list()
|
||||||
|
for line in chunk:
|
||||||
|
if line.startswith("+" + match):
|
||||||
|
to_remove.append(line)
|
||||||
|
if line.startswith("-" + match):
|
||||||
|
to_remove.append(line)
|
||||||
|
for line in to_remove:
|
||||||
|
chunk.remove(line)
|
||||||
|
|
||||||
|
def zap_plus_line_in_file(filename):
|
||||||
|
global header
|
||||||
|
global files
|
||||||
|
global files_chunks
|
||||||
|
global files_header
|
||||||
|
|
||||||
|
for file in files:
|
||||||
|
if file.endswith(filename):
|
||||||
|
for chunk in files_chunks[file]:
|
||||||
|
to_remove = list()
|
||||||
|
for line in chunk:
|
||||||
|
if line.startswith("+"):
|
||||||
|
to_remove.append(line)
|
||||||
|
for line in to_remove:
|
||||||
|
chunk.remove(line)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def chunk_empty(chunk):
|
||||||
|
for line in chunk:
|
||||||
|
if len(line) > 0 and line[0] == '+':
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
|
def zap_empty_chunks():
|
||||||
|
global header
|
||||||
|
global files
|
||||||
|
global files_chunks
|
||||||
|
global files_header
|
||||||
|
files_to_remove = list()
|
||||||
|
for file in files:
|
||||||
|
if file not in files_chunks:
|
||||||
|
files.remove(file)
|
||||||
|
continue
|
||||||
|
to_remove = list()
|
||||||
|
for chunk in files_chunks[file]:
|
||||||
|
if chunk_empty(chunk):
|
||||||
|
to_remove.append(chunk)
|
||||||
|
for c in to_remove:
|
||||||
|
files_chunks[file].remove(c)
|
||||||
|
if len(files_chunks[file]) == 0:
|
||||||
|
files_to_remove.append(file)
|
||||||
|
|
||||||
|
for file in files_to_remove:
|
||||||
|
files.remove(file)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
filename = sys.argv[1]
|
||||||
|
|
||||||
|
with open (filename, "r") as myfile:
|
||||||
|
lines = myfile.readlines()
|
||||||
|
else:
|
||||||
|
output = subprocess.check_output("git show", shell=True).decode("latin-1")
|
||||||
|
lines = output.split("\n")
|
||||||
|
|
||||||
|
parse_patch(lines)
|
||||||
|
|
||||||
|
zap_entire_file("b/release")
|
||||||
|
zap_entire_file("b/buildreq_cache")
|
||||||
|
zap_entire_file("b/.gitignore")
|
||||||
|
zap_entire_file("b/upstream")
|
||||||
|
zap_entire_file("b/NEWS")
|
||||||
|
zap_entire_file("b/ChangeLog")
|
||||||
|
zap_entire_file_end("xz.sig")
|
||||||
|
zap_entire_file_end("gz.sig")
|
||||||
|
zap_entire_file_end("bz2.sig")
|
||||||
|
|
||||||
|
zap_line_in_file("b/testresults", "Total : 0")
|
||||||
|
zap_line_in_file("b/testresults", "Pass : 0")
|
||||||
|
zap_line_in_file("b/testresults", "Fail : 0")
|
||||||
|
zap_line_in_file("b/testresults", "XFail : 0")
|
||||||
|
zap_line_in_file("b/testresults", "Skip : 0")
|
||||||
|
|
||||||
|
zap_line_in_file("b/requires_ban", "#FOO")
|
||||||
|
zap_line_in_file("b/Makefile", "ARCHIVES = ")
|
||||||
|
zap_line_in_file("b/Makefile", "include ../common/Makefile.common")
|
||||||
|
zap_line_in_file("b/Makefile", "")
|
||||||
|
|
||||||
|
zap_line_in_file_start(".spec", "Release :")
|
||||||
|
zap_line_in_file_start(".spec", "Source99 :")
|
||||||
|
zap_line_in_file_start(".spec", "Source0 :")
|
||||||
|
zap_line_in_file_start(".spec", "export SOURCE_DATE_EPOCH")
|
||||||
|
zap_line_in_file_start(".spec", "%setup -q -n ")
|
||||||
|
zap_line_in_file_start(".spec", "URL :")
|
||||||
|
zap_line_in_file_start(".spec", "Version :")
|
||||||
|
zap_line_in_file_start(".spec", "Group : Development/Tools")
|
||||||
|
zap_line_in_file_start(".spec", "No detailed description available")
|
||||||
|
zap_line_in_file_start(".spec", "bin components for the")
|
||||||
|
zap_line_in_file_start(".spec", "dev components for the")
|
||||||
|
zap_line_in_file_start(".spec", "lib components for the")
|
||||||
|
zap_line_in_file_start(".spec", "data components for the")
|
||||||
|
zap_line_in_file_start(".spec", "locales components for the")
|
||||||
|
zap_line_in_file_start(".spec", "license components for the")
|
||||||
|
zap_line_in_file_start(".spec", "Group: Default")
|
||||||
|
zap_line_in_file_start(".spec", "export http_proxy=http://127.0.0.1:9/")
|
||||||
|
zap_line_in_file_start(".spec", "export https_proxy=http://127.0.0.1:9/")
|
||||||
|
zap_line_in_file_start(".spec", "export ftp_proxy=http://127.0.0.1:9/")
|
||||||
|
zap_line_in_file_start(".spec", "export no_proxy=localhost,127.0.0.1,0.0.0.0")
|
||||||
|
zap_line_in_file_start(".spec", "Summary:")
|
||||||
|
zap_line_in_file_start(".spec", "Group: Development")
|
||||||
|
zap_line_in_file_start(".spec", "Group: Binaries")
|
||||||
|
zap_line_in_file_start(".spec", "Group: Data")
|
||||||
|
zap_line_in_file_start(".spec", "Group: Libraries")
|
||||||
|
zap_line_in_file_start(".spec", "export LANG=C")
|
||||||
|
zap_line_in_file_start(".spec", "%description lib")
|
||||||
|
zap_line_in_file_start(".spec", "%description bin")
|
||||||
|
zap_line_in_file_start(".spec", "%description data")
|
||||||
|
zap_line_in_file_start(".spec", "%description locales")
|
||||||
|
zap_line_in_file_start(".spec", "%description dev")
|
||||||
|
zap_line_in_file_start(".spec", "%description license")
|
||||||
|
|
||||||
|
zap_line_in_file_start("b/Makefile", "URL =")
|
||||||
|
zap_line_in_file_start("b/Makefile", "PKG_NAME :=")
|
||||||
|
|
||||||
|
zap_line_in_file("b/options.conf", "archives = ")
|
||||||
|
zap_line_in_file("b/options.conf", "giturl = ")
|
||||||
|
zap_line_in_file("b/options.conf", "[package]")
|
||||||
|
zap_line_in_file("b/options.conf", "")
|
||||||
|
zap_line_in_file("b/options.conf", "[autospec]")
|
||||||
|
zap_line_in_file("b/options.conf", "# build 32 bit libraries")
|
||||||
|
zap_line_in_file("b/options.conf", "32bit = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# allow package to build with test failures")
|
||||||
|
zap_line_in_file("b/options.conf", "allow_test_failures = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# unset %build ld_as_needed variable")
|
||||||
|
zap_line_in_file("b/options.conf", "asneeded = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# this package is trusted enough to automatically update (used by other tools)")
|
||||||
|
zap_line_in_file("b/options.conf", "autoupdate = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# extend flags with '-std=gnu++98")
|
||||||
|
zap_line_in_file("b/options.conf", "broken_c++ = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# disable parallelization during build")
|
||||||
|
zap_line_in_file("b/options.conf", "broken_parallel_build = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# this package is a library compatability package and only ships versioned library files")
|
||||||
|
zap_line_in_file("b/options.conf", "compat = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# set conservative build flags")
|
||||||
|
zap_line_in_file("b/options.conf", "conservative_flags = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# dev package requires the extras to be installed")
|
||||||
|
zap_line_in_file("b/options.conf", "dev_requires_extras = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# pass -ffast-math to compiler")
|
||||||
|
zap_line_in_file("b/options.conf", "fast-math = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# optimize build for speed over size")
|
||||||
|
zap_line_in_file("b/options.conf", "funroll-loops = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# set flags to smallest -02 flags possible")
|
||||||
|
zap_line_in_file("b/options.conf", "insecure_build = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# do not remove static libraries")
|
||||||
|
zap_line_in_file("b/options.conf", "keepstatic = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# do not require autostart subpackage")
|
||||||
|
zap_line_in_file("b/options.conf", "no_autostart = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# disable stripping binaries")
|
||||||
|
zap_line_in_file("b/options.conf", "nostrip = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# optimize build for size over speed")
|
||||||
|
zap_line_in_file("b/options.conf", "optimize_size = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# set profile for pgo")
|
||||||
|
zap_line_in_file("b/options.conf", "pgo = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# set flags for security-sensitive builds")
|
||||||
|
zap_line_in_file("b/options.conf", "security_sensitive = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# do not run test suite")
|
||||||
|
zap_line_in_file("b/options.conf", "skip_tests = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# add .so files to the lib package instead of dev")
|
||||||
|
zap_line_in_file("b/options.conf", "so_to_lib = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# configure build for avx2")
|
||||||
|
zap_line_in_file("b/options.conf", "use_avx2 = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# configure build for avx512")
|
||||||
|
zap_line_in_file("b/options.conf", "use_avx512 = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# add clang flags")
|
||||||
|
zap_line_in_file("b/options.conf", "use_clang = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# configure build for lto")
|
||||||
|
zap_line_in_file("b/options.conf", "use_lto = false")
|
||||||
|
zap_line_in_file("b/options.conf", "# require package verification for build")
|
||||||
|
zap_line_in_file("b/options.conf", "verify_required = true")
|
||||||
|
|
||||||
|
zap_line_in_file("b/buildreq_add", "# This file contains additional build requirements that did not get")
|
||||||
|
zap_line_in_file("b/buildreq_add", "# picked up automatically. One name per line, no whitespace.")
|
||||||
|
zap_line_in_file("b/buildreq_ban", "# This file contains build requirements that get picked up but are")
|
||||||
|
zap_line_in_file("b/buildreq_ban", "# undesirable. One entry per line, no whitespace.")
|
||||||
|
|
||||||
|
|
||||||
|
zap_line_in_file("b/excludes", "# This file contains the output files that need %exclude. Full path")
|
||||||
|
zap_line_in_file("b/excludes", "# names, one per line.")
|
||||||
|
|
||||||
|
zap_line_in_file("b/pkgconfig_add", "# This file contains additional pkgconfig build requirements that did")
|
||||||
|
zap_line_in_file("b/pkgconfig_add", "# not get picked up automatically. One name per line, no whitespace.")
|
||||||
|
zap_line_in_file("b/pkgconfig_ban", "# This file contains pkgconfig build requirements that get picked up")
|
||||||
|
zap_line_in_file("b/pkgconfig_ban", "# but are undesirable. One entry per line, no whitespace.")
|
||||||
|
zap_line_in_file("b/requires_add", "# This file contains additional runtime requirements that did not get")
|
||||||
|
zap_line_in_file("b/requires_add", "# picked up automatically. One name per line, no whitespace.")
|
||||||
|
zap_line_in_file("b/requires_ban", "# This file contains runtime requirements that get picked up but are")
|
||||||
|
zap_line_in_file("b/requires_ban", "# undesirable. One entry per line, no whitespace.")
|
||||||
|
|
||||||
|
zap_line_in_file_start(".spec", "Summary : No detailed summary available")
|
||||||
|
|
||||||
|
zap_plus_line_in_file("symbols")
|
||||||
|
zap_plus_line_in_file("symbols32")
|
||||||
|
|
||||||
|
zap_entire_file("b/whatrequires")
|
||||||
|
|
||||||
|
zap_empty_chunks()
|
||||||
|
|
||||||
|
print_all()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
with tempfile.TemporaryDirectory() as workingdir:
|
||||||
|
main()
|
||||||
|
|
||||||
Reference in New Issue
Block a user