svn commit: r500971 - head/sysutils/lsof

Larry Rosenman ler at FreeBSD.org
Wed May 8 12:39:09 UTC 2019


On Wed, May 08, 2019 at 10:09:18AM +0200, Mathieu Arnold wrote:
> On Tue, May 07, 2019 at 04:37:15PM +0000, Larry Rosenman wrote:
> > Author: ler
> > Date: Tue May  7 16:37:15 2019
> > New Revision: 500971
> > URL: https://svnweb.freebsd.org/changeset/ports/500971
> > 
> > Log:
> >   sysutils/lsof: put the SRC_BASE check back where it actually works in poudriere.
> > 
> > Modified:
> >   head/sysutils/lsof/Makefile
> > 
> > Modified: head/sysutils/lsof/Makefile
> > ==============================================================================
> > --- head/sysutils/lsof/Makefile	Tue May  7 16:20:57 2019	(r500970)
> > +++ head/sysutils/lsof/Makefile	Tue May  7 16:37:15 2019	(r500971)
> > @@ -23,15 +23,15 @@ GH_ACCOUNT=	lsof-org
> >  
> >  SHEBANG_FILES=	scripts/sort_res.perl5
> >  
> > -.if !exists(${SRC_BASE}/sys/kern/kern_lockf.c)
> > -IGNORE=		requires kernel sources
> > -.endif
> > -
> >  .include <bsd.port.pre.mk>
> 
> This ^^ is not needed any more.
> 
> >  CONFIGURE_SCRIPT=	Configure
> >  CONFIGURE_ARGS=	-n freebsd
> >  CONFIGURE_ENV=	LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys"
> > +
> > +.if !exists(${SRC_BASE}/sys/kern/kern_lockf.c)
> > +IGNORE=		requires kernel sources
> > +.endif
> >  
> >  do-install:
> >  	${INSTALL_PROGRAM} ${WRKSRC}/lsof ${STAGEDIR}${PREFIX}/sbin
> > 
> > 
> 
> -- 
> Mathieu Arnold


Then why does this fail?

s⌂82% [ler at borg.lerctr.org:~/FreeBSD/ports/sysutils/lsof] ports(1) ‡ sudo poudriere testport -j p120-S-amd64 -p ler-checkout sysutils/lsof
[00:00:00] Creating the reference jail... done
[00:00:01] Mounting system devices for p120-S-amd64-ler-checkout
[00:00:01] Mounting ports/packages/distfiles
[00:00:01] Converting package repository to new format
[00:00:01] Stashing existing package repository
[00:00:01] Mounting ccache from: /var/cache/ccache
[00:00:01] Mounting packages from: /usr/local/poudriere/data/packages/p120-S-amd64-ler-checkout
[00:00:01] Copying /var/db/ports from: /usr/local/etc/poudriere.d/p120-S-amd64-options
[00:00:02] Appending to make.conf: /usr/local/etc/poudriere.d/p120-S-amd64-make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/p120-S-amd64-ler-checkout/ref/etc/resolv.conf
[00:00:02] Starting jail p120-S-amd64-ler-checkout
[00:00:06] Ports supports: FLAVORS SELECTED_OPTIONS
[00:00:06] Logs: /usr/local/poudriere/data/logs/bulk/p120-S-amd64-ler-checkout/2019-05-08_07h35m04s
[00:00:06] Loading MOVED for /usr/local/poudriere/data/.m/p120-S-amd64-ler-checkout/ref/usr/ports
[00:00:07] Gathering ports metadata
[00:00:08] Calculating ports order and dependencies
[00:00:08] pkg package missing, skipping sanity
[00:00:08] Skipping incremental rebuild and repository sanity checks
[00:00:08] Cleaning the build queue
[00:00:08] Sanity checking build queue
[00:00:08] Processing PRIORITY_BOOST
[00:00:08] Balancing pool
[00:00:08] Recording filesystem state for prepkg... done
[00:00:11] Building 2 packages using 2 builders
[00:00:11] Starting/Cloning builders
[00:00:12] Hit CTRL+t at any time to see build progress and stats
[00:00:12] [01] [00:00:00] Building ports-mgmt/pkg | pkg-1.10.5_5
[00:01:44] [01] [00:01:32] Finished ports-mgmt/pkg | pkg-1.10.5_5: Success
[00:01:44] [01] [00:00:00] Building devel/ccache | ccache-3.4.3_1
[00:01:52] [01] [00:00:08] Finished devel/ccache | ccache-3.4.3_1: Success
[00:01:52] Stopping 2 builders
[00:01:53] Creating pkg repository
Creating repository in /tmp/packages: 100%
Packing files for repository: 100%
[00:01:54] Committing packages to repository: /usr/local/poudriere/data/packages/p120-S-amd64-ler-checkout/.real_1557319018 via .latest symlink
[00:01:54] Removing old packages
[00:01:54] Building with flags:
[00:01:54] Removing existing /usr/local
build started at Wed May  8 07:36:58 CDT 2019
port directory: /usr/ports/sysutils/lsof
package name: lsof-4.93.1,8
building for: FreeBSD p120-S-amd64-ler-checkout 12.0-STABLE FreeBSD 12.0-STABLE 1200508 amd64
maintained by: ler at FreeBSD.org
Makefile ident:      $FreeBSD: head/sysutils/lsof/Makefile 500971 2019-05-07 16:37:15Z ler $
Poudriere version: 3.3.99.20190311
Host OSVERSION: 1300021
Jail OSVERSION: 1200508
Job Id:

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1200508
UNAME_v=FreeBSD 12.0-STABLE 1200508
UNAME_r=12.0-STABLE
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
TRYBROKEN=yes
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.99.20190311
MASTERMNT=/usr/local/poudriere/data/.m/p120-S-amd64-ler-checkout/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=xterm-256color
PWD=/usr/local/poudriere/data/.m/p120-S-amd64-ler-checkout/ref/.p
NO_WARNING_PKG_INSTALL_EOL=yes
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=p120-S-amd64-ler-checkout
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/p120-S-amd64-ler-checkout/ref/.p/pool
SCRIPTPATH=/usr/local/share/poudriere/testport.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=PACKAGES=/tmp/pkgs PKGREPOSITORY=/tmp/pkgs PKGLATESTREPOSITORY=/tmp/pkgs/Latest
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
ler at FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
-n freebsd
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
LSOF_CC="cc" FREEBSD_SYS="/usr/src/sys" XDG_DATA_HOME=/wrkdirs/usr/ports/sysutils/lsof/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/sysutils/lsof/work  HOME=/wrkdirs/usr/ports/sysutils/lsof/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/sysutils/lsof/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/sysutils/lsof/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/sysutils/lsof/work  HOME=/wrkdirs/usr/ports/sysutils/lsof/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/sysutils/lsof/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
OSREL=12.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/lsof"  EXAMPLESDIR="share/examples/lsof"  DATADIR="share/lsof"  WWWDIR="www/lsof"  ETCDIR="etc/lsof"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/lsof DOCSDIR=/usr/local/share/doc/lsof EXAMPLESDIR=/usr/local/share/examples/lsof  WWWDIR=/usr/local/www/lsof ETCDIR=/usr/local/etc/lsof
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### /usr/local/etc/poudriere.d/p120-S-amd64-make.conf ####
#__EXIM__
LOG_FILE_PATH="syslog:${LOGDIR}/%slog"
LOGDIR=/var/log/exim
#
DEFAULT_VERSIONS+=ssl=openssl111
DEFAULT_VERSIONS+=apache=2.4
WITH_DEBUG_PORTS=mail/dovecot mail/dovecot-pigeonhole
DEFAULT_VERSIONS+=php=7.2
DEFAULT_VERSIONS+=pgsql=10
DEFAULT_VERSIONS+=linux=c7
DEFAULT_VERSIONS+=gssapi=none
DEFAULT_VERSIONS+=python=3.7
WITH_CCACHE_BUILD=yes
CCACHE_DIR=/root/.ccache
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=amd64
OPSYS=FreeBSD
_OSRELEASE=12.0-STABLE
OSREL=12.0
OSVERSION=1200508
PYTHONBASE=/usr/local
HAVE_COMPAT_IA32_KERN=YES
_SMP_CPUS=24
CONFIGURE_MAX_CMD_LEN=262144
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  2097152
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  lsof-4.93.1,8 requires kernel sources.
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/lsof
build of sysutils/lsof | lsof-4.93.1,8 ended at Wed May  8 07:36:59 CDT 2019
build time: 00:00:01
!!! build failure encountered !!!
[00:01:54] Error: Build failed in phase: check-sanity
[00:01:54] Cleaning up
[00:01:54] Unmounting file systems
⌂74% [ler at borg.lerctr.org:~/FreeBSD/ports/sysutils/lsof] ports(1) 1 ‡ cat Makefile
# Created by: David O'Brien <obrien at FreeBSD.org>
# $FreeBSD: head/sysutils/lsof/Makefile 500971 2019-05-07 16:37:15Z ler $

PORTNAME=	lsof
DISTVERSION=	4.93.1
PORTEPOCH=	8
CATEGORIES=	sysutils

MAINTAINER=	ler at FreeBSD.org
COMMENT=	Lists information about open files (similar to fstat(1))

LICENSE=	lsof
LICENSE_NAME=	lsof
LICENSE_FILE=	${FILESDIR}/LICENSE
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

USES=		shebangfix tar:bzip2

HAS_CONFIGURE=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	lsof-org

SHEBANG_FILES=	scripts/sort_res.perl5


CONFIGURE_SCRIPT=	Configure
CONFIGURE_ARGS=	-n freebsd
CONFIGURE_ENV=	LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys"

.if !exists(${SRC_BASE}/sys/kern/kern_lockf.c)
IGNORE=		requires kernel sources
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/lsof ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/Lsof.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/lsof.8
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/lsof
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${STAGEDIR}${PREFIX}/share/lsof
	@${CHMOD} 0444 ${STAGEDIR}${PREFIX}/share/lsof/00*

.include <bsd.port.mk>
⌂84% [ler at borg.lerctr.org:~/FreeBSD/ports/sysutils/lsof] ports(1) ‡


-- 
Larry Rosenman                         https://people.FreeBSD.org/~ler/
Phone: +1 214-642-9640                 E-Mail: ler at FreeBSD.org
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 679 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20190508/b9a81c72/attachment.sig>


More information about the svn-ports-all mailing list