-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add avrdude_conf_version to grammar #1547
Add avrdude_conf_version to grammar #1547
Conversation
Great. This fixed the issue for git main.
|
As mentioned in the following comment, we still need to fix |
The following patch mentioned by @Youw seems to work. The only thing is that it does not contains the git commit ID (but consistent with the existing avrdude). It is better to have the commit ID since we may have several commits on the same date. However, I think we can live with this for now with the auto-tools build.
|
@stefanrueger Please add this to configure.ac, as previously done in #1545
|
@MCUdude Like so? diff --git a/src/configure.ac b/src/configure.ac
index a67dac28..9f4f0cb1 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -543,8 +543,9 @@ AC_CONFIG_FILES([
Makefile
])
-# Pass into avrdude.conf.in
-AVRDUDE_FULL_VERSION='$(VERSION)'
+# Pass version number into avrdude.conf
+AVRDUDE_FULL_VERSION=$PACKAGE_VERSION
+AC_SUBST(AVRDUDE_FULL_VERSION, $AVRDUDE_FULL_VERSION)
# The procedure to create avrdude.conf involves two steps. First,
# normal autoconf substitution will be applied, resulting in I don't understand this change, as I don't know where PACKAGE_VERSION is coming from... Your PR #1545 did another change that I now cannot remember that conflicted with git main. |
Yes, just like so.
Line 26 in 9dfb616
autoconf #1545 also did some changes to CMakeLists.txt, but this wasn't intentional, and git refused to remove this commit from the PR. So the only thing you need to deal with is to add |
Brilliant. Thanks for the explanation. Seeing that this PR will reverse the breakage of git main I suggest merging out of order soon. I can see the benefit of checking the independent version strings for AVRDUDE and avrdude.conf to issue a warning, but as this check is a bit more involved I will leave this for later, ideally for someone else (@MCUdude?) @mcuee We have all pushed commits that break git main; letting a PR hang around for a couple of days is a great way for identifying teething problems 😉 |
Noted and thanks. |
Good! I'll see what I can do. Feel free to merge! |
As requested