[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#802621: samba: FTBFS on kfreebsd-*: UnboundLocalError: local variable 'CTDB_SYSTEM_SRC' referenced before assignment

Package: samba
Version: 2:4.2.1+dfsg-1
Followup-For: Bug #802621


The FTBFS on kfreebsd since samba 4.2.x is due to a really trivial typo
in an upstream wscript file.  Please find patch for this attached.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- a/ctdb/wscript	2016-02-11 01:24:34.000000000 +0000
+++ b/ctdb/wscript	2016-02-11 01:39:24.739728329 +0000
@@ -306,7 +306,7 @@
         CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_aix.c')
     elif sys.platform.startswith('freebsd'):
         CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_freebsd.c')
-    elif sys.platform == 'kfreebsd':
+    elif sys.platform.startswith('gnukfreebsd'):
         CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_kfreebsd.c')
     elif sys.platform == 'gnu':
         CTDB_SYSTEM_SRC = bld.SUBDIR('common', 'system_gnu.c')

Reply to: