NetBSD Problem Report #55398

From hf@spg.tu-darmstadt.de  Fri Jun 19 13:56:46 2020
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E9AF61A9217
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 19 Jun 2020 13:56:46 +0000 (UTC)
Message-Id: <202006191356.05JDuckZ001953@Gstoder.nt.e-technik.tu-darmstadt.de>
Date: Fri, 19 Jun 2020 15:56:38 +0200 (CEST)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: devel/bmake broken on FreeBSD
X-Send-Pr-Version: 3.95

>Number:         55398
>Category:       pkg
>Synopsis:       devel/bmake broken on FreeBSD
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 19 14:00:00 +0000 2020
>Last-Modified:  Sun Aug 23 09:00:03 +0000 2020
>Originator:     Hauke Fath
>Release:        NetBSD 9.0_STABLE
>Organization:
Technische Universitaet Darmstadt
>Environment:


System: FreeBSD XXX 11.1-STABLE FreeBSD 11.1-STABLE #1: Tue Mar 27 16:58:59 CEST 2018     xxx@yyy:/var/obj/freebsd/amd/hochstuhl/public/freebsd-11/sys/GENERIC  amd64
Architecture: x86_64
Machine: amd64
>Description:

	After updating devel/bmake, I am greeted with

%  pwd
/misc/pkgsrc/devel/bmake
% bmake
===> Installing dependencies for bmake-20200524nb1
ERROR: [depends.mk] Installed package checkperms-1.12 has an
ERROR:     object format ``ELF'' which differs from ``a.out''.  Please
ERROR:     update the checkperms-1.12 package to a.out.
*** Error code 1

Stop.

	This message shows up for all builds from then on.

	Just running bmake from the build directory does not have this
	fallout, so maybe the problem is in the mk files?


>How-To-Repeat:

	Update packages on a FreeBSD machine. Find that after updating
	bmake, things come to pieces.


>Fix:
	Yes, please.



>Release-Note:

>Audit-Trail:
From: Sevan Janiyan <sevan@NetBSD.org>
To: "gnats-bugs@netbsd.org" <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/55398: devel/bmake broken on FreeBSD
Date: Fri, 19 Jun 2020 15:21:46 +0100

 On 19/06/2020 15:00, Hauke Fath wrote:
 > % bmake
 > ===> Installing dependencies for bmake-20200524nb1
 > ERROR: [depends.mk] Installed package checkperms-1.12 has an
 > ERROR:     object format ``ELF'' which differs from ``a.out''.  Please
 > ERROR:     update the checkperms-1.12 package to a.out.
 > *** Error code 1

 hmm, I don't see that on FreeBSD-CURRENT, running "bmake update" results in

 devel/bmake:
 ===> Installing binary package of bmake-20200524nb1
 pkg_add: A different version of bmake-20200524nb1 is already installed:
 bmake-20150505
 pkg_add: 1 package addition failed

 lang/perl5
 ===> Installing binary package of perl-5.30.3
 pkg_add: package `perl-5.30.3' was already installed as dependency, now
 marked as installed manually


 FreeBSD 13.0-CURRENT #0 r362034: Thu Jun 11 04:10:59 BST 2020

 mk.conf additions:
 PKG_DEVELOPER=          yes
 X11_TYPE=               modular
 SKIP_LICENSE_CHECK=     yes
 MAKE_JOBS=              4
 SSL_CA_CERT_FILE=       /etc/ssl/cert.pem
 MASTER_SORT_REGEX=      http://.*/
 WRKOBJDIR=/var/tmp/foo
 PKGSRC_USE_CTF=yes
 STRIP_DEBUG=yes


 Sevan

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
        Sevan Janiyan <sevan@netbsd.org>
Subject: Re: pkg/55398: devel/bmake broken on FreeBSD
Date: Fri, 19 Jun 2020 20:04:35 +0200

 On Fri, 19 Jun 2020 14:25:01 +0000 (UTC), Sevan Janiyan wrote:
 >  On 19/06/2020 15:00, Hauke Fath wrote:
 >  > % bmake
 >  > ===> Installing dependencies for bmake-20200524nb1
 >  > ERROR: [depends.mk] Installed package checkperms-1.12 has an
 >  > ERROR:     object format ``ELF'' which differs from ``a.out''.  Please
 >  > ERROR:     update the checkperms-1.12 package to a.out.
 >  > *** Error code 1
 >  
 >  hmm, I don't see that on FreeBSD-CURRENT, running "bmake update" results in
 >  
 >  devel/bmake:
 >  ===> Installing binary package of bmake-20200524nb1
 >  pkg_add: A different version of bmake-20200524nb1 is already installed:
 >  bmake-20150505
 >  pkg_add: 1 package addition failed

 I guess the above reads less clear than it was to me when I wrote it... 
 sorry. You seem to have problems updating bmake, while my problems 
 start when I run the updated bmake.

 To start at the end, a 'pkg_rolling-replace -X bmake' run successfully 
 completed.

 After building devel/bmake, when I run the bmake binary from the build 
 directory without installing the newly-built package: 

 [...]
 ===> Building binary package for bmake-20200524nb1
 => Creating binary package 
 /var/obj/pkgsrc/packages/All/bmake-20200524nb1.tgz
 [me@Here] /<2>devel/bmake > cd ../../pkgtools/digest/
 [me@Here] /<2>pkgtools/digest > 
 /var/obj/pkgsrc/devel/bmake/work/bmake/bmake clean
 ===> Cleaning for cwrappers-20180325
 ===> Cleaning for digest-20190127
 [me@Here] /<2>pkgtools/digest > 
 /var/obj/pkgsrc/devel/bmake/work/bmake/bmake package
 ===> Installing dependencies for digest-20190127
 ERROR: [depends.mk] Installed package cwrappers-20180325 has an
 ERROR:     object format ``ELF'' which differs from ``a.out''.  Please
 ERROR:     update the cwrappers-20180325 package to a.out.
 *** Error code 1

 Stop.
 bmake: stopped in /misc/pkgsrc/pkgtools/digest
 [me@Here] /<2>pkgtools/digest > bmake
 ===> Installing dependencies for digest-20190127
 => Build dependency cwrappers>=20150314: found cwrappers-20180325
 ===> Checking for vulnerabilities in digest-20190127
 ===> Overriding tools for digest-20190127
 ===> Extracting for digest-20190127
 ===> Patching for digest-20190127
 ===> Creating toolchain wrappers for digest-20190127
 ===> Configuring for digest-20190127
 => Modifying GNU configure scripts to avoid --recheck
 [...]

 -- while the old 

 %  ls -l /opt/local/bin/bmake 
 -rwxr-xr-x  1 root  wheel  179248 Oct 11  2019 /opt/local/bin/bmake
 %

 binary works fine.

 FTR, mk.conf has

 ABI=                    64
 PKGSRC_COMPILER=        clang
 CC=                     clang
 CXX=                    clang++
 CPP=                    ${CC} -E
 CLANGBASE=              /usr

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Wed, 24 Jun 2020 11:49:27 +0000
Responsible-Changed-Why:
Jörg, can you please give it a look?
(over to MAINTAINER)


Responsible-Changed-From-To: joerg->nia
Responsible-Changed-By: joerg@NetBSD.org
Responsible-Changed-When: Wed, 24 Jun 2020 12:03:59 +0000
Responsible-Changed-Why:
I didn't do an update without talking to the MAINTAINER.


Responsible-Changed-From-To: nia->freebsd-pkg-people
Responsible-Changed-By: nia@NetBSD.org
Responsible-Changed-When: Wed, 24 Jun 2020 14:01:18 +0000
Responsible-Changed-Why:


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/55398: devel/bmake broken on FreeBSD
Date: Sun, 23 Aug 2020 08:58:55 +0000

 On Fri, Jun 19, 2020 at 02:00:00PM +0000, Hauke Fath wrote:
  > 	After updating devel/bmake, I am greeted with
  > 
  > %  pwd
  > /misc/pkgsrc/devel/bmake
  > % bmake
  > ===> Installing dependencies for bmake-20200524nb1
  > ERROR: [depends.mk] Installed package checkperms-1.12 has an
  > ERROR:     object format ``ELF'' which differs from ``a.out''.  Please
  > ERROR:     update the checkperms-1.12 package to a.out.
  > *** Error code 1
  > 
  > Stop.
  > 	
  > 	This message shows up for all builds from then on.

 That is bizarre.

  > 	Just running bmake from the build directory does not have this
  > 	fallout, so maybe the problem is in the mk files?

 That seems likely. Except, none of the .mk files that the bmake
 package installs should be used by pkgsrc, except for sys.mk, which
 is not supposed to contain anything that isn't suitable for everyone
 everywhere in all circumstances.

 If you still have the borked bmake and its mk files, what happens if
 you run the borked make without installing it and use -m to point at
 its make library? If that breaks, we at least know what's going on,
 and then maybe try substituting files (try sys.mk first) to see which
 one causes the problem.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.