tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make package weirdness in pkgsrc-2010Q1



On 4/9/10 8:07 AM, Greg Troxel wrote:

I think you need:

DEPENDS_TARGET=                 package-install
UPDATE_TARGET=                  package-install

By default, DEPENDS_TARGET is install, not package.  But package doesn't
work with DESTDIR, or rather you get a package but it isn't installed.

So I am boggled as to how this worked for you before.

I also have found strange behaviour after updating to pkgsrc-2010Q1.

My normal procedure for updating to the latest release is like this:

  o Update CVS to the new tag
  o Update pkg_rolling-replace and pkg_chk using "make update".
  o Update bmake, pkg_install and bootstrap-mk-files on non-netbsd.
  o Run pkg_rolling-replace or pkg_chk to update.

With DEPENDS_TARGET=package. It's worked that way for years. I've never set UPDATE_TARGET before.

Many packages will build, package, but not install! Then the next in queue for rolling-replace will fail. I have to manually "make install" them.

I haven't gone through everything yet for my systems, but it's weird. Using DEPENDS_TARGET=package-install seems to help, but I can't be sure yet. I just added UPDATE_TARGET, so I can't vouch for it as yet.

An example is below, where things went all out-of-whack in pkg_tarup when building pkg_rolling-replace.

It seems like there's some progress being made with pkg_install and that's great. I'm not sure where to find the details on what's changing and how, and that would be MOST useful!

Louis


builder# cd /usr/pkgsrc/pkgtools/pkg_rolling-replace

builder# pkg_info|grep pkg
pkg-config-0.23nb1  System for managing library compile/link flags
pkg_chk-2.0         Check installed package versions against pkgsrc

builder# make clean CLEANDEPENDS=yes
===> Cleaning for digest-20080510
===> Cleaning for checkperms-1.11
===> Cleaning for pkg_chk-2.0
===> Cleaning for pkg_tarup-1.8
===> Cleaning for pkg_rolling-replace-0.21

builder# make package
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Installing dependencies for pkg_rolling-replace-0.21
=> Build dependency checkperms>=1.1: found checkperms-1.11
=> Full dependency pkg_chk>=1.76: found pkg_chk-2.0
=> Full dependency pkg_tarup>=1.6.6: NOT found
=> Verifying package for ../../pkgtools/pkg_tarup
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Installing dependencies for pkg_tarup-1.8
=> Build dependency checkperms>=1.1: found checkperms-1.11
===> Overriding tools for pkg_tarup-1.8
===> Extracting for pkg_tarup-1.8
cd /usr/pkgsrc/pkgtools/pkg_tarup/files && cp pkg_tarup pkg_tarup.1 pkg_tarup_all /usr/pkgobj/pkgtools/pkg_tarup/default/
===> Patching for pkg_tarup-1.8
===> Creating toolchain wrappers for pkg_tarup-1.8
===> Configuring for pkg_tarup-1.8
=> Checking for portability problems in extracted files
=> Substituting "tarup" in pkg_tarup pkg_tarup_all pkg_tarup.1
===> Installing for pkg_tarup-1.8
=> Generating pre-install file lists
=> Creating installation directories from PLIST files
/usr/bin/install -c -o root -g wheel -m 755 /usr/pkgobj/pkgtools/pkg_tarup/default/pkg_tarup /usr/pkgobj/pkgtools/pkg_tarup/default/.destdir/usr/pkg/bin /usr/bin/install -c -o root -g wheel -m 755 /usr/pkgobj/pkgtools/pkg_tarup/default/pkg_tarup_all /usr/pkgobj/pkgtools/pkg_tarup/default/.destdir/usr/pkg/bin /usr/bin/install -c -o root -g wheel -m 644 /usr/pkgobj/pkgtools/pkg_tarup/default/pkg_tarup.1 /usr/pkgobj/pkgtools/pkg_tarup/default/.destdir/usr/pkg/man/man1
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for pkg_tarup-1.8
=> Checking for non-existent script interpreters in pkg_tarup-1.8
=> Checking file permissions in pkg_tarup-1.8
=> Checking for missing run-time search paths in pkg_tarup-1.8
=> Checking for work-directory references in pkg_tarup-1.8
===> Building binary package for pkg_tarup-1.8
ERROR: [depends.mk] A package matching ``pkg_tarup>=1.6.6'' should
ERROR:     be installed, but one cannot be found.  Perhaps there is a
ERROR:     stale work directory for ../../pkgtools/pkg_tarup?
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_rolling-replace

builder# pkg_info |grep tarup
<nothing> (!)







Home | Main Index | Thread Index | Old Index