Commit graph

216 commits

Author SHA1 Message Date
Muhammad Alfi Syahrin
0e560c38a7
Add aerc and compiz to ignore 2025-04-03 22:32:31 +07:00
Tracey Clark
189ff54db3
common/Scripts/worklog.py: Add listing of PR sync notes (#4729)
**Summary**

Add `sync-note-prs` to list PRs with the `Topic: Sync Notes` label.

**Test Plan**

```console
./common/Scripts/worklog.py highlights "1 week ago" -f tty
./common/Scripts/worklog.py highlights "1 week ago" -f md
./common/Scripts/worklog.py highlights "1 week ago" -f html
```

**Checklist**

- [x] ~~Package was built and tested against unstable~~
- [ ] ~~This change could gainfully be listed in the weekly sync notes
once merged~~ <!-- Write an appropriate message in the Summary section,
then add the "Topic: Sync Notes" label -->
2025-03-05 18:54:54 -06:00
Muhammad Alfi Syahrin
68fd9f5429
appstream_ignored.txt: Add more ignored packages 2025-02-28 10:23:56 +07:00
Silke Hofstra
26d8f7bdea common/Scripts/worklog.py: Add listing of PR sync notes
Add `highlights` to list PRs with the `Topic: Sync Notes` label.
2025-02-26 20:15:18 +01:00
Muhammad Alfi Syahrin
dbcc544f46
appstream_ignored_packages.txt : Add more ignored packages 2025-02-24 14:49:22 +07:00
Evan Maddock
c57a20549c
yauto: Handle PKG_CHECK_MODULES that define multiple modules (#5075)
**Summary**

The PKG_CHECK_MODULES macro in configure.ac files can define more than
one module (see
[here](https://autotools.info/pkgconfig/pkg_check_modules.html)).
Previously all the entries were simply added into the same
`pkgconfig()`.
This properly separates them into their own entries and also accepts
"<=" and "=" comparators (though these aren't used for anything except
detecting version definitions)

Also fix adding dependencies for combined configure.ac/Python projects

Old behaviour:
```
 go-task new -- gammastep https://gitlab.com/chinstrap/gammastep/-/archive/v2.0.9/gammastep-v2.0.9.tar.bz2
[...]
 yq '.builddeps' packages/g/gammastep/package.yml
- pkgconfig(libdrm)
- pkgconfig(x11)
- pkgconfig(xxf86vm)
- pkgconfig(xcb)
- pkgconfig(xcb-randr)
- pkgconfig(wayland-client wayland-scanner)
- pkgconfig(glib-2.0 gobject-2.0)
- pkgconfig(glib-2.0 gio-2.0)
```

New behaviour:
```
 go-task new -- gammastep https://gitlab.com/chinstrap/gammastep/-/archive/v2.0.9/gammastep-v2.0.9.tar.bz2
[...]
 yq '.builddeps' packages/g/gammastep/package.yml 
- pkgconfig(libdrm)
- pkgconfig(x11)
- pkgconfig(xxf86vm)
- pkgconfig(xcb)
- pkgconfig(xcb-randr)
- pkgconfig(wayland-client)
- pkgconfig(wayland-scanner)
- pkgconfig(glib-2.0)
- pkgconfig(gobject-2.0)
- pkgconfig(gio-2.0)
```


**Test Plan**

- `go-task new -- gammastep
https://gitlab.com/chinstrap/gammastep/-/archive/v2.0.9/gammastep-v2.0.9.tar.bz2`
produces correct build dependencies
- `go-task new -- rapidyml
https://github.com/biojppm/rapidyaml/archive/refs/tags/v0.7.2.tar.gz`
still works correctly
- `go-task new -- pip-tools
1ef453f10f/pip-tools-7.4.1.tar.gz`
still works correctly

**Checklist**

- [x] Package was built and tested against unstable
- [ ] This change could gainfully be listed in the weekly sync notes
once merged <!-- Write an appropriate message in the Summary section,
then add the "Topic: Sync Notes" label -->
2025-02-19 14:56:50 -05:00
Thomas Staudinger
a2bf42bc1d
yauto: Handle PKG_CHECK_MODULES that define multiple modules
**Summary**

The PKG_CHECK_MODULES macro in configure.ac files can define more than one module.
Previously all the entries were simply added into the same `pkgconfig()`.
This properly separates them into their own entries.

Also fix adding dependencies for combined configure.ac/Python projects

Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
2025-02-18 16:49:11 +01:00
Thomas Staudinger
c2e5aa6a72
get-py-deps: Fix flake8 errors
Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
2025-02-17 23:43:04 +01:00
Joey Riches
3b3cc27826 common/Scripts: fix logic error in get-py-deps.py
**Summary**
- We want unique elements in either normalized set
2025-02-16 16:26:39 +00:00
Joey Riches
bfc41ae29a common/Scripts: Attempt to show mismatched dependencies in get-py-deps
**Summary**
- Get the current rundeps removing the 'python-' prefix
  and comparing '-' and '_' equivalently compare against
  the required deps from pypi.
2025-02-16 14:26:12 +00:00
Thomas Staudinger
9383e41382
yauto: Fix adding pyproject.toml deps and only do it once
**Summary**

The previous change to pyproject.toml happened to only work for sources also using other, higher-priority build systems. The logic for adding the dependencies to PYTHON_MODULE recipes was still based on strings.

Additionaly the dependencies were added multiple times for each `pyproject.toml` or `setup.cfg file` found. Don't add additional dependencies if PEP 517 is already among known_types

Make sure the PEP517 dependencies are correctly added if the source also uses other build systems instead of wrapping them in pkgconfig()

Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
2025-02-11 22:14:56 +01:00
Joey Riches
5b872b96a0
yauto: Add extra python dependencies as DepObjects instead of string (#4919)
**Summary**

Add a method for including additional dependencies in `yauto` and use it
for the `pyproject.toml` dependencies instead of writing them as a
string.

Part of https://github.com/getsolus/packages/issues/4914

**Test Plan**
`
go-task new -- rapidyaml
https://github.com/biojppm/rapidyaml/archive/refs/tags/v0.7.2.tar.gz`
succeeds

**Checklist**

- [x] Package was built and tested against unstable
- [ ] This change could gainfully be listed in the weekly sync notes
once merged <!-- Write an appropriate message in the Summary section,
then add the "Topic: Sync Notes" label -->
2025-02-01 18:13:29 +00:00
Thomas Staudinger
1bcbf56272
yauto: Add extra python dependencies as DepObjects instead of string
Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
2025-01-27 19:58:28 +01:00
Joey Riches
ad0642fc89 common/Scripts: Add get-py-deps.py
**Summary**
- Prints a list of python dependencies from a package.yml
  or a .egg-info or .dist-info path
2025-01-23 20:08:23 +00:00
Muhammad Alfi Syahrin
6362e01e5d
**Summary** 2024-11-16 16:27:40 +07:00
Joey Riches
19d408b5fe common: Add gnome-user-share to ignored appstream packages 2024-11-06 21:55:20 +00:00
Joey Riches
ef80c7a0bb common: Add ignored gnome pkgs to appstream list 2024-11-06 21:51:05 +00:00
Thomas Staudinger
6dbf7e7152
yauto: Only scan "configure" files if they're text/plain
Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
2024-10-11 17:49:58 +02:00
Silke Hofstra
259fc120c8 common/Scripts/worklog.py: Deduplicate and sort security advisories 2024-09-27 23:16:04 +02:00
Silke Hofstra
2a5b970468 common/Scripts/worklog.py: Show GitHub security advisories
**Summary**

Show and link GitHub security advisories (GHSAs) in the worklow.
2024-09-25 19:01:47 +02:00
Hans Kelson
24cc25e319 common/Scripts/worklog.py: Fix missing whitespace
**Summary**
This is a simple fix fo a linter error which was causing failures in unrelated PRs.
2024-07-18 09:57:45 -04:00
Jakob Gezelius
c25aafc182
Add more packages to ignore list for appstream metadata 2024-07-18 17:52:46 +07:00
Silke Hofstra
c5c14dc7d6 worklog.py: Replace newlines in build comments in terminal 2024-07-13 16:43:28 +02:00
Muhammad Alfi Syahrin
e340a7f52a
Add more packages to appstream_ignored_packages.txt 2024-07-04 06:06:01 +07:00
Hans Kelson
2de33be2ac appstream_ignored_packages.txt: Add initial set of ignorable packages
**Summary**
Result of a quick pass of the current appstream progress report; ignoring obvious low-hanging fruit and providing an example of ignore file format.
2024-06-28 23:22:52 -04:00
Hans Kelson
1b6a8ddfb7 common/Scripts/check_appstream_progress: Add ignore list functionality
**Summary**
With this commit, the appstream checker can now ignore packages based on common/scripts/appstream_ignored_packages.txt.
2024-06-28 22:30:38 -04:00
Hans Kelson
9af5a49aae common/Scripts: Add a tool to check appstream metainfo progress in the repository
**Summary**
Usage of the script is documented in its --help.
Fixes #2394
2024-06-14 23:26:42 -04:00
Thomas Staudinger
96bf8c5dcb common: Rework update_stateless.sh script for monorepo
Also update STATELESSNESS file

Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
2024-05-30 01:00:14 +02:00
Joey Riches
a5f4f52602 Revert "gnome-shell-extension-appindicator: Update to 58"
This reverts commit 5988c3b2d1.

Obviously, this change brought in a bunch of unintended changes.
2024-04-22 20:34:54 +01:00
Joey Riches
5988c3b2d1 gnome-shell-extension-appindicator: Update to 58
**Summary**
[Changelog](https://github.com/ubuntu/gnome-shell-extension-appindicator/releases/tag/v58)
2024-04-21 11:58:27 +01:00
Rune Morling
bbdeaa24b8
common: Rework package-publish-safety-catches.sh to use the CI checks (#2050)
**Summary**

Run the CI checks in the safety catches instead of using a separate
implementation.

Depends on #2038. Resolves #1496.

**Test Plan**

Run `go-task run-safety-catches` on a branch that is ahead of main (with
these changes checked out):


![afbeelding](6e12562c-a1e0-4163-93b8-c2486faf11e9)

**Checklist**

- [x] ~~Package was built and tested against unstable~~
2024-04-19 22:04:30 +02:00
Rune Morling
fce274f095
worklog.py: Add CVE links and a security-updates command. (#2151)
**Summary**

- Add links to CVEs mentioned in the commits to the update output.
- Add a command for listing all updates that include security fixes.

**Test Plan**

```
$ ./common/Scripts/worklog.py security-updates "2024-03-29T17:45:11Z" --format=tty
5 security-updates:
wireshark 4.2.4-85 [@silkeh] [CVE-2024-2955]
capnproto 1.0.2-6 [@algent-al] [CVE-2023-48230]
golang 1.22.2-112 [@silkeh] [CVE-2023-45288]
xorg-server 21.1.12-100 [@EbonJaeger] [CVE-2024-31080, CVE-2024-31081, CVE-2024-31082, CVE-2024-31083]
xorg-xwayland 23.2.5-24 [@EbonJaeger] [CVE-2024-31080, CVE-2024-31081, CVE-2024-31083]
```

```
$ ./common/Scripts/worklog.py security-updates "2024-03-29T17:45:11Z" --format=md
5 security-updates:
- **wireshark** was updated to **4.2.4-85** ([@silkeh](5ad8e37aa8)). Includes security fixes for [CVE-2024-2955](https://nvd.nist.gov/vuln/detail/CVE-2024-2955).
- **capnproto** was updated to **1.0.2-6** ([@algent-al](7d0cc1e4bd)). Includes security fixes for [CVE-2023-48230](https://nvd.nist.gov/vuln/detail/CVE-2023-48230).
- **golang** was updated to **1.22.2-112** ([@silkeh](86bf291972)). Includes security fixes for [CVE-2023-45288](https://nvd.nist.gov/vuln/detail/CVE-2023-45288).
- **xorg-server** was updated to **21.1.12-100** ([@EbonJaeger](2145a6ba68)). Includes security fixes for [CVE-2024-31080](https://nvd.nist.gov/vuln/detail/CVE-2024-31080), [CVE-2024-31081](https://nvd.nist.gov/vuln/detail/CVE-2024-31081), [CVE-2024-31082](https://nvd.nist.gov/vuln/detail/CVE-2024-31082), [CVE-2024-31083](https://nvd.nist.gov/vuln/detail/CVE-2024-31083).
- **xorg-xwayland** was updated to **23.2.5-24** ([@EbonJaeger](7befcce416)). Includes security fixes for [CVE-2024-31080](https://nvd.nist.gov/vuln/detail/CVE-2024-31080), [CVE-2024-31081](https://nvd.nist.gov/vuln/detail/CVE-2024-31081), [CVE-2024-31083](https://nvd.nist.gov/vuln/detail/CVE-2024-31083).
```

```
$ ./common/Scripts/worklog.py security-updates "2024-03-29T17:45:11Z" --format=html
<p>5 security-updates:</p>
<ul>
<li><strong>wireshark</strong> was updated to <strong>4.2.4-85</strong> (<a href="5ad8e37aa8">@silkeh</a>). Includes security fixes for <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-2955">CVE-2024-2955</a>.</li>
<li><strong>capnproto</strong> was updated to <strong>1.0.2-6</strong> (<a href="7d0cc1e4bd">@algent-al</a>). Includes security fixes for <a href="https://nvd.nist.gov/vuln/detail/CVE-2023-48230">CVE-2023-48230</a>.</li>
<li><strong>golang</strong> was updated to <strong>1.22.2-112</strong> (<a href="86bf291972">@silkeh</a>). Includes security fixes for <a href="https://nvd.nist.gov/vuln/detail/CVE-2023-45288">CVE-2023-45288</a>.</li>
<li><strong>xorg-server</strong> was updated to <strong>21.1.12-100</strong> (<a href="2145a6ba68">@EbonJaeger</a>). Includes security fixes for <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-31080">CVE-2024-31080</a>, <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-31081">CVE-2024-31081</a>, <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-31082">CVE-2024-31082</a>, <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-31083">CVE-2024-31083</a>.</li>
<li><strong>xorg-xwayland</strong> was updated to <strong>23.2.5-24</strong> (<a href="7befcce416">@EbonJaeger</a>). Includes security fixes for <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-31080">CVE-2024-31080</a>, <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-31081">CVE-2024-31081</a>, <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-31083">CVE-2024-31083</a>.</li>
</ul>
```

**Checklist**

- [x] ~~Package was built and tested against unstable~~
2024-04-17 20:55:05 +02:00
Rune Morling
1a66ee43f0
yauto.py: Remove comment block that fails flake8
**Summary**
@silkeh suggests that this change will also trigger the CI, so is worth-
while for several reasons.

Signed-off-by: Rune Morling <ermo@serpentos.com>
2024-04-07 22:12:19 +02:00
Rune Morling
87f000663c
yauto.py: Fix a few lints pointed out by @silkeh
Signed-off-by: Rune Morling <ermo@serpentos.com>
2024-04-07 21:48:27 +02:00
Silke Hofstra
95a6bd3056 worklog.py: Add security-updates command
**Summary**

Add a command for listing all updates that include security fixes.
2024-04-06 00:05:40 +02:00
Silke Hofstra
89e468b390 worklog.py: Add CVEs to the update output
**Summary**

Add links to CVEs mentioned in the commits to the update output.
2024-04-05 23:52:09 +02:00
Fabio Forni
a2f6f42877 common/Scripts/latent-rebuilds.py: Port to Python 3 + Black format 2024-04-04 10:13:14 +02:00
Fabio Forni
2d52a2f285 common/Scripts/gettag.py: Port to Python 3 + Black format 2024-04-03 14:46:07 +02:00
Fabio Forni
6e40426291 common/Scripts/find_deps.py: Port to Python 3 + Black format 2024-04-03 14:38:48 +02:00
Fabio Forni
8221609143 common/Scripts/ep-update.py: Port to Python 3 + Black format 2024-04-03 14:04:11 +02:00
Fabio Forni
eff85b68d0 common/Scripts/epcsearch.py: Port to Python 3 + Black format 2024-04-03 13:47:24 +02:00
Silke Hofstra
afce3a9b52 common: Rework package-publish-safety-catches.sh to use the CI checks
**Summary**

Run the CI checks in the safety catches instead of using a separate implementation.
2024-04-03 11:24:52 +02:00
Evan Maddock
6daca3ea17
common: Convert yconvert.py to Python 3
Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net>
2024-04-02 15:29:55 -04:00
Evan Maddock
16d20bf4c8
common: Convert yauto.py to Python 3
Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net>
2024-04-02 15:03:51 -04:00
Evan Maddock
9766cdf73c
common: Convert pbump.py to Python 3
Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net>
2024-04-02 14:06:18 -04:00
Fabio Forni
1631b73fe4 common/Scripts/dloader.py: Port to Python 3 + Black format 2024-04-02 19:45:12 +02:00
Silke Hofstra
46590963b1 worklog.py: Add html output format 2024-04-01 18:05:34 +02:00
Silke Hofstra
d06ef6f45f worklog.py: Improve help text 2024-03-21 22:23:10 +01:00
Silke Hofstra
e6024af4ad worklog.py: Add emoji, build time and comment to the worklog build output
Improve the worklog build output with:

- An emoji indicating the job status.
- A color indicating the job status.
- The build duration when the job is finished.
- The comment given to the bulid.
2024-03-21 22:22:43 +01:00
Silke Hofstra
4b002f5c20 worklog.py: add -F/--follow option that follows the log
**Summary**

Add an option that prints build log entries as soon as they are available.
This works similarly to the familiar options in `tail`.
2024-03-20 21:12:02 +01:00