FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update constants for systemd 258 by keszybz · Pull Request #157 · systemd/python-systemd · GitHub

Update constants for systemd 258 - #157

Merged
behrmann merged 3 commits into
systemd:mainfrom
keszybz:update-constants
Oct 14, 2025
Merged

Update constants for systemd 258#157
behrmann merged 3 commits into
systemd:mainfrom
keszybz:update-constants

Conversation

keszybz commented Oct 3, 2025

Copy link
Copy Markdown
Member

No description provided.

Comment thread update-constants.py Dismissed

behrmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks! Changing the sed stuff to Python makes it a lot more readable.

Comment thread update-constants.py Outdated
Comment thread update-constants.py Outdated
Comment thread update-constants.py Outdated
Comment thread update-constants.py Outdated
Comment thread update-constants.py Outdated
Comment thread src/systemd/meson.build

include_dir = libsystemd_dep.get_variable(pkgconfig: 'includedir')

update_constants = custom_target(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Having bashed my head against meson for a bit now, shouldn't this be a run_target instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Dunno. I copied from the systemd config, update-man-rules target.

$ ninja -C build update-constants -v
ninja: Entering directory `build'
[1/1] /home/zbyszek/src/python-systemd/update-constants.py /home/zbyszek/src/python-systemd/src/systemd/id128-constants.h /home/zbyszek/src/python-systemd/docs/id128.rst /home/zbyszek/src/python-systemd/src/systemd/id128-defines.h /usr/include/systemd/sd-messages.h
Writing /home/zbyszek/src/python-systemd/src/systemd/id128-constants.h…
Writing /home/zbyszek/src/python-systemd/src/systemd/id128-defines.h…
Writing /home/zbyszek/src/python-systemd/docs/id128.rst…

The helper is updated to do the everything in the python script. The wrapper in
Makefile is dropped. It wasn't working properly anyway, and I think the version
in meson is enough.
The previous commit changes the sorting algorithm, so a few lines moved
up or down a bit.

keszybz commented Oct 14, 2025

Copy link
Copy Markdown
Member Author

@behrmann do you want to take another look? If not, I think I'll merge this and the other PR (#160).

behrmann merged commit 6396126 into systemd:main Oct 14, 2025
17 checks passed
keszybz deleted the update-constants branch October 21, 2025 14:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL