Skip to content
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

CFE-2780: Fixed warnings from automake #5678

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

Conversation

larsewi
Copy link
Contributor

@larsewi larsewi commented Jan 9, 2025

Build Status

This way we don't get annoying warnings like:

```
warning: source file '$(srcdir)/../../libutils/statistics.c' is in a subdirectory,
but option 'subdir-objects' is disabled
```

Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
@larsewi larsewi marked this pull request as draft January 10, 2025 08:42
Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
@larsewi larsewi changed the title CFE-2780: Enabled subdir-objects in AM_INIT_AUTOMAKE CFE-2780: Fixed warnings from automake Jan 10, 2025
Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
`AC_LANG_C` is expanded from `ACX_PTHREAD` which is also obsolete. It
was renamed to `AX_PTHREAD`. We may have to install `autoconf-archive`
as a dependency in order to get this macro.

```
configure.ac:134: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:134: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
m4/acinclude.m4:3: ACX_PTHREAD is expanded from...
```

Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
autoconf-archive is needed for `AX_PTHREAD` macro

Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
@cfengine cfengine deleted a comment from cf-bottom Jan 10, 2025
We need configure.ac to be supported on older platforms

Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
```
tests/acceptance/Makefile.am:103: warning: wildcard [0-9]*: non-POSIX variable name
tests/acceptance/Makefile.am:103: (probably a GNU make extension)
```

Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
Looks like 520144f was an attempt to
fix init_script_test_helper from not being cleaned properly. This commit
was reverted in ebd97bd, and another
attempt was added in 9dc759f. However,
the revert actually removed the entire `init_script_test_helper` binary
from being compiled. This reapplying the first fix, and combining it
with the second fix should do the trick.

Found this while trying to clear the warning:
```
tests/unit/Makefile.am:402: warning: variable 'init_script_test_helper_SOURCES' is defined but no program or
tests/unit/Makefile.am:402: library has 'init_script_test_helper' as canonical name (possible typo)
```

This reverts commit ebd97bd.
@larsewi larsewi requested a review from craigcomstock January 10, 2025 13:44
I don't know why, but this was necessary, and all the other tests does
this. I was getting the following errors after enabling subdir-objects
in `AM_INIT_AUTOMAKE`:

```
Makefile:1843: ../../cf-upgrade/.deps/cf_upgrade_test-alloc-mini.Po: No such file or directory
Makefile:1844: ../../cf-upgrade/.deps/cf_upgrade_test-command_line.Po: No such file or directory
Makefile:1845: ../../cf-upgrade/.deps/cf_upgrade_test-configuration.Po: No such file or directory
Makefile:1846: ../../cf-upgrade/.deps/cf_upgrade_test-log.Po: No such file or directory
Makefile:1847: ../../cf-upgrade/.deps/cf_upgrade_test-process.Po: No such file or directory
Makefile:1848: ../../cf-upgrade/.deps/cf_upgrade_test-update.Po: No such file or directory
```

Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
The `init_script_test_helper` binary does not require any libraries.
The libraries `libpromises.la` and `libtest.la` were previously added
through the `LDADD` variable in the top of Makefile.am.

Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
For some reason it causes the following error

```
10:58:19 Makefile:598: ../../libpromises/.deps/lastseen.Po: No such file or directory
10:58:19 make[3]: *** No rule to make target '../../libpromises/.deps/lastseen.Po'.  Stop.
```

in bootstrap_pr while doing `make dist` in Jenkins.

Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant