Am 22.10.25 um 15:16 schrieb David C Rankin:
AUR Wizards,
With upstream's removal of libboost_system I needed to remove the Scons config making use of the library. Instead of patching the files, I simply used a couple of sed expressions to handle the issue from the PKGBUILD (there were many others there when I stepped in as the maintainer)
I want to know if it matters, and whether patches are preferred, or if handling a couple of removals via sed or awk is okay.
I added the following to handle the changes:
# delete libboost_system references from scons due to removal # from boost/boost-libs upstream in ver. 1.89. sed -i '/^boostLibs =/s/, "system"//' SConstruct sed -i '348d' src/third_party/SConscript
Builds fine, only complaint is it has to serial link instead of using the requested lto link, which I see with some other packages as well. Anyway, if there is a preference to patch instead of use sed, I can clean that up on the next commit, but I am curious if there is a preference or if either/or is okay.
Hi, If I recall it correctly I have both ways in action :D It boils mostly down to personal preference? One disadvantage of sed is that it silently breaks whereas a patch in need of updating will stop the process at the beginning. For the packages in the repos they tend to prefer patches over sed calls so a build stops early if there are issues. Best regards