bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13002: Updated, fixed patch


From: Reuben Thomas
Subject: bug#13002: Updated, fixed patch
Date: Wed, 28 Oct 2020 17:30:56 +0000

I have taken Daniel Espinosa's patch and improved it so that it fixes all the test failures. Some of the failures were actually left-over changes to the tests required by Daniel's patch, which (correctly) considers the primary location of C files generated by valac to be builddir, not srcdir.

One change in particular is quite awkward, and could do with other eyes, to see if it's correct, and even if so, whether it could be simplified: the additional check in line 5737 of automake.in which checks whether there's a pre-built .c file in srcdir, and, if srcdir != builddir, copies the file there if it is newer than the corresponding .vala file.

Having worked on this patch, I do wonder whether the hacks involved are worth it. It seems to me there are two sensible options:

1. Add more support to automake for files that can be either generated or distributed. (Have I overlooked support for this?)

2. Remove the support for distributing Vala projects as C files that do not require a Vala compiler. The Vala compiler is portable and has much the same dependencies as most Vala projects (that is, a C compiler and glib).

Without one of these, bugs and fragility in Vala support are likely to continue.

--
https://rrt.sc3d.org

Attachment: 0001-Improve-Vala-support-closes-13002.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]