-
Notifications
You must be signed in to change notification settings - Fork 122
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
Improve autotools build (part 2/n) #1695
base: main
Are you sure you want to change the base?
Conversation
Yes CMake does build ps file. Example run from git main (Linux x86_64 github action build).
It also installs ps file.
|
eb8130a
to
849fa5e
Compare
Strange, somehow the auto-tools build is also broken on my FreeBSD 14 Release system (virtual machine under Proxmox PVE 8.0, Intel N100 mini PC). Two issues.
And it is the same for git main or avrdude-7.3 release. I remember it was working last time, probably on another FreeBSD system. Please check on your FreeBSD system as well. If it is broken, then please add the task to fix FreeBSD autotools build as well. BTW, I am using latest git main (5c61b9e) and not this PR. build log under FreeBSD 14 for git main
No issues to use CMake. CMake build log of git main
|
One thing to try on systems where GNU make is not the default Also, the non-libtool library needs to go. |
Ah, I see. Once I use gmake, the build is fine. Now the only issue is why libserialport is not detected.
using gmake and the build is fine
|
Not using pkgconfig for anything yet. |
I understand. On the other hand, I do not see why libserialport is special in this aspect, it is the same for other dependancies. BTW, it is a bit strange that I need to use |
gmake was basically already required before, in particular when trying to run parallel jobs ( |
This transfers the information from the CMakeLists.txt libavrdude VERSION and SOVERSION into the autotools configure script and AC_SUBST into every Makefile. This information is completely unused at this time.
* move autotools package related files to top_srcdir: configure.ac, avrdude.spec.in, bootstrap * ship all files required to build with cmake * new tar format for dist tarball allowing longer filenames for the tools/test_files/*.hex files * new dist tarball compression method to make it use a different filename `*.tar.xz` than github's snapshot and release tarballs `*.tar.gz`
849fa5e
to
77edcdb
Compare
This is a continuation which is based on #1681 to keep the PR sizes manageable both for the submitter and the reviewers.
Starting this as a Draft PR, expect rebases and force-pushing, e.g. rebasing to main after PR #1681 has been merged to main.
Some goals for this second round of fixing the autotools build:
avrdude.ps
?)--enable-versioned-doc
, have people use--docdir
to deviate from the default docdir*.texi
files-Wall
option_LIBRARIES
)Concerning both cmake and autotools builds:
Optionally, move
$top_srcdir/src/configure.ac
to$top_srcdir/configure.ac
:README.md
,NEWS
, and especiallyCOPYING
intomake dist
tarballmake check
runtools/test-avrdude
, somake distcheck
would cover everything in CI builds and the compile and install stages will only need to run once duringmake distcheck
(about halves the CPU cycles needed for autotools CI builds).tar.xz
and the Github tarballs.tar.gz