From owner-freebsd-current@freebsd.org Sat Oct 22 15:51:31 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FF72C1DF86 for ; Sat, 22 Oct 2016 15:51:31 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF048AAE; Sat, 22 Oct 2016 15:51:30 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id c78so38074816wme.1; Sat, 22 Oct 2016 08:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=nbHy48yJLEO4OtVo1s7RaYCyqZW0sGtSlDXtTHksvcQ=; b=WKuAfZIln0b/Guu+D3pB2igg4yutg7MFcsHTA/Mz9kGtlH2F5a87tqsFas8PJoFQxr uL8oR95N2w1biAVxM3CK60TW43FM6eyJHA17/YTgyJ/0ctZQ9FdMwIrFRcJCSEC7lq+B EStxh8/y+PSHDzKQnVtNzmuFqbTwW5+pwA7xubIL4arm/M2exEQeFLuZPiz9ZsVLvsq2 Jk/ZBOZ/sF/yDr+MsY07fIV6Nb5CgnjQXvHhroGp4HRyausEKeeM1ARbcEDxzp1VMqtU aG1tm3pFqz2382pSdPznva9LREMkC4Rw2ZdJwD+BfWI2n4Q7HFQcJFqzxaE4fOKmbk1B TP8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nbHy48yJLEO4OtVo1s7RaYCyqZW0sGtSlDXtTHksvcQ=; b=WXGf5CoypLMWCTDejMVjhftaCuVu2hR8alJYmJuILqxdADRC/97ky8IqoHctYblxI4 ViQrUsn0OgEqulzLU7Od58E8ozieuXgyvgbDTsjS2PwuM7oyj6rgeghAkshinDTX4Boc WA/M1kNLEE2zcYRa8nLTwLWS2G1d5RituECBaRzqhI7n7Z2gOigYHBrdlCuVKq+NID/M d15q+Ziu0BMI597XuOX1yxh45PGpTzQSyDDF1h2okIi3fr+zv4NTxsHIt7cx9EaCAk3g GJJOAAOrKEUj62mW/RqpNrxhOWl1qOyHv7jIlAHs4/rxS6pwdcDyinww5DPXoGFZfVOV zoUg== X-Gm-Message-State: ABUngvdedSMwluKaCg1wuOg8VvUizfmfuS5RynCcEgjvKifCfHzOoXejEGJt4MtjmYK/KqJAJlL23ZdEx2haqg== X-Received: by 10.194.148.146 with SMTP id ts18mr4943985wjb.91.1477151489150; Sat, 22 Oct 2016 08:51:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.24.21 with HTTP; Sat, 22 Oct 2016 08:51:28 -0700 (PDT) From: Guy Yur Date: Sat, 22 Oct 2016 18:51:28 +0300 Message-ID: Subject: installworld fails on missing tzsetup when WITHOUT_DIALOG is set To: freebsd-current , emaste@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Oct 2016 15:51:31 -0000 Hi, installworld fails on missing tzsetup when src.conf has WITHOUT_DIALOG= and delete-old was previously run to remove tzsetup from the system. mkdir -p /tmp/install.8gNIwAFV progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown cmp cp date echo egrep find grep id install ln make mkdir mtree mv pwd_mkdb rm sed services_mkdb sh strip sysctl test true uname wc zic tzsetup makewhatis; do if progpath=`which $prog`; then echo $progpath; else echo "Required tool $prog not found in PATH." >&2; exit 1; fi; done); libs=$(ldd -f "%o %p\n" -f "%o %p\n" $progs 2>/dev/null | sort -u | while read line; do set -- $line; if [ "$2 $3" != "not found" ]; then echo $2; else echo "Required library $1 not found." >&2; exit 1; fi; done); cp $libs $progs /tmp/install.8gNIwAFV Required tool tzsetup not found in PATH. *** Error code 1 tzsetup is used in share/zoneinfo/Makefile when ${DESTDIR}/var/db/zoneinfo exists and some other conditions. In my case, I don't have /var/db/zoneinfo since I manually created a symlink from /usr/share/zoneinfo/... to /etc/localtime instead of using tzsetup. A possible fix is to add a WITHOUT_TZSETUP knob and not use tzsetup when the knob is enabled. https://github.com/guyyur/freebsd-src_patches/blob/master/without_tzsetup_knob.patch (patch doesn't include regenerating src.conf.5) Thanks, Guy