Bug 243758 - package builder generates broken binaries for powerpc64 on head
Summary: package builder generates broken binaries for powerpc64 on head
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Package Infrastructure (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Many People
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-31 12:26 UTC by Piotr Kubaj
Modified: 2020-03-26 12:32 UTC (History)
5 users (show)

See Also:


Attachments
patch (688 bytes, patch)
2020-03-11 14:57 UTC, Piotr Kubaj
no flags Details | Diff
patch (662 bytes, patch)
2020-03-11 21:58 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (portmgr)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2020-01-31 12:26:57 UTC
# mkdir chroot
# cd chroot
# fetch https://download.freebsd.org/ftp/snapshots/powerpc/powerpc64/13.0-CURRENT/base.txz
# tar xf base.txz 
# chroot .
# echo nameserver 192.168.1.1 > /etc/resolv.conf
# pkg update
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:powerpc64/latest, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.12.0...
Extracting pkg-1.12.0: 100%
pkg-static: Cannot open /dev/null:No such file or directory
Segmentation fault (core dumped)
# pkg install bash
Segmentation fault (core dumped)
# /usr/local/sbin/pkg-static install bash
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01    
Fetching packagesite.txz: 100%    5 MiB   1.2MB/s    00:04    
Processing entries: 100%
FreeBSD repository update completed. 23919 packages processed.
All repositories are up to date.
Updating database digests format: 100%
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        bash: 5.0.11
        indexinfo: 0.3.1
        gettext-runtime: 0.20.1

Number of packages to be installed: 3

The process will require 10 MiB more space.
2 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/3] Fetching bash-5.0.11.txz: 100%    1 MiB 150.9kB/s    00:10    
[2/3] Fetching indexinfo-0.3.1.txz: 100%    6 KiB   6.1kB/s    00:01    
[3/3] Fetching gettext-runtime-0.20.1.txz: 100%  153 KiB 157.0kB/s    00:01    
Checking integrity... done (0 conflicting)
[1/3] Installing indexinfo-0.3.1...
[1/3] Extracting indexinfo-0.3.1: 100%
[2/3] Installing gettext-runtime-0.20.1...
[2/3] Extracting gettext-runtime-0.20.1: 100%
[3/3] Installing bash-5.0.11...
[3/3] Extracting bash-5.0.11: 100%
# bash
Segmentation fault (core dumped)



This is because pylon still uses ELFv1, while head switched to ELFv2 over a month ago.

Please update pylon to ELFv2 so that it generates working binaries.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2020-02-04 00:14:31 UTC
While this is pending, I have created an (unofficial!) elvf2 package set for testing.  Please see:

  http://69.55.238.58/FreeBSD/packages.html
Comment 2 Piotr Kubaj freebsd_committer freebsd_triage 2020-03-11 14:57:25 UTC
Created attachment 212333 [details]
patch

With clusteradm's incompetence regarding reinstalling pylon in the past 2 months, I'd like to mark CURRENT ELFv1 as unsupported so that users are not confused when trying to install packages and finding out they don't work.

Is that patch OK?

powerpc64 switched to ELFv2 with 1300070.
Comment 3 Piotr Kubaj freebsd_committer freebsd_triage 2020-03-11 21:58:43 UTC
Created attachment 212341 [details]
patch

The upper bound is not necessary, we should only check for head and ELFv1.
Comment 4 Piotr Kubaj freebsd_committer freebsd_triage 2020-03-26 12:32:37 UTC
Closing since this seems to have been fixed. Let's hope there won't be ELFv3 :)

Thanks for your hard work on this issue!