meson: add patch to add distconfdir and change upstream to commit#962
meson: add patch to add distconfdir and change upstream to commit#962JustSoup312 wants to merge 1 commit intoAerynOS:2025-05-repo-rebuildfrom
Conversation
97161c9 to
64f7f74
Compare
|
@JustSoup312 The patch as-is is technically correct. However, our custom is to create a ./pkg dir in the recipe folder next to the stone, save and commit the patch there and then reference it as You can then add the URI to the patch in a comment over the patch itself along with whatever commentary seems reasonable, which makes it easy for the next committer to update the patch from the source URI given on a meson update. So something like this: setup : |
# hermetic-usr patch adding the 'distconfdir' build-time configuration variable as an alternative to 'sysconfdir'
# upstream: https://gitlab.postmarketos.org/JustSoup321/hermetic-patches/-/raw/trunk/build-system-patches/meson/meson-1.8.2-distconfdir.patch
%patch %(pkgdir)/meson-%(version)-distconfdir.patchThis ensures that even if we move our tree elsewhere (or you do), this version of meson will continue to build, as long as the upstream tarball is available. |
|
Is there a PR for getting this into upstream meson? This honestly seems pointless to me without that, why would meson-using projects bother merging our distconfdir patches if support for it wasn't available in other distros meson packages? |
It would be very unusual to rename the patch after every meson update. Just name it |
64f7f74 to
e01875b
Compare
Adds a flag to define the distconfdir in packaging. This is an important part of getting statelessness support into upstreams. The GitHub release of Meson is slightly different from the tag itself, so switching to the top commit of the tag fixes the patch. Signed-off-by: Aster Boese <asterboese@mailbox.org>
e01875b to
2072bcf
Compare
@ermo believed it best to do a patch first but I would prefer getting the patch into meson. I just don't know if they will accept it without a usecase |
|
@JustSoup312 Just a quick note that I have not forgotten, nor given up on this. |
Adds a flag to define the distconfdir in packaging. This is an important part of getting statelessness support into upstreams.
The GitHub release of Meson is slightly different from the tag itself, so switching to the top commit of the tag fixes the patch.
Collaboration with @ermo.
This is my first time handling stone packaging, so if I messed anything up, please tell me.