TritonDataCenter / pkgsrc-legacy

Automatically updated conversion of the "pkgsrc" module from anoncvs.netbsd.org
http://www.pkgsrc.org
127 stars 64 forks source link

smartmontools on http://pkgsrc.joyent.com/packages/Darwin/2014Q4/i386 is built for x86_64 #237

Closed datashadow closed 9 years ago

datashadow commented 9 years ago

When attempting to install smartmontools from Joyent on a 32bit OSX system pkgin complains that the package has been built for a 64bit architecture.

This was on a completely clean install using the curl http://pkgsrc.joyent.com/packages/Darwin/bootstrap/bootstrap-2014Q4-i386.tar.gz | sudo tar -zxpf - -C / installation setup.

Thanks.

David

$ sudo pkgin install smartmontools
calculating dependencies... done.

nothing to upgrade.
1 packages to be installed: smartmontools-6.2nb2 (483K to download, 1386K to install)

proceed ? [Y/n] yes
downloading packages...
smartmontools-6.2nb2.tgz                                                                                                                                                                            100%  483KB 482.6KB/s 482.6KB/s   00:00
installing packages...
installing smartmontools-6.2nb2...
===========================================================================
$NetBSD: MESSAGE,v 1.1 2013/12/02 22:26:22 asau Exp $

smartd warning emails
---------------------

Since smartmontools release 6.1, smartd runs /usr/pkg/etc/smartd_warning.sh
to generate warning emails.  If requested, it will also run executable
plugin scripts from /usr/pkg/etc/smartd_warning.d.

===========================================================================
pkg_install warnings: 1, errors: 0
pkg_install error log can be found in /var/db/pkgin/pkg_install-err.log
reading local summary...
processing local summary...
updating database:  88%
/!\ Warning /!\ x86_64 doesn't match your current architecture (i386)
You probably want to modify /usr/pkg/etc/pkgin/repositories.conf.
Still want to proceed ? [y/N] n
$ cat /usr/pkg/etc/pkgin/repositories.conf
# $Id: repositories.conf,v 1.3 2012/06/13 13:50:17 imilh Exp $
#
# Pkgin repositories list
#
# Simply add repositories URIs one below the other
#
# WARNING: order matters, duplicates will not be added, if two
# repositories hold the same package, it will be fetched from
# the first one listed in this file.
#
# This file format supports the following macros:
# $arch to define the machine hardware platform
# $osrelease to define the release version for the operating system
#
# Remote ftp repository
#
# ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/$arch/5.1/All
#
# Remote http repository
#
# http://mirror-master.dragonflybsd.org/packages/$arch/DragonFly-$osrelease/stable/All
#
# Local repository (must contain a pkg_summary.gz or bz2)
#
# file:///usr/pkgsrc/packages/All
#
http://pkgsrc.joyent.com/packages/Darwin/2014Q4/i386/All
$ tail -13  /var/db/pkgin/pkg_install-err.log
---Feb 05 15:07:25: installing smartmontools-6.2nb2...
pkg_add: Warning: package `smartmontools-6.2nb2' was built for a platform:
pkg_add: Darwin/x86_64 13.4.0 (pkg) vs. Darwin/i386 11.4.2 (this host)
/usr/pkg/.pkgdb/smartmontools-6.2nb2/+INSTALL: line 528: /usr/pkg/bin/nbsed: No such file or directory
/usr/pkg/.pkgdb/smartmontools-6.2nb2/+INSTALL: line 904: /usr/pkg/bin/nbsed: No such file or directory
./+DIRS: line 92: /usr/pkg/bin/nbsed: No such file or directory
./+DIRS: line 180: /usr/pkg/bin/nbsed: No such file or directory
./+FILES: line 112: /usr/pkg/bin/nbsed: No such file or directory
./+FILES: line 224: /usr/pkg/bin/nbsed: No such file or directory
./+DIRS: line 206: /usr/pkg/bin/nbsed: No such file or directory
./+DIRS: line 281: /usr/pkg/bin/nbsed: No such file or directory
./+FILES: line 266: /usr/pkg/bin/nbsed: No such file or directory
./+FILES: line 349: /usr/pkg/bin/nbsed: No such file or directory
$
datashadow commented 9 years ago

Never mind. Upon further investigation I found that I still had an old installation lingering.