Subject: some issue with $OPSYS ?.. (Re: package > pkgsrc feature possible?)
To: None <tech-pkg@NetBSD.org>
From: Charlie Allom <charlie@rubberduck.com>
List: tech-pkg
Date: 02/11/2004 22:24:27
--Apple-Mail-16--592779665
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


On 11/02/2004, at 10:05 PM, Gavan Fantom wrote:

> On Wed, 11 Feb 2004, Juan RP wrote:
>>
>> I think dependencies will be installed correctly, because bin-install  
>> calls
>> pkg_add internally, which handle them automatically :-)
>
> There is one caveat with this - if a binary package depends on a  
> package
> which isn't there, that dependency will fail. It can not build a
> dependency of a binary package from source.
>
> So if you delete a binary package, make damn sure you delete anything  
> that
> depends on it.
>

so pkg_delete -r? :)

now I have another issue with this. I am using Grant's prebuilt  
packages, and pkgsrc seems to think it is running on NetBSD!

ps feel free to nit pick my mk.conf :)



22:19 lazy:pkgsrc/security/sudo# bmake bin-install PKG_DEBUG_LEVEL=1
===> bin-install [sudo-1.6.7.5] ===> Binary install for sudo-1.6.7.5
realtarget="real-su-bin-install";                                        
  action="binary install";                                        if [  
`/usr/xpg4/bin/id -u` = `/usr/xpg4/bin/id -u root` ]; then               
                            /usr/pkg/bin/bmake _MAKE=/usr/pkg/bin/bmake  
OPSYS=SunOS OS_VERSION=5.9 LOWER_OPSYS=solaris  
DIGEST=/usr/pkg/bin/digest DIGEST_VERSION=20021220  
PKGTOOLS_VERSION=20040115 ZOULARIS_VERSION=20031018 _HOSTNAME=lazy  
OBJHOSTNAME=YES $realtarget;                   elif [ "X" != X"" ];  
then                               /usr/ucb/echo "Warning: Batch mode,  
not superuser, can't run $action for sudo-1.6.7.5.";  /usr/ucb/echo  
"Become root and try again to ensure correct permissions.";  else        
                                                         args="";         
                                         if [ "X" != X"" ]; then          
         args="FORCE_PKG_REGISTER=1";                    fi;              
                                         if [ "X1" != X"" ]; then         
         args="$args PKG_DEBUG_LEVEL=1";  fi;                             
                         if [ "X/usr/bin/true" != "X/usr/bin/true" ];  
then               /usr/ucb/echo "*** WARNING *** Running:  
/usr/bin/true";  /usr/bin/true;                                 fi;      
                                                 /usr/ucb/echo "===>  
bin-install [sudo-1.6.7.5] ===> Becoming root@`/bin/hostname` to  
$action sudo.";  /usr/ucb/echo -n "`/usr/ucb/echo /usr/bin/su - root -c  
| /usr/bin/nawk '{ print $1 }'` "; /usr/bin/su - root -c "cd  
/usr/src/pkgsrc/security/sudo; /usr/bin/env  
PATH=${PATH}:/sbin:/usr/sbin /usr/pkg/bin/bmake $args  
_MAKE=/usr/pkg/bin/bmake OPSYS=SunOS OS_VERSION=5.9 LOWER_OPSYS=solaris  
DIGEST=/usr/pkg/bin/digest DIGEST_VERSION=20021220  
PKGTOOLS_VERSION=20040115 ZOULARIS_VERSION=20031018 _HOSTNAME=lazy  
OBJHOSTNAME=YES $realtarget $realflags";  fi
Trying  
ftp://ftp:-ftp@ftp.NetBSD.org/pub/NetBSD/misc/grant/pkgsrc/packages/ 
SunOS/5.9/sparc/All
pkg_add: Package  
`ftp://ftp:-ftp@ftp.NetBSD.org/pub/NetBSD/misc/grant/pkgsrc/packages/ 
SunOS/5.9/sparc/All/sudo-1.6.7.5.tgz' OS mismatch:
pkg_add: SunOS/sparc 5.9 (pkg) vs. NetBSD/sparc 5.9 (this host)
pkg_add: aborting.
pkg_add: 1 package addition failed
*** Error code 1

Stop.
bmake: stopped in /usr/src/pkgsrc/security/sudo
*** Error code 1

Stop.
bmake: stopped in /usr/src/pkgsrc/security/sudo
zsh: 2598 exit 1     bmake bin-install PKG_DEBUG_LEVEL=1
22:19 lazy:pkgsrc/security/sudo# uname -rs
SunOS 5.9
22:21 lazy:pkgsrc/security/sudo# cat /etc/mk.conf
# Example /etc/mk.conf file produced by bootstrap-pkgsrc
# Sunday January 11 22:19:36 EST 2004

.ifdef BSD_PKG_MK       # begin pkgsrc settings

WRKOBJDIR=/usr/obj/pkgsrc
PKGSRCDIR=/usr/src/pkgsrc
PKG_DBDIR=/var/db/pkg
LOCALBASE=/usr/pkg
ZOULARISBASE=/usr/pkg
FETCH_CMD=/usr/pkg/bin/ftp
PAX=/usr/pkg/bin/pax
SED=/usr/pkg/bin/nbsed
GNU_PROGRAM_PREFIX=
PKGSRC_COMPILER=sunpro
USE_LANGUAGES+=c
USE_LANGUAGES+=c++
CFLAGS+=-xarch=v8plusa
CFLAGS+=-w
FAILOVER_FETCH=YES
#SU_CMD="sudo sh -c"
SMART_MESSAGES=yes
BINPKG_SITES=ftp://ftp:-ftp@ftp.NetBSD.org/pub/NetBSD/misc/grant/ 
pkgsrc/packages
/SunOS/5.9/sparc

OBJHOSTNAME=YES
CLEANDEPENDS=YES
ZSH_STATIC=YES
IRSSI_USE_PERL=YES
BASH_STATIC=YES
MUTT_USE_NCURSES=YES
USE_SASL2=YES
POSTFIX_USE_PCRE=YES
POSTFIX_USE_PGSQL=YES
DOVECOT_USE_PGSQL=YES
PKG_DEVELOPER=1
PKGSRC_MESSAGE_RECIPIENTS=yeled

DEPENDS_TARGET=package

_ACCEPTABLE=    yes
# Australia.
#
MASTER_SORT= .au .com .org .edu
MASTER_SITE_GNOME=      ftp://www.planetmirror.com.au/pub/GNOME/
MASTER_SITE_GNU=        ftp://www.planetmirror.com.au/pub/gnu/
MASTER_SITE_MOZILLA=     
ftp://www.planetmirror.com.au/pub/mozilla/releases/
MASTER_SITE_PERL_CPAN=   
ftp://www.planetmirror.com.au/pub/perl/CPAN/modules/by-module/
MASTER_SITE_SUNSITE=    ftp://www.planetmirror.com.au/pub/sunsite/
MASTER_SITE_SUSE=        
ftp://www.planetmirror.com.au/pub/suse/${MACHINE_ARCH}/${SUSE_VERSION}/ 
suse/
MASTER_SITE_TEX_CTAN=   ftp://www.planetmirror.com.au/pub/tex-archive/
MASTER_SITE_SOURCEFORGE=http://flow.dl.sourceforge.net/sourceforge/ \
                         ftp://www.planetmirror.com.au/pub/sourceforge/
MASTER_SITE_XCONTRIB=   ftp://www.planetmirror.com.au/pub/X11/contrib/
MASTER_SITE_XEMACS=     ftp://ftp.au.xemacs.org/pub/xemacs/
MASTER_SITE_BACKUP=      
ftp://ftp.au.netbsd.org/pub/NetBSD/packages/distfiles/ \
                          
ftp://ftp2.au.netbsd.org/pub/NetBSD/packages/distfiles/\
                          
ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/
MASTER_SITE_LOCAL=       
ftp://ftp.au.netbsd.org/pub/NetBSD/packages/distfiles/LOCAL_PORTS/ \
                          
ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/LOCAL_PORTS/


.endif                  # end pkgsrc settings
22:22 lazy:pkgsrc/security/sudo#



   C.
-- 
  charlie@rubberduck.com - Melbourne, Australia
  http://rubberduck.com/~yeled/
  PGP: 0x14AA7941 || finger yeled@lazy.spodder.com


--Apple-Mail-16--592779665
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAKhDsqiZDwhSqeUERAvoSAJ9YAd1mggq7tZMQTwuDHIRV+VVAdQCfXRV8
fQP+02K/ILSgdbgSzvd2Pvc=
=rnzX
-----END PGP SIGNATURE-----

--Apple-Mail-16--592779665--