NetBSD Problem Report #55475
From mlh@goathill.org Fri Jul 10 01:06:24 2020
Return-Path: <mlh@goathill.org>
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 C7C581A9213
for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Jul 2020 01:06:23 +0000 (UTC)
Message-Id: <20200710010621.268B212AB8@chopper.goathill.org>
Date: Thu, 9 Jul 2020 21:06:21 -0400 (EDT)
From: mlh@goathill.org
Reply-To: mlh@goathill.org
To: gnats-bugs@NetBSD.org
Subject: firefox requires rust-bin when rust-src is specified
X-Send-Pr-Version: 3.95
>Number: 55475
>Category: pkg
>Synopsis: /www/firefox doesn't seem to obey RUST_TYPE=src in /etc/mk.conf
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: ryoon
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 10 01:10:00 +0000 2020
>Last-Modified: Sun Jul 12 16:10:01 +0000 2020
>Originator: MLH
>Release: NetBSD 9.99.69
>Organization:
>Environment:
System: NetBSD tiamat 9.99.69 NetBSD 9.99.69 (GENERIC) #0: Tue Jul 7 13:03:45
EDT 2020 .../usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
With rust-1.44.1 (source version) installed and RUST_TYPE=src specified in
/etc/mk.conf, firefox still requires rust-bin. PKG_OPTIONS.firefox doesn't
appear to support rust options. Also, rust-bin is only for NetBSD 8 (apparently
unless compat 8 is compiled in).
>How-To-Repeat:
$ pkg_info | grep rust
rust-1.44.1 Safe, concurrent, practical language
$ grep RUST /etc/mk.conf
RUST_TYPE=src
$ cd /usr/pkgsrc/www/firefox
$ make
...
=> Build dependency rust-bin>=1.41.0: NOT found
...
===> Installing binary package of rust-bin-1.44.0
pkg_add: Package `rust-bin-1.44.0' conflicts with `rust-[0-9]*', and `rust-1.44.1' is installed.
pkg_add: Installed package `rust-1.44.1' conflicts with `rust-bin-[0-9]*' when trying to install `rust-bin-1.44.0'.
pkg_add: 1 package addition failed
*** Error code 1
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Fri, 10 Jul 2020 10:19:13 +0000
Responsible-Changed-Why:
Over to maintainer.
While here, fix 'confidential' setting.
From: nia <nia@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/55475: firefox requires rust-bin when rust-src is specified
Date: Sun, 12 Jul 2020 10:28:44 +0000
I suspect you need to clean your `work` directories so the new setting is picked
up if you attempted to build Firefox before changing RUST_TYPE.
> Also, rust-bin is only for NetBSD 8 (apparently unless compat 8 is compiled in).
It's for 8, 9, and newer. GENERIC netbsd kernels have no problems running
binaries from older versions, and the assumption is that people don't
remove random kernel options. If you have compat disabled you won't be
able to build Rust from source anyway, since the bootstrapping process uses
NetBSD 8.0 binaries...
From: mlh@goathill.org (MLH)
To: gnats-bugs@netbsd.org
Cc: ryoon@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
mlh@goathill.org
Subject: Re: pkg/55475: firefox requires rust-bin when rust-src is specified
Date: Sun, 12 Jul 2020 12:06:50 -0400 (EDT)
nia wrote:
> The following reply was made to PR pkg/55475; it has been noted by GNATS.
>
> From: nia <nia@NetBSD.org>
> To: gnats-bugs@netbsd.org
> Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
> Subject: Re: pkg/55475: firefox requires rust-bin when rust-src is specified
> Date: Sun, 12 Jul 2020 10:28:44 +0000
>
> I suspect you need to clean your `work` directories so the new setting is picked
> up if you attempted to build Firefox before changing RUST_TYPE.
I ran "make clean" before each attempt. I build packages using
pkg_comp1. Twice now I deleted all packages, removed the whole
chroot including the work directory, built it all over again with
rust (src) specified before firefox and it still failed. However,
I started all over yet once again, and after updating pkgsrc again
and it appears that it is working with rust-src this time. Both
rust-src and firefox were updated in pkgsrc this time.
Thanks
> > Also, rust-bin is only for NetBSD 8 (apparently unless compat 8 is compiled in).
>
> It's for 8, 9, and newer. GENERIC netbsd kernels have no problems running
> binaries from older versions, and the assumption is that people don't
> remove random kernel options. If you have compat disabled you won't be
> able to build Rust from source anyway, since the bootstrapping process uses
> NetBSD 8.0 binaries...
And yet it doesn't run rustc, even though I used a GENERIC kernel
which certainly should :
# NetBSD backward compatibility. Support goes from COMPAT_15 up until
# the latest release. Note that really old compat (< COMPAT_16) is only
# useful for 32-bit i386 binaries.
include "conf/compat_netbsd15.config"
$ /usr/pkgnew/bin/rustc
/bin/sh: Cannot execute ELF binary /usr/pkgnew/bin/rustc
$ ls -l /usr/pkgnew/bin/rustc
-rwxr-xr-x 1 root wheel 12800 Jul 7 11:40 /usr/pkgnew/bin/rustc
Using:
options DEBUG_EXEC
options DEBUG_ELF
$ /usr/pkgnew/bin/rustc
/usr/pkgnew/bin/rustc: Exec format error. Binary file not executable.
[ 119.1513362] netbsd_elf64_signature: not netbsd
[ 119.1513362] elf32_check_header: bad magic e_ident[EI_MAG0,EI_MAG3] 0x7f454c46 , e_ident[EI_CLASS] 0x2
[ 119.1513362] elf32_check_header: bad magic e_ident[EI_MAG0,EI_MAG3] 0x7f454c46 , e_ident[EI_CLASS] 0x2
[ 119.1513362] netbsd_elf64_signature: not netbsd
[ 119.1513362] elf32_check_header: bad magic e_ident[EI_MAG0,EI_MAG3] 0x7f454c46 , e_ident[EI_CLASS] 0x2
[ 119.1513362] elf32_check_header: bad magic e_ident[EI_MAG0,EI_MAG3] 0x7f454c46 , e_ident[EI_CLASS] 0x2
>Unformatted:
(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.