On 2009/07/30 18:11, Siju George wrote:
> On Wed, Jul 22, 2009 at 4:27 AM, Stuart Henderson<[email protected]> wrote:
> >
> > /usr/ports/infrastructure/build/out-of-date can produce a list of
> > installed packages that need an update, in a format you can write to
> > a file and feed to "make SUBDIRLIST=<file> ..."
> >
> >
> 
> I was doing it the way said above and I get this error.
> 
> Link to /usr/ports/packages/i386/cdrom/desktop-file-utils-0.15.tgz
> ===> Updating for desktop-file-utils-0.15
> ===>  Verifying specs: glib-2.0 intl.>=4 iconv.>=4 c pcre
> ===>  found glib-2.0.1800.1 intl.4.0 iconv.5.0 c.50.1 pcre.2.2
> Upgrading from desktop-file-utils-0.15
> New package desktop-file-utils-0.15 contains potentially unsafe operations
>         @exec /usr/local/bin/update-desktop-database
> Can't safely update to desktop-file-utils-0.15 (use -F update to force it)
> /usr/sbin/pkg_add: desktop-file-utils-0.15:Fatal error
> *** Error code 1
> 
> Stop in /usr/ports/devel/desktop-file-utils (line 1477 of
> /usr/ports/infrastructure/mk/bsd.port.mk).
> ===> Exiting devel/desktop-file-utils with an error
> *** Error code 1
> 
> Stop in /usr/ports (line 124 of
> /usr/ports/infrastructure/mk/bsd.port.subdir.mk).
> 
> where do I go from here?
> 
> install that package manually and continue?

You can use "FORCE_UPDATE=Yes" on the make command line.
It's described in bsd.port.mk(5), 

     FORCE_UPDATE  User settings.  If set to `Yes', the update target will al-
                   ways update an installed package, as soon as its signature
                   differs, and all dependencies that install packages will
                   also force an update.  If set to `hard', the update target
                   will also update installed packages even when the signature
                   did not change.

This can also be set in /etc/mk.conf if you always want to do it.

_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to