Skip to content

CFE-2780: Fixed warnings from autoreconf#5678

Closed
larsewi wants to merge 13 commits into
cfengine:masterfrom
larsewi:subdir
Closed

CFE-2780: Fixed warnings from autoreconf#5678
larsewi wants to merge 13 commits into
cfengine:masterfrom
larsewi:subdir

Conversation

@larsewi

@larsewi larsewi commented Jan 9, 2025

Copy link
Copy Markdown
Contributor

Build Status

@larsewi larsewi marked this pull request as draft January 10, 2025 08:42
@larsewi larsewi changed the title CFE-2780: Enabled subdir-objects in AM_INIT_AUTOMAKE CFE-2780: Fixed warnings from automake Jan 10, 2025
@cfengine cfengine deleted a comment from cf-bottom Jan 10, 2025
@larsewi larsewi requested a review from craigcomstock January 10, 2025 13:44
@larsewi larsewi force-pushed the subdir branch 3 times, most recently from 01517a2 to 55421f4 Compare May 9, 2025 09:14
@larsewi larsewi changed the title CFE-2780: Fixed warnings from automake CFE-2780: Fixed warnings from autoreconf May 9, 2025
@larsewi larsewi force-pushed the subdir branch 2 times, most recently from 79b50e4 to bcdc9ff Compare May 9, 2025 11:24
@github-actions

github-actions Bot commented Jun 8, 2025

Copy link
Copy Markdown

Marking this PR as stale due to inactivity; it will be closed in 7 days.

@github-actions github-actions Bot added the stale Pull requests with no recent activity label Jun 8, 2025
@github-actions

Copy link
Copy Markdown

Closing PR due to inactivity. Feel free to open a new PR if necessary.

@github-actions github-actions Bot closed this Jun 16, 2025
@larsewi larsewi reopened this Jun 17, 2025
@CLAassistant

CLAassistant commented Jun 17, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

larsewi added 2 commits June 17, 2025 14:20
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 <lars.erik.wik@northern.tech>
Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
larsewi added 9 commits June 17, 2025 15:25
Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
```
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 <lars.erik.wik@northern.tech>
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.
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 <lars.erik.wik@northern.tech>
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 <lars.erik.wik@northern.tech>
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 <lars.erik.wik@northern.tech>
Building stuff from libutils in test/unit causes make distclean to
delete the same files twice resulting in failure. This happens as an
effect of enabling subdir-objects which causes recursive builds.

Ticket: CFE-2780
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
larsewi added 2 commits June 17, 2025 16:38
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Ticket: None
Changelog: None
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@github-actions github-actions Bot removed the stale Pull requests with no recent activity label Jun 18, 2025
@larsewi

larsewi commented Jun 23, 2025

Copy link
Copy Markdown
Contributor Author

We'll have to chose; either accepts deprecation warnings or upgrade bootstrap host

@larsewi larsewi closed this Jun 23, 2025
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.

2 participants