* [Buildroot] [PATCH 1/1] samba4: fix install of systemd files
@ 2018-11-24 20:12 Fabrice Fontaine
2018-11-25 8:37 ` Thomas Petazzoni
2018-11-26 18:02 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2018-11-24 20:12 UTC (permalink / raw)
To: buildroot
Since version 4.8.0 and
https://github.com/samba-team/samba/commit/080d590de1ff9f8ebc55aeffaea8d41991466549,
the systemd files (nmd.service, ...) are not available in packaging/systemd
Indeed, they are built in bin/default/packaging/systemd
So use the new --systemd-install-services configure option to install
these files
Fixes:
- http://autobuild.buildroot.org/results/a09a065c523931c1892e81a99c57521fbe095d8b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/samba4/samba4.mk | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/package/samba4/samba4.mk b/package/samba4/samba4.mk
index d95b4edfa4..e2f8e7de2f 100644
--- a/package/samba4/samba4.mk
+++ b/package/samba4/samba4.mk
@@ -161,13 +161,12 @@ define SAMBA4_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S91smb
endef
+ifeq ($(BR2_INIT_SYSTEMD),y)
+SAMBA4_CONF_OPTS += --systemd-install-services
+SAMBA4_DEPENDENCIES += systemd
+endif
+
define SAMBA4_INSTALL_INIT_SYSTEMD
- $(INSTALL) -D -m 644 $(@D)/packaging/systemd/nmb.service \
- $(TARGET_DIR)/usr/lib/systemd/system/nmb.service
- $(INSTALL) -D -m 644 $(@D)/packaging/systemd/smb.service \
- $(TARGET_DIR)/usr/lib/systemd/system/smb.service
- $(INSTALL) -D -m 644 $(@D)/packaging/systemd/winbind.service \
- $(TARGET_DIR)/usr/lib/systemd/system/winbind.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -sf ../../../../usr/lib/systemd/system/nmb.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/nmb.service
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] samba4: fix install of systemd files
2018-11-24 20:12 [Buildroot] [PATCH 1/1] samba4: fix install of systemd files Fabrice Fontaine
@ 2018-11-25 8:37 ` Thomas Petazzoni
2018-11-26 18:02 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-11-25 8:37 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 24 Nov 2018 21:12:41 +0100, Fabrice Fontaine wrote:
> Since version 4.8.0 and
> https://github.com/samba-team/samba/commit/080d590de1ff9f8ebc55aeffaea8d41991466549,
> the systemd files (nmd.service, ...) are not available in packaging/systemd
>
> Indeed, they are built in bin/default/packaging/systemd
>
> So use the new --systemd-install-services configure option to install
> these files
>
> Fixes:
> - http://autobuild.buildroot.org/results/a09a065c523931c1892e81a99c57521fbe095d8b
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/samba4/samba4.mk | 11 +++++------
> 1 file changed, 5 insertions(+), 6 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] samba4: fix install of systemd files
2018-11-24 20:12 [Buildroot] [PATCH 1/1] samba4: fix install of systemd files Fabrice Fontaine
2018-11-25 8:37 ` Thomas Petazzoni
@ 2018-11-26 18:02 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-11-26 18:02 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Since version 4.8.0 and
> https://github.com/samba-team/samba/commit/080d590de1ff9f8ebc55aeffaea8d41991466549,
> the systemd files (nmd.service, ...) are not available in packaging/systemd
> Indeed, they are built in bin/default/packaging/systemd
> So use the new --systemd-install-services configure option to install
> these files
> Fixes:
> - http://autobuild.buildroot.org/results/a09a065c523931c1892e81a99c57521fbe095d8b
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2018.02.x and 2018.08.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-26 18:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-24 20:12 [Buildroot] [PATCH 1/1] samba4: fix install of systemd files Fabrice Fontaine
2018-11-25 8:37 ` Thomas Petazzoni
2018-11-26 18:02 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.