From owner-freebsd-embedded@freebsd.org Thu Jun 20 19:40:16 2019 Return-Path: Delivered-To: freebsd-embedded@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 7BCE515C5E2C for ; Thu, 20 Jun 2019 19:40:16 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AFC8E93DC5 for ; Thu, 20 Jun 2019 19:40:15 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1561059608; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=Mi8oOQVEcCrnZRugvE9mZcXJrHY8w4IaCt2HS99pjKt008ftvG65sGezaIAv/KZXybUd08Pn2ARLb Zxzs2YsZJ3dgRMIXkDGSiJTX7jZ+CGqp6MqdKrquQRfnXFzMsEOvyOUrZxey4PDTcVOEBJFecieDFi c4Z74fVwMNrOE906djAY6FHALy5LrdZqR9ENEKesjWa7iDIRn+MpceXIBpahDIF9KvCB+C4hGMEX2O 8vNrW78ypNl38gUCvmxke0jiv6W4VahBhe220Rs+5WTlND6ufS8HxBi3+7HN9EimuXD7RUtnVtrvV2 VNQIpsk/Vd1krbZOGfH3Kf0Glp7irlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=pgJqafn5uk6tEC3T7eNHI/58+mB+efjt+09YrqsBRTk=; b=osAiH13mRSSkDRUoB2vf/9VzC7PRVHxdnUXokfIIqZBWL44ZIBPnAlXVRrpAtDMtUcO8k0OJsQ3+t lontXWR/Ljg681AH/CZ6QEPZeBtdC3Yndjk3qlaG5RicybN2gjAO4WhArKJz22HHiNSsY9bszu4gK4 0GMTWwOMrwanABYrzQj5HGEaozB8cI4hzQk0piHxCTOionDov2aZn+x6Kz0U20C6UF8BpOkDNcL4Bq CHw/yfDOlMBUS7ZZb03AzKB8+YB4AHx0RoVkQSCknCDBwN+QVl8ybVE/LD8LrsrRpqlEo243pC77nB YdvFVnabehg5VS3EwlbmiUxPjpG9JlA== ARC-Authentication-Results: i=1; outbound2.eu.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=pgJqafn5uk6tEC3T7eNHI/58+mB+efjt+09YrqsBRTk=; b=iAUCz2fibg3MYysaX10tLjIRy85VcS1l5MBZbkW6CurLXhBz4aVOoXphL8bUZ3Gu7NyYlisKxBcQb fj0ZRQX1QXqqGQSIJWV91p5+pvXOOWs9VRRpWj7vzHxe4oFoH1PjUFTYdm57z7RWbONSZKAQynRtFp XYOvB09juGq/2ro+c7OPbvBGeH8aPt9FBvUpMng9r7rTtrf4nFkIJHCkLfIchRJ6435KD3PC9e748W ZOkIV8zydK8nQAbDsSHRQ1/HR0ilKnrnzxXwOotMEGml3cSF69/tqi0/iFzxdyKb6rLrKj+KaFhv38 VfxJs4gAD9zgFEyhqhzWz9kEUP8Qtqg== X-MHO-RoutePath: aGlwcGll X-MHO-User: 3321fe4d-9393-11e9-b1d6-935efd94926c X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound2.eu.mailhop.org (Halon) with ESMTPSA id 3321fe4d-9393-11e9-b1d6-935efd94926c; Thu, 20 Jun 2019 19:40:05 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x5KJe3pQ027288; Thu, 20 Jun 2019 13:40:03 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: NanoBSD cust_pkgng problem.... From: Ian Lepore To: Karl Denninger , freebsd-embedded@freebsd.org Date: Thu, 20 Jun 2019 13:40:03 -0600 In-Reply-To: <27515540-54ef-6e7e-1b87-9be875b54c22@denninger.net> References: <27515540-54ef-6e7e-1b87-9be875b54c22@denninger.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: AFC8E93DC5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.982,0]; ASN(0.00)[asn:16509, ipnet:52.58.0.0/15, country:US] X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jun 2019 19:40:16 -0000 On Thu, 2019-06-20 at 13:16 -0500, Karl Denninger wrote: > I'm trying to rebuild 12-STABLE with current code with the following > for > the PCEngines systems. > > NANO_NAME=pcengines > NANO_SRC=/usr/src > NANO_KERNEL=KSD-SMP > NANO_IMAGES=2 > NANO_MODULES="default" > > #NANO_DRIVE=ad0 > NANO_DRIVE=mmcsd0 > > NANO_RAM_ETCSIZE=30720 > #NANO_RAM_TMPVARSIZE=30720 > NANO_RAM_TMPVARSIZE=131072 > > NANO_PACKAGE_DIR=/work/PKG-AMD64-12/pkg > > # Configuration slice size set to 64Mb > # > NANO_CONFSIZE=$((64*1000*1000/512)) > # > # Set "data" partition to 512MB > # > NANO_DATASIZE=$((512*1000*1000/512)) > > NANO_OBJ="/work/Crochet-work-AMD/obj" > > NANO_PMAKE="make -j 8" > > # 7.5Gb SD image; will fit on a 8Gb card, but is REAL tight! > #NANO_MEDIASIZE=$((7*1000*1000*1000/512 + 1000*1000*512/512)) > # > # 12Gb SD image; fits on 16Gb SD card and has more room for packages > NANO_MEDIASIZE=$((12*1000*1000*1000/512)) > > The packages are in /work/PKG-AMD64-12 as expected. I have a little > script that gets them which is: > > PKGDIR='/work/PKG-AMD64-12' > export PKGDIR > PKG_CACHEDIR=/work/PKG-AMD64-12/cache > export PKG_CACHEDIR > > ABI=FreeBSD:12:amd64 > export ABI > > pkg -R . -r . -o $PKGDIR/pkgs fetch -d \ > bind914 rsync sshguard strongswan dhcp6 \ > net-snmp ntimed openvpn flashrom dmidecode > # net-snmp ntimed openvpn flashrom dmidecode ssmtp > # bind914 rsync sshguard strongswan dhcp6 isc-dhcp44-server \ > > rm -rf $PKGDIR/pkg > mkdir -p $PKGDIR/pkg > > cd $PKG_CACHEDIR > find . -type l -print -exec cp {} ../pkg \; > > /work/PKG-AMD64-12 has a repo.conf file and such; I use the same > mechanism to fetch for Crochet for the ARM64 platforms. > > Note the two commented lines. If I include EITHER ssmpt or > isc-dhcp44-server cust_pkgng fails, but the error simply says the > install failed without a reason for it. > > If I do NOT include those two the build succeeds. Neither of them, > if I > add them back in, discloses a missing dependency or similar. > > pkg: Cannot open /dev/null:No such file or directory > Extracting flashrom-1.0_1: ........ done > Message from python27-2.7.16_1: > > ===================================================================== > ====== > > Note that some standard Python modules are provided as separate ports > as they require additional dependencies. They are available as: > > bsddb databases/py-bsddb > gdbm databases/py-gdbm > sqlite3 databases/py-sqlite3 > tkinter x11-toolkits/py-tkinter > > ===================================================================== > ====== > + CR 'env BATCH=YES ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg > SIGNATURE_TYPE=none /usr/sbin/pkg add /_.p/gettext-runtime- > 0.20.1.txz' > + chroot /work/Crochet-work-AMD/obj/_.w /bin/sh -exc 'env BATCH=YES > ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg SIGNATURE_TYPE=none > /usr/sbin/pkg add /_.p/gettext-runtime-0.20.1.txz' > + env 'BATCH=YES' 'ASSUME_ALWAYS_YES=YES' 'PKG_DBDIR=/var/db/pkg' > 'SIGNATURE_TYPE=none' /usr/sbin/pkg add /_.p/gettext-runtime- > 0.20.1.txz > Installing gettext-runtime-0.20.1... > the most recent version of gettext-runtime-0.20.1 is already > installed > + CR 'env BATCH=YES ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg > SIGNATURE_TYPE=none /usr/sbin/pkg add /_.p/icu-64.2,1.txz' > + chroot /work/Crochet-work-AMD/obj/_.w /bin/sh -exc 'env BATCH=YES > ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg SIGNATURE_TYPE=none > /usr/sbin/pkg add /_.p/icu-64.2,1.txz' > + env 'BATCH=YES' 'ASSUME_ALWAYS_YES=YES' 'PKG_DBDIR=/var/db/pkg' > 'SIGNATURE_TYPE=none' /usr/sbin/pkg add /_.p/icu-64.2,1.txz > Installing icu-64.2,1... > the most recent version of icu-64.2,1 is already installed > + CR 'env BATCH=YES ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg > SIGNATURE_TYPE=none /usr/sbin/pkg add /_.p/indexinfo-0.3.1.txz' > + chroot /work/Crochet-work-AMD/obj/_.w /bin/sh -exc 'env BATCH=YES > ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg SIGNATURE_TYPE=none > /usr/sbin/pkg add /_.p/indexinfo-0.3.1.txz' > + env 'BATCH=YES' 'ASSUME_ALWAYS_YES=YES' 'PKG_DBDIR=/var/db/pkg' > 'SIGNATURE_TYPE=none' /usr/sbin/pkg add /_.p/indexinfo-0.3.1.txz > Installing indexinfo-0.3.1... > the most recent version of indexinfo-0.3.1 is already installed > + CR 'env BATCH=YES ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg > SIGNATURE_TYPE=none /usr/sbin/pkg add /_.p/isc-dhcp44-server- > 4.4.1_4.txz' > + chroot /work/Crochet-work-AMD/obj/_.w /bin/sh -exc 'env BATCH=YES > ASSUME_ALWAYS_YES=YES PKG_DBDIR=/var/db/pkg SIGNATURE_TYPE=none > /usr/sbin/pkg add /_.p/isc-dhcp44-server-4.4.1_4.txz' > + env 'BATCH=YES' 'ASSUME_ALWAYS_YES=YES' 'PKG_DBDIR=/var/db/pkg' > 'SIGNATURE_TYPE=none' /usr/sbin/pkg add /_.p/isc-dhcp44-server- > 4.4.1_4.txz > Installing isc-dhcp44-server-4.4.1_4... > pkg: Cannot open /dev/null:No such file or directory > > Failed to install the following 1 package(s): > /_.p/isc-dhcp44-server-4.4.1_4.txz > + umount /work/Crochet-work-AMD/obj/_.w/_.p > + rm -rf /work/Crochet-work-AMD/obj/_.w/_.p > + echo 'NANO RM -rf /work/Crochet-work-AMD/obj/_.w/_.p' > NANO RM -rf /work/Crochet-work-AMD/obj/_.w/_.p > + uname -r > + command rm -x -rf /work/Crochet-work-AMD/obj/_.w/_.p > > Note that's not the "can't open /dev/null" complaint since that > appears > up above (and in fact a bunch of other times previously as well) and > doesn't blow the install up. But *something* is causing the install > for > those two packages -- and only these two, as the other ~40 odd with > dependencies are fine -- to exit non-zero and blow up the build. > > It's tough to run this down without an error message that tells me > exactly what it's upset about. > > Any ideas? > I think it's a mistake to ignore the /dev/null errors. It's quite possible that the error is non-fatal when installing some packages and fatal when installing others. The message indicates you need to mount devfs within the chroot or jail being used to run pkg. -- Ian