tech-pkg archive

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

Re: Confusing lack of error from "make replace"



On Fri, Mar 15, 2024 at 08:41:35PM +0000, John Klos wrote:
> "make replace", run from pkg_rolling-replace, NetBSD 10, latest pkgsrc as of
> 15-March-2024:
> 
> /usr/bin/find /usr/pkgsrc/www/wordpress/work/.destdir/usr/local/share/wordpress  -type f -exec /bin/chmod 644 "{}" \;
> => Automatic manual page handling
> => Generating post-install file lists
> => Checking file-check results for php82-wordpress-6.4.3
> => Creating binary package /usr/pkgsrc/www/wordpress/work/.packages/php82-wordpress-6.4.3.tgz
> ===> package-message [php82-wordpress-6.4.3] ===> Building binary package for php82-wordpress-6.4.3
> => Creating binary package /usr/pkgsrc/packages/All/php82-wordpress-6.4.3.tgz
> ===> replace-message [php82-wordpress-6.4.3] ===> Replacing for php82-wordpress-6.4.3
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/pkgsrc/www/wordpress
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/www/wordpress
> *** 'make replace' failed for package wordpress.
> *** Please read the errors listed above, fix the problem,
> *** then re-run pkg_rolling-replace to continue.
> 
> 
> Manually running "make replace" gives the same error with no information.
> Running "make update", however, gives:
> 
> ===> su-real-package-install [php82-wordpress-6.4.3] ===> Installing binary package of php82-wordpress-6.4.3
> pkg_add: Conflicting PLIST with wordpress-6.1: share/doc/wordpress/license.txt
> pkg_add: 1 package addition failed
> *** Error code 1
> 
> 
> That error makes sense. Why doesn't "make replace" show the error?

The PKGNAME changed - before it was just "wordpress", now it's
${PHPVERSION}-wordpress. Just 'pkg_delete wordpress' and install
the new package.

Someone(tm) should add a SUPERSEDES line...
 Thomas


Home | Main Index | Thread Index | Old Index