On Tue, Dec 02, 2008 at 09:29:35PM -0500, Jason Beaudoin wrote:
> On Tue, Dec 2, 2008 at 11:34 AM, Marc Espie <[EMAIL PROTECTED]> wrote:
> > On Tue, Dec 02, 2008 at 04:26:26AM +0000, Jacob Meuser wrote:
> >> I've had /usr/ports as a symlink for years too.  I started noticing
> >> the 0 byte packages fairly recently.  figured it was transient.
> >>
> >> if it's now true that using a symlink for PORTSDIR is a problem,
> >> it needs to be documented somethere.
> >
> > No, it needs to error out in a sensible way, like not creating 0 bytes
> > packages, but displaying an error message.
> >
> > I haven't noticed anything, I surmised it's probably tied to the recent (?)
> > work to uniformize pkgpaths... I'll test it at some point.
> >
> >
> apologies for the last (rogue) message, thank gmail. I was just
> acknowledging that I am willing to run tests for you .
> 
> regards,
> ~Jason
> 

I can easily reproduce the problem on -current, but without using
anything special like chroot or a /usr/ports symlink.

# cd /usr/ports/print/cups                                                     
# cat /etc/mk.conf                                                             
PKG_PATH=http://obsd.cec.mtu.edu/pub/OpenBSD/snapshots/packages/amd64/
FETCH_PACKAGES=Yes
# make install
===>  Looking for cups-1.2.7p14.tgz in $PKG_PATH - found
Link to /usr/ports/packages/amd64/ftp/cups-1.2.7p14.tgz
Link to /usr/ports/packages/amd64/cdrom/cups-1.2.7p14.tgz
===>  cups-1.2.7p14 depends on: desktop-file-utils-* - not found
===>  Verifying install for desktop-file-utils-* in devel/desktop-file-utils
`/usr/ports/packages/amd64/cache//desktop-file-utils-0.15.tgz' is up to date.
Link to /usr/ports/packages/amd64/ftp/desktop-file-utils-0.15.tgz
Link to /usr/ports/packages/amd64/cdrom/desktop-file-utils-0.15.tgz
===>  desktop-file-utils-0.15 depends on: glib2-* - not found
===>  Verifying install for glib2-* in devel/glib2
`/usr/ports/packages/amd64/cache//glib2-2.18.3.tgz' is up to date.
Link to /usr/ports/packages/amd64/ftp/glib2-2.18.3.tgz
Link to /usr/ports/packages/amd64/cdrom/glib2-2.18.3.tgz
===>  Looking for glib2-docs-2.18.3.tgz in $PKG_PATH - found
Link to /usr/ports/packages/amd64/all/glib2-docs-2.18.3.tgz
Link to /usr/ports/packages/amd64/ftp/glib2-docs-2.18.3.tgz
Link to /usr/ports/packages/amd64/cdrom/glib2-docs-2.18.3.tgz
===>  Looking for glib2-fam-2.18.3.tgz in $PKG_PATH - not found
*** Error code 1

Stop in /usr/ports/devel/glib2 (line 1419 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
===>  Checking files for glib-2.18.3
>> glib-2.18.3.tar.bz2 doesn't seem to exist on this system.
>> Fetch ftp://ftp.no.gnome.org/pub/GNOME/sources/glib/2.18/glib-2.18.3.tar.bz2.
100% |**************************************************|  4722 KB    00:13    
>> Size matches for /usr/ports/distfiles/glib-2.18.3.tar.bz2
>> (SHA256) glib-2.18.3.tar.bz2: OK
===>  glib2-2.18.3 depends on: pcre->=7.2 - not found
===>  Verifying install for pcre->=7.2 in devel/pcre
`/usr/ports/packages/amd64/cache//pcre-7.8.tgz' is up to date.
Link to /usr/ports/packages/amd64/ftp/pcre-7.8.tgz
Link to /usr/ports/packages/amd64/cdrom/pcre-7.8.tgz
===>  Installing pcre-7.8 from /usr/ports/packages/amd64/all/
Can't find /usr/ports/packages/amd64/all/pcre-7.8.tgz
/usr/sbin/pkg_add: /usr/ports/packages/amd64/all/pcre-7.8.tgz:Fatal error
*** Error code 1

Stop in /usr/ports/devel/pcre (line 1455 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/glib2 (line 1604 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/glib2 (line 2001 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/glib2 (line 1427 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/glib2 (line 1427 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/glib2 (line 1427 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/glib2 (line 1427 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/glib2 (line 1964 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/glib2 (line 1455 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/desktop-file-utils (line 1604 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/desktop-file-utils (line 1455 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/print/cups (line 1604 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/print/cups (line 1455 of 
/usr/ports/infrastructure/mk/bsd.port.mk).


I thought I found the problem, and that it appeared with bernd@'s commit
on usr.sbin/pkg_add/OpenBSD/PackageRepository.pm:
----------------------------
revision 1.60
date: 2008/10/25 22:28:42;  author: bernd;  state: Exp;  lines: +5 -1
Copy packages to the cache if a local PKG_PATH is used and PKG_CACHE is
defined. This unbreaks FETCH_PACKAGES with a local package repository.

help & discussion: espie@ and sturm@
----------------------------

But even with previous revisions of pkg_add there are some problems,
it complains about :
Missing library intl.>=4
Missing library iconv.>=4
Missing library pcre

even though the packages are there, in the cache, and not 0 bytes.

Reply via email to