Difference between revisions of "Solaris and pkgsrc"
(3 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
Per http://wiki.netbsd.org/pkgsrc/how_to_use_pkgsrc_on_solaris/ , perhaps the only thing we do not have but need is SUNWsprot. |
Per http://wiki.netbsd.org/pkgsrc/how_to_use_pkgsrc_on_solaris/ , perhaps the only thing we do not have but need is SUNWsprot. |
||
+ | |||
+ | Mounting iso images in solaris: https://blogs.oracle.com/gerhardhofweber/entry/mounting_iso_images_in_solaris |
||
+ | Uses lofiadm to make a mountable device for 'mount -F hsfs' |
||
+ | |||
+ | # mkdir -p /iso/sol-10-u10-ga2-sparc |
||
+ | # lofiadm -a /var/tmp/sol-10-u10-ga2-sparc-dvd.iso |
||
+ | /dev/lofi/1 |
||
+ | # mount -F hsfs -o ro /dev/lofi/1 /iso/sol-10-u10-ga2-sparc |
||
+ | |||
+ | Attempting |
||
+ | pkgadd -d /iso/sol-10-u10-ga2-sparc/Solaris_10/Product/ SUNWsprot |
||
+ | claims it is already installed, though. pkginfo confirms; I must have missed it the first time around. |
Latest revision as of 15:45, 2 October 2012
Bootstrapping krbdev-sparc-build.mit.edu as a build slave with solaris 10:
Get the pkgsrc repo locally and copy it over:
env CVS_RSH=ssh cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc
I see the key fingerprint of anoncvs as:
1024 a0:b1:35:d7:56:be:2c:30:78:b0:21:df:43:d9:64:5c anoncvs.netbsd.org,149.20.53.68 (RSA)
I can't find a cvs binary from Oracle TechNet, hence the copying.
On the server, drop it in /opt/pkgsrc The next step, per http://www.netbsd.org/docs/pkgsrc/platforms.html is to run the bootstrap script.
This requires several components from Oracle, and some things which are not in the default path of /usr/sbin:/usr/bin
I am making an /opt/pkgsrc/buildenv.sh to run that will set up PATH and other environment variables to make an appropriate build environment. (This is done so as to not disrupt root's default PATH and clutter it with a bunch of stuff.)
Per http://wiki.netbsd.org/pkgsrc/how_to_use_pkgsrc_on_solaris/ , perhaps the only thing we do not have but need is SUNWsprot.
Mounting iso images in solaris: https://blogs.oracle.com/gerhardhofweber/entry/mounting_iso_images_in_solaris Uses lofiadm to make a mountable device for 'mount -F hsfs'
# mkdir -p /iso/sol-10-u10-ga2-sparc # lofiadm -a /var/tmp/sol-10-u10-ga2-sparc-dvd.iso /dev/lofi/1 # mount -F hsfs -o ro /dev/lofi/1 /iso/sol-10-u10-ga2-sparc
Attempting
pkgadd -d /iso/sol-10-u10-ga2-sparc/Solaris_10/Product/ SUNWsprot
claims it is already installed, though. pkginfo confirms; I must have missed it the first time around.