Re: http://pkg.freebsd.org only has freebsd:11:aarch64:64 for aaarch64? How to boostrap aarch64 pkg for head (12-CURRENT)?

From: Allan Jude <allanjude_at_freebsd.org>
Date: Mon, 7 Nov 2016 15:28:35 -0500
On 2016-11-07 15:19, Mark Millard wrote:
> It looks like http://pkg.freebsd.org is still back as of head being 11-CURRENT: http://pkg.freebsd.org shows only
> 
> 	• freebsd:11:aarch64:64
> 
> (as http://pkg.freebsd.org/freebsd%3A11%3Aaarch64%3A64 ).
> 
> So on 12-CURRENT pkg bootstrapping gets:
> 
>> # pkg
>> 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:12:aarch64/latest, please wait...
>> pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:12:aarch64/latest/Latest/pkg.txz: Not Found
>> A pre-built version of pkg could not be found for your system.
>> Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
> 
> but ld is also missing at this stage so one cannot link anything --and pkg is not a route to make an ld available.
> 
> So how does one currently bootstrap a 12-CURRENT pkg for aarch64 (context: pine64+ 2GB)?
> 
> Create a /usr/local/etc/pkg/repos/FreeBSD.conf to reference FreeBSD:11:aarch64 ? That just reports the wrong architecture is being attempted:
> 
>> # pkg
>> 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:11:aarch64/latest, please wait...
>> Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
>> pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
>> Installing pkg-1.9.2...
>> pkg-static: wrong architecture: FreeBSD:11:aarch64 instead of FreeBSD:12:aarch64
>>
>> Failed to install the following 1 package(s): /tmp//pkg.txz.zkdHp2
> 
> 
> pkg-static install -f pkg fetches meta.txz and packagesite.txz first but then also reports "wrong architecture":
> 
>> # pkg-static install -f pkg
>> pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
>> Updating FreeBSD repository catalogue...
>> Fetching meta.txz: 100%    944 B   0.9kB/s    00:01    
>> Fetching packagesite.txz: 100%    4 MiB   4.3MB/s    00:01    
>> Processing entries:   0%
>> pkg-static: wrong architecture: freebsd:11:aarch64:64 instead of FreeBSD:12:aarch64
>> pkg-static: repository FreeBSD contains packages with wrong ABI: freebsd:11:aarch64:64
>> Processing entries: 100%
>> Unable to update repository FreeBSD
>> All repositories are up-to-date.
>> pkg-static: Repository FreeBSD cannot be opened. 'pkg update' required
>> pkg-static: No packages available to install matching 'pkg' have been found in the repositories
> 
> 
> 
> 
> Context details (was cross built from amd64 head -r308247):
> 
>> # uname -apKU
>> FreeBSD pine64 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r308247M: Thu Nov  3 07:10:44 PDT 2016     markmi_at_FreeBSDx64:/usr/local/src/crochet/work/obj/arm64.aarch64/usr/src/sys/GENERIC-NODBG  arm64 aarch64 1200014 1200014
> 
> 
>> # svnlite info /usr/ports | grep "Re[lv]"
>> Relative URL: ^/head
>> Revision: 424540
>> Last Changed Rev: 424540
> 
> 
> 
> ===
> Mark Millard
> markmi at dsl-only.net
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 

Until the 12 packages are built, you can cheat:

env ABI=freebsd:11:aarch64:64 pkg bootstrap


-- 
Allan Jude


Received on Mon Nov 07 2016 - 19:28:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:08 UTC