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

make generic_x86_64 fails while patching systemd #2287

Closed
voltagex opened this issue Dec 26, 2022 · 7 comments
Closed

make generic_x86_64 fails while patching systemd #2287

voltagex opened this issue Dec 26, 2022 · 7 comments
Labels

Comments

@voltagex
Copy link

Describe the issue you are experiencing

When building from 9365690

>>> systemd 247.3 Extracting
gzip -d -c /tmp/dl/systemd/systemd-247.3.tar.gz | tar --strip-components=1 -C /home/voltagex/src/operating-system/output/build/systemd-247.3   -xf -
>>> systemd 247.3 Patching

Applying 0001-time-wait-sync-log-errors-trying-to-watch-run-system.patch using patch:
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 2214c1f039143caaf4ed99eb0f3fc4551b322148 Mon Sep 17 00:00:00 2001
|Message-Id: <2214c1f039143caaf4ed99eb0f3fc4551b322148.1635377266.git.stefan@agner.ch>
|From: Aman Gupta Karmani <aman@tmm1.net>
|Date: Mon, 12 Oct 2020 13:39:26 -0700
|Subject: [PATCH 1/2] time-wait-sync: log errors trying to watch
| /run/systemd/timesync
|
|---
| src/timesync/wait-sync.c | 2 +-
| 1 file changed, 1 insertion(+), 1 deletion(-)
|
|diff --git a/src/timesync/wait-sync.c b/src/timesync/wait-sync.c
|index 2a9b113ff4..62fa13c509 100644
|--- a/src/timesync/wait-sync.c
|+++ b/src/timesync/wait-sync.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
make[1]: *** [package/pkg-generic.mk:209: /home/voltagex/src/operating-system/output/build/systemd-247.3/.stamp_patched] Error 1
make[1]: Leaving directory '/home/voltagex/src/operating-system/buildroot'
make: *** [Makefile:39: generic_x86_64] Error 2

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

dev

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

Build HAOS from source

Anything in the Supervisor logs that might be useful for us?

N/A

Anything in the Host logs that might be useful for us?

N/A

System information

No response

Additional information

No response

@voltagex voltagex added the bug label Dec 26, 2022
@voltagex
Copy link
Author

At a guess, 9365690 updated a submodule but did not update .gitmodules, my checkout was still on the older buildroot branch.

@agners
Copy link
Member

agners commented Dec 26, 2022

systemd 247.3 Extracting

According to package/systemd/systemd.mk is 250.8, so something seems to be outdated on your end.

@agners
Copy link
Member

agners commented Dec 26, 2022

At a guess, 9365690 updated a submodule but did not update .gitmodules, my checkout was still on the older buildroot branch.

Yes, git submodules need manual updating. See: https://developers.home-assistant.io/docs/operating-system/getting-started#check-out-source-code

@voltagex
Copy link
Author

@agners
Copy link
Member

agners commented Dec 26, 2022

Right, created a PR to fix this: #2288.

A git submodule update --init --force should still checkout the right git hash though.

@voltagex
Copy link
Author

Many thanks - I'll know how to create a PR for it if I come across something like this in the future. Should I leave this issue open until that PR is merged?

@agners
Copy link
Member

agners commented Dec 26, 2022

If the PR looks good to you, I will merge it and close this issue.

@agners agners closed this as completed Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants