Bug 239158

Summary: lang/rust: fix build on elfv1 powerpc64
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: FreeBSD Rust Team <rust>
Status: Closed FIXED    
Severity: Affects Only Me CC: linimon, mikael.urankar, rust
Priority: --- Flags: bugzilla: maintainer-feedback? (rust)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch
none
v2
none
v3
none
v4 none

Description Piotr Kubaj freebsd_committer 2019-07-12 12:19:54 UTC
Created attachment 205713 [details]
patch

On powerpc64 elfv1, "-elfv1" must be removed from bootstrap names to be found.
Comment 1 Piotr Kubaj freebsd_committer 2019-07-12 12:45:31 UTC
Created attachment 205715 [details]
v2

Make the patch also work on elfv2.
Comment 2 mikael.urankar 2019-07-12 14:03:25 UTC
typo: elvf1 -> elfv1
Comment 3 Piotr Kubaj freebsd_committer 2019-07-12 14:06:12 UTC
Created attachment 205716 [details]
v3

Corrected.
Comment 4 Tobias Kortkamp freebsd_committer 2019-07-14 05:44:15 UTC
Created attachment 205758 [details]
v4

The suggested patches are very hacky.  Let's do some cleanup at the
same time which is pending anyway.

Can you try this patch instead?
Comment 5 Piotr Kubaj freebsd_committer 2019-07-15 15:17:15 UTC
(In reply to Tobias Kortkamp from comment #4)
Yes, this patch helps.
Comment 6 commit-hook freebsd_committer 2019-07-15 15:27:56 UTC
A commit references this bug:

Author: tobik
Date: Mon Jul 15 15:27:29 UTC 2019
New revision: 506669
URL: https://svnweb.freebsd.org/changeset/ports/506669

Log:
  lang/rust: Clean up bootstrap handling

  Fix handling of BOOTSTRAPS_SUFFIX.  On powerpc64 the -elfv1 suffix
  needs to be stripped from the bootstraps since Rust expects them
  without it.

  PR:		239158
  Reported by:	pkubaj

Changes:
  head/lang/rust/Makefile