tech-pkg archive

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

Re: make update fails in pkg_install



> It is, but it seems to never really have worked for su-operation correctly.
> Attached patch is a preliminary fix.

Did not seem to work for me (at least first try). I applied the two 
changes from your patch.

I reinstalled my pkg_install-20090518.

Did a "make clean" in /usr/pkgsrc/pkgtools/pkg_install

Ran "make update" which resulted in:

...
cc -L/usr/pkgsrc/pkgtools/pkg_install/work/libfetch 
-L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -L/usr/lib 
-Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L../lib -o pkg_info main.o perform.o 
show.o -linstall -larchive -lfetch -lbz2 -lz -lnbcompat -lcrypto
=> Unwrapping files-to-be-installed.
/usr/bin/make deinstall _UPDATE_RUNNING=YES
===> Deinstalling for pkg_install-20090610
=> Becoming ``root'' to make su-deinstall (/usr/pkg/bin/sudo)
Running 
/usr/pkgsrc/pkgtools/pkg_install/work/pkg_install-20090610/delete/pkg_delete 
-K /var/db/pkg -N -f -f pkg_install-20090610
pkg_delete: The following packages are marked as not for deletion:
        pkg_install-20090610
...but will delete them anyway
original MD5 checksum failed, deleting anyway: 
/usr/pkg/man/man1/pkg_admin.1
original MD5 checksum failed, deleting anyway: /usr/pkg/sbin/pkg_add
original MD5 checksum failed, deleting anyway: /usr/pkg/sbin/pkg_admin
original MD5 checksum failed, deleting anyway: /usr/pkg/sbin/pkg_create
original MD5 checksum failed, deleting anyway: /usr/pkg/sbin/pkg_delete
original MD5 checksum failed, deleting anyway: /usr/pkg/sbin/pkg_info
=> Dropping ``root'' privileges.
/usr/bin/make install
===> Installing for pkg_install-20090610
=> Becoming ``root'' to make su-install-all (/usr/pkg/bin/sudo)
ERROR: pkg_install-20090518 is already installed - perhaps an older 
version?
ERROR: If so, you may use either of:
ERROR:     - "pkg_delete pkg_install-20090518" and "/usr/bin/make 
reinstall"
ERROR:       to upgrade properly
ERROR:     - "/usr/bin/make update" to rebuild the package and all
ERROR:       of its dependencies
ERROR:     - "/usr/bin/make replace" to replace only the package without
ERROR:       re-linking dependencies, risking various problems.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install


I don't understand why it says "20090610" for deleting above.

Then I did a "make update" a second time and it worked and it cleaned my 
home so I lost my previous tarball (from pkg_tarup).






Home | Main Index | Thread Index | Old Index