Bug 191202 - ports-mgmt/pkg does not work properly on HEAD/armeb due to pkg-static failing
Summary: ports-mgmt/pkg does not work properly on HEAD/armeb due to pkg-static failing
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Many People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-20 00:59 UTC by jmg
Modified: 2014-12-29 23:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jmg 2014-06-20 00:59:06 UTC
when trying to install a port, it fails...  See:
FreeBSD avila.funkthat.com 11.0-CURRENT FreeBSD 11.0-CURRENT #28 r267333:267349M: Wed Jun 18 16:49:41 PDT 2014     jmg@carbon.funkthat.com:/usr/obj/arm.armeb/usr/src.avila/sys/AVILA  arm

See the thread for more info:
https://www.freebsd.org/cgi/mid.cgi?20140619184515.GA35207@zibbi.meraka.csir.co.za

How-To-Repeat:
On an armeb machine, like the AVILA board, run:
portsnap fetch
portsnap extract
cd /usr/ports/*/gettext
make install

See output:
# make install
===>  Installing for gettext-0.18.3.1_1
===>  Checking if devel/gettext already installed
pkg-static: failed to find the version elf note
===>   Registering installation for gettext-0.18.3.1_1
pkg-static: failed to find the version elf note
pkg-static: failed to find the version elf note
Installing gettext-0.18.3.1_1...pkg-static: package field incomplete: architecture
pkg-static: the package is not valid
pkg-static: sqlite: cannot rollback - no transaction is active
*** Error code 70

Stop.
make[1]: stopped in /usr/ports/devel/gettext
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/gettext

Fix:
change how pkg identifies which arch it is on so that it uses the same
method as other parts, like gdb, or the kernel..
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-06-25 03:01:21 UTC
Over to maintainers.
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2014-12-29 23:34:51 UTC
It has been fixed in the meantime