From owner-svn-src-head@freebsd.org Wed Aug 22 11:56:52 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7EF81086516; Wed, 22 Aug 2018 11:56:52 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E147706D9; Wed, 22 Aug 2018 11:56:52 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2F39112A3C; Wed, 22 Aug 2018 11:56:52 +0000 (UTC) (envelope-from arichardson@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7MBup0n025009; Wed, 22 Aug 2018 11:56:51 GMT (envelope-from arichardson@FreeBSD.org) Received: (from arichardson@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7MBupjf025008; Wed, 22 Aug 2018 11:56:51 GMT (envelope-from arichardson@FreeBSD.org) Message-Id: <201808221156.w7MBupjf025008@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: arichardson set sender to arichardson@FreeBSD.org using -f From: Alex Richardson Date: Wed, 22 Aug 2018 11:56:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338191 - head/usr.sbin/amd/libamu X-SVN-Group: head X-SVN-Commit-Author: arichardson X-SVN-Commit-Paths: head/usr.sbin/amd/libamu X-SVN-Commit-Revision: 338191 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2018 11:56:52 -0000 Author: arichardson Date: Wed Aug 22 11:56:51 2018 New Revision: 338191 URL: https://svnweb.freebsd.org/changeset/base/338191 Log: Use unifdef -x1 instead of ignoring the shell exit code This way the target fails if unifdef doesn't exist or doesn't modify the file instead of just generating an empty .c file. I found this while building without inherited $PATH (D16815) Approved By: jhb (mentor) Modified: head/usr.sbin/amd/libamu/Makefile Modified: head/usr.sbin/amd/libamu/Makefile ============================================================================== --- head/usr.sbin/amd/libamu/Makefile Wed Aug 22 11:56:42 2018 (r338190) +++ head/usr.sbin/amd/libamu/Makefile Wed Aug 22 11:56:51 2018 (r338191) @@ -33,6 +33,6 @@ nfs_prot_x.c: ${NFS_PROT_X} XDRDEFS!= grep 'ifndef.*HAVE_XDR' ${SRCTOP}/contrib/amd/libamu/xdr_func.c | awk '{print "-D"$$2}' xdr_func_%undef.c: xdr_func.c - -unifdef ${XDRDEFS} < ${.ALLSRC} > ${.TARGET} + unifdef -x1 ${XDRDEFS} -o ${.TARGET} ${.ALLSRC} .include