- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Redo version detection in autoconf to use modern practices #3603
Comments
Yep, plus get rid of
Questionable is with which required autoconf version we what to go. |
|
|
Reminder to myself:
|
Another thing: I wonder where this comes from -
Fedora 23. |
Okay, I have finally found where the AM_PROG_MKDIR_P comes from. This is from gettext-0.18, and it's pulled in by autopoint even though I have 0.19.x installed on the build host, because that's what we require in configure.ac. It will be gone if we bump the requirement to at least gettext-0.18.2, but this will already exclude people trying to bootstrap mc on Ubuntu 12.04. I guess we'll be able to get rid of it in a couple of years... :-/ |
Re. "ar: `u' modifier ignored" problem, it seems that wait & do nothing is the best strategy: |
|
Branch: 3603_version |
After your changes DISTR_VERSION will be blank I thin; if you are not in a hurry, I would really like to check everything that has to do with versioning first, I think this can wait for a long time... :-/ |
Replying to zaytsev-work:
Fixed. |
Hi guys,
Are you planning to address the related bug #2252 any time soon? Will this fix bring us closer to that?
Getting rid of autogen runs and complete rebuilds during e.g. a git bisect would be a big developer productivity boost. |
If "proper AC_INIT and AM_INIT_AUTOMAKE usage" seems unlikely
These using a more common way to deal with git/tarball versions.
|
@egmont, with the current patch it will make matters even worse in terms of #2252. That's why I'm not very happy about merging it in its current form. My plan was to look into autotools and/or other packages as @and says to find out how they do versioning, and try to port it over to mc, including fixing the #2252 while we are at it. When I can find time for that, I can't say :-( |
|
|
|
|
|
|
|
|
Another try to tidy up deprecate AM_INIT_AUTOMAKE :) |
|
|
|
Branch: 3603_version |
|
Merged to master: [8519c7e].
|
|
Important
This issue was migrated from Trac:
zaytsev
(@zyv)egmont
(@egmontkob),info@….net
(@metux)Currently we have a custom macro mc_VERSION used to autodetect the version from git tags. This is a problem, because we can't modernize our autoconf build system to use currently supported invocations of AC_INIT and AM_INIT_AUTOMAKE.
One important use case for fixing this would be to switch to tar-pax in our tarballs or at least set filename-length-max=99 to catch broken tarballs on make dist. Currently that's next to impossible, and Travis was building broken tarballs without anyone noticing for quite some time.
The correct way to autodetect version string with autotools is to use the m4_esyscmd_s macro. This macro is used by autoconf itself at least since autoconf 2.62 (so, an example can be found in its source code).
Note
Original attachments:
and
onApr 2, 2016 at 15:18 UTC
and
onDec 30, 2020 at 16:21 UTC
and
onDec 30, 2020 at 16:52 UTC
The text was updated successfully, but these errors were encountered: