Re: Failed to create package for ruby18-bdb1-0.2.2.tbz

From: Vladimir Grebenschikov <vova_at_fbsd.ru>
Date: Tue, 30 Aug 2005 12:48:59 +0400
В вт, 30/08/2005 в 02:22 -0400, Kris Kennaway пишет:
> On Mon, Aug 29, 2005 at 11:44:16AM +0400, Vladimir Grebenschikov wrote:
> > Hi 
> > 
> > ===>  Installing for ruby18-bdb1-0.2.2
> > ===>   ruby18-bdb1-0.2.2 depends on file: /usr/local/bin/ruby18 - found
> > ===>   Generating temporary packing list
> > install -c -p -m 0755 bdb1.so /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6
> > ===>   Registering installation for ruby18-bdb1-0.2.2
> > ===>  Building package for ruby18-bdb1-0.2.2
> > Creating package /usr/ports/packages/All/ruby18-bdb1-0.2.2.tbz
> > Registering depends: ruby-1.8.2_4.
> > Creating bzip'd tar ball in '/usr/ports/packages/All/ruby18-bdb1-0.2.2.tbz'
> > tar: lib/ruby/site_ruby/1.8/i386-freebsd7/bdb1.so: Cannot stat: No such file or directory
> > pkg_create: make_dist: tar command failed with code 256
> > *** Error code 1
> > 
> > Stop in /usr/ports/databases/ruby-bdb1.
> > *** Error code 1
> > 
> > Stop in /usr/ports/sysutils/portupgrade.
> > *** Error code 1
> > 
> > Stop in /usr/ports/sysutils/portupgrade.
> > ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade15753.0 make BATCH=yes DEPENDS_TARGET=package reinstall
> > egrep: /var/db/pkg/portupgrade-20041226_5/+CONTENTS: No such file or directory
> 
> You forgot to include details about your configuration, 

Sorry

> but I'm
> guessing you recently updated this machine to 7.0 from some older
> version, but did not rebuild all your packages.

No, I live on -CURRENT many years, and do 'make world' and 'portupgrade
-ap' more or less often. 
So my machine cross 6-7 boundary some time ago.

ruby18-bdb1 successfull installed by 'make install', but make package
fails. It was during 'portupgrade -p portupgrade'.

Looks like installation was into invalid directory freebsd6 instead of
freebsd7 and this 

vbook:/home/vova 122_> pkg_info -L ruby18-bdb1-0.2.2
Information for ruby18-bdb1-0.2.2:

Files:
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd7/bdb1.so

vbook:/home/vova 123_> file /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd7/bdb1.so
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd7/bdb1.so: cannot open `/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd7/bdb1.so' (No such file or directory)
vbook:/home/vova 124_> cd /usr/ports/databases/ruby-bdb1/
vbook:/usr/ports/databases/ruby-bdb1 125_> make -V PKGNAME
ruby18-bdb1-0.2.2
vbook:/usr/ports/databases/ruby-bdb1 126_> cat pkg-plist 
%%RUBY_SITEARCHLIBDIR%%/bdb1.so
...
vbook:/usr/ports/databases/ruby-bdb1 127_> make -V RUBY_SITEARCHLIBDIR
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd7
vbook:/usr/ports/databases/ruby-bdb1 128_> find /usr/local/lib/ruby/site_ruby -name bdb1.so
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/bdb1.so
vbook:/usr/ports/databases/ruby-bdb1 129_> ls
-l /var/db/pkg/ruby18-bdb1-0.2.2/
total 32
-rw-r--r--  1 root  wheel     70 Aug 29 11:54 +COMMENT
-rw-r--r--  1 root  wheel   8610 Aug 29 11:54 +CONTENTS
-rw-r--r--  1 root  wheel    396 Aug 29 11:54 +DESC
-r--r--r--  1 root  wheel  15242 Aug 29 11:54 +MTREE_DIRS
-rw-r--r--  1 root  wheel     64 Aug 29 20:21 +REQUIRED_BY
vbook:/usr/ports/databases/ruby-bdb1 130_> 


> Kris

-- 
Vladimir B. Grebenschikov
vova_at_fbsd.ru
Received on Tue Aug 30 2005 - 06:49:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:42 UTC