Re: make update on /usr/ports has errors switch to -current

2014-09-22 Thread Stuart Henderson
On 2014-09-16, vic...@pcug.org.au vic...@pcug.org.au wrote:
 Hi,

 I thought [during the last stage of switching to -current] the
 Makefile's $PKG_PATH variable in /usr/ports had to be set the same
 as it is in ~/.profile. ie. PKG_PATH=ftp://mirror.aarnet.edu.au/pub
 /OpenBSD/5.5/packages/$(uname -m). But that gives me Broken dependency
 error. Without doing that, most of make update output gives me these
 errors:

Did you find some instructions somewhere telling you to run make update
in /usr/ports? If so, they are wrong, this will not do what you want.

Typical method of updating is to boot a new install kernel, install a
snapshot, reboot, run sysmerge, reboot again, then run pkg_add -u with an
appropriate PKG_PATH for the new version.

Also note that -current has moved on from what will be the 5.6 release,
you can not easily go back from -current to 5.6.



make update on /usr/ports has errors switch to -current

2014-09-16 Thread vicbus
Hi,

I thought [during the last stage of switching to -current] the
Makefile's $PKG_PATH variable in /usr/ports had to be set the same
as it is in ~/.profile. ie. PKG_PATH=ftp://mirror.aarnet.edu.au/pub
/OpenBSD/5.5/packages/$(uname -m). But that gives me Broken dependency
error. Without doing that, most of make update output gives me these
errors:
Your X11/system is not current (in archivers/ha)
Your X11/system is not current (in archivers/ha)
=== archivers/hs-zlib
Your X11/system is not current (in archivers/hs-zlib)
Your X11/system is not current (in archivers/hs-zlib)
Your X11/system is not current (in archivers/hs-zlib)
Your X11/system is not current (in archivers/hs-zlib)
Your X11/system is not current (in archivers/hs-zlib)
===  Looking for hs-zlib-0.5.4.1.tgz in $PKG_PATH - not found
*** Error 1 in archivers/hs-zlib
(/usr/ports/infrastructure/mk/bsd.port.mk:1949
'/usr/ports/packages/amd64/cache//hs-zlib-0.5.4.1.tgz': @if ...)
Your X11/system is not current (in archivers/hs-zlib)
Your X11/system is not current (in archivers/hs-zlib)
Your X11/system is not current (in archivers/hs-zlib)
===  Checking files for hs-zlib-0.5.4.1
Your X11/system is not current (in archivers/hs-zlib)
`/usr/ports/distfiles/ghc/zlib-0.5.4.1.tar.gz' is up to date.
 (SHA256) ghc/zlib-0.5.4.1.tar.gz: OK
Your X11/system is not current (in lang/ghc)
=== hs-zlib-0.5.4.1 depends on: ghc-* - not found
===  Verifying install for ghc-* in lang/ghc
Your X11/system is not current (in lang/ghc)
Your X11/system is not current (in lang/ghc)
Your X11/system is not current (in lang/ghc)
Your X11/system is not current (in lang/ghc)
Your X11/system is not current (in lang/ghc)
===  Installing ghc-7.6.3p1 from /usr/ports/packages/amd64/all/
Fatal error: Ustar
[file:/usr/ports/packages/amd64/all/ghc-7.6.3p1.tgz][lib/ghc/base-4.6.0.1/libHSbase-4.6.0.1_p.a]:
Premature end of archive
Adjusting sha for /usr/local/lib/ghc/base-4.6.0.1/pkg.lNlmObbqeY from
cmqTx/budUZwHU4e0oQJQYLCtDezN8C6rVUjLNlxnAc= to
18h5bSUiTB9gtLk6zh2x7FZzBt7ZQpZekoSXmTui8bg=
Fatal error: Installation of ghc-7.6.3p1 failed, partial installation
recorded as partial-ghc-7.6.3p1.6
 at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 821.
*** Error 22 in lang/ghc (/usr/ports/infrastructure/mk/bsd.port.mk:1980
'/var/db/pkg/ghc-7.6.3p1/+CONTENTS': @if /usr/sbin/pkg_info -e ghc-7...)
*** Error 1 in lang/ghc (/usr/ports/infrastructure/mk/bsd.port.mk:2492
'install')
*** Error 1 in archivers/hs-zlib
(/usr/ports/infrastructure/mk/bsd.port.mk:2119
'/usr/ports/pobj/hs-zlib-0.5.4.1/.dep-lang-ghc')
*** Error 1 in archivers/hs-zlib
(/usr/ports/infrastructure/mk/bsd.port.mk:2575
'/usr/ports/pobj/hs-zlib-0.5.4.1/.extract_done')
*** Error 1 in archivers/hs-zlib
(/usr/ports/infrastructure/mk/bsd.port.mk:1959
'/usr/ports/packages/amd64/all/hs-zlib-0.5.4.1.tgz')
*** Error 1 in archivers/hs-zlib
(/usr/ports/infrastructure/mk/bsd.port.mk:1957
'/usr/ports/packages/amd64/all/hs-zlib-0.5.4.1.tgz')
*** Error 1 in archivers/hs-zlib
(/usr/ports/infrastructure/mk/bsd.port.mk:2512 '_internal-package') ***
Error 1 in archivers/hs-zlib
(/usr/ports/infrastructure/mk/bsd.port.mk:1985
'/usr/ports/update/amd64/hs-zlib-0.5.4.1')
*** Error 1 in archivers/hs-zlib
(/usr/ports/infrastructure/mk/bsd.port.mk:2492 'update')
=== Exiting archivers/hs-zlib with an error
*** Error 1 in archivers
(/usr/ports/infrastructure/mk/bsd.port.subdir.mk:147 'update')
=== Exiting archivers with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:147 'update')

(Sorry for not revealing all of it, I'm typing this email on lynx webmail
as I can't get packages or ports to work.)
Here is /var/log/messages:

Sep 16 19:00:01 frog newsyslog[5450]: logfile turned over
Sep 16 19:00:01 frog syslogd: restart
Sep 16 19:03:04 frog pkg_add: Added unzip-6.0p4
Sep 16 19:03:05 frog pkg_add: Added iso8879-1986p0
Sep 16 19:03:10 frog pkg_add: Added docbook-dsssl-1.79
Sep 16 19:12:45 frog pkg_add: Added metaauto-1.0p1
Sep 16 19:13:26 frog pkg_add: Added gmake-4.0p0
Sep 16 19:13:27 frog pkg_add: Added help2man-1.41.1p0
Sep 16 19:13:28 frog pkg_add: Added autoconf-2.69p1
Sep 16 19:14:44 frog pkg_add: Added groff-1.22.2p4
Sep 16 19:15:37 frog pkg_add: Added autoconf-2.68p0
Sep 16 19:15:52 frog pkg_add: Added automake-1.14.1
Sep 16 19:16:36 frog pkg_add: Added autoconf-2.67p0
Sep 16 19:16:37 frog pkg_add: Added libltdl-2.4.2p0
Sep 16 19:16:38 frog pkg_add: Added libtool-2.4.2p0
Sep 16 19:17:03 frog pkg_add: Added libffi-3.0.13
Sep 16 19:17:55 frog pkg_add: Added gdbm-1.11
Sep 16 19:19:15 frog pkg_add: Added tcl-8.5.15p2
Sep 16 19:19:18 frog pkg_add: Added tk-8.5.15p1
Sep 16 19:21:05 frog pkg_add: Added db-4.6.21p0v0
Sep 16 19:26:37 frog pkg_add: Added python-2.7.8
Sep 16 19:30:06 frog pkg_add: Added libxml-2.9.1p1
Sep 16 19:30:08 frog pkg_add: Added docbook-4.5p1
Sep 16 19:33:21 frog pkg_add: Added libgpg-error-1.13p0
Sep 16 19:35:09 frog pkg_add: Added libgcrypt-1.6.2
Sep 16 19:35:11 frog pkg_add: Added py-libxml-2.9.1p1
Sep 16 19:35:13 frog 

Re: make update on /usr/ports has errors switch to -current

2014-09-16 Thread Brett Mahar
On Tue, 16 Sep 2014 23:40:47 +1000
vic...@pcug.org.au wrote:

| Hi,
| 
| I thought [during the last stage of switching to -current] the
| Makefile's $PKG_PATH variable in /usr/ports had to be set the same
| as it is in ~/.profile. ie. PKG_PATH=ftp://mirror.aarnet.edu.au/pub
| /OpenBSD/5.5/packages/$(uname -m). But that gives me Broken dependency
| error. Without doing that, most of make update output gives me these
| errors:

Hi Vicbus,

Not sure if it is just the email that is unclear, but normally you would not 
switch to current. Follow http://www.openbsd.org/faq/faq5.html#Bld - first 
step is Install or Upgrade to closest available binary which means you should 
install a snapshot cd.

If you are building ports it does not matter what your PKG_PATH is, only that 
your ports tree (and src and xenocara) are all up to date.

Also if you are following current, your PKG_PATH above is wrong, yours should 
be something like 
http://mirror.aarnet.edu.au/pub/OpenBSD/snapshots/packages/$(uname -m)

Cheers,
Brett.