pkgsrc-Users archive

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

Re: How to automatically update dependencies when building a package?



I wouldn't have thought updating pkgsrc would cause ABI conflicts and make 
packages incompatible.

FreeBSD ports system does not have that problem; no problem running

portsnap fetch update

I never even heard of ABI in FreeBSD.

Now I see why there is a quarterly pkgsrc in addition to current pkgsrc in 
NetBSD pkgsrc, unlike FreeBSD ports and source-based Linux package managers.

But I don't want to wait three months when a new release of something like 
Gnumeric or Seamonkey comes out; I also might want to test a new beta release 
installed to a different prefix to avoid conflict with installed stable 
version.  What if there is a security update, then also I don't want to wait 
for the next quarterly pkgsrc.

I guess I have to run

make depends-options

in all packages of interest and build all in quick succession, after setting 
options of interest. 

This could mean an extended downtime on the computer.

I'm afraid running pkg_rolling-replace on a system with a lot of packages could 
take an awful long time, like several days.

I see Gentoo (http://www.gentoo.org/) has several projects in the works, 
including porting to the BSDs and other quasi-Unixes.

**Update: I updated pkgsrc (cvs update -dP from /usr/pkgsrc), then ran 

pkg_rolling-replace -suv 2>&1 | tee prr1.log

I was still stopped by x11-links.  Wait for x11-links-0.65?  Latter part of log 
file showing the problem was:


==========================================================================
The supported build options for jwm are:

        debug fribidi jpeg png

The currently selected options are:

        fribidi jpeg png

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

        PKG_OPTIONS.jwm (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
jwm-2.0.1nb4.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg

Based on these variables, the following variables have been set:

        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Build dependency x11-links>=0.64: NOT found
=> Verifying package-install for ../../pkgtools/x11-links
===> Checking for vulnerabilities in x11-links-0.64
===> Install binary package of x11-links-0.64
pkg_add: no pkg found for '/usr/pkgsrc/packages/All/x11-links-0.64.tgz', sorry.
pkg_add: 1 package addition failed
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/x11-links
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/x11-links
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/x11-links
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wm/jwm
*** 'make replace' failed for package jwm.
*** Please read the errors listed above, fix the problem,
*** then re-run pkg_rolling-replace to continue.
+ jpeg
+ msmtp
+ pkg_developer
+ pkg_install
+ pkgdiff
+ pkglint
+ tiff
- jwm

amelia# cd pkgtools/x11-links/                                                  
                                                                                
                      
amelia# make replace
===> Checking for vulnerabilities in x11-links-0.64
===> Replacing for x11-links-0.64
WARNING: experimental target - DATA LOSS MAY OCCUR.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/x11-links
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/x11-links
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/x11-links
amelia# 

After this finished, I tried make replace from /usr/pkgsrc/pkgtools/x11-links

but to no avail.

Tom



Home | Main Index | Thread Index | Old Index