During the patching phase, the proper file cannot be found: [root@host ~]# portmaster -o devel/oniguruma devel/oniguruma6 ===>>> Port directory: /usr/ports/devel/oniguruma ===>>> Gathering distinfo list for installed ports ===>>> Launching 'make checksum' for devel/oniguruma in background ===>>> Gathering dependency list for devel/oniguruma from ports ===>>> Initial dependency check complete for devel/oniguruma ===>>> Starting build for devel/oniguruma <<<=== ===>>> All dependencies are up to date ===> Cleaning for oniguruma6-6.6.1 ===> License BSD2CLAUSE accepted by the user ===> oniguruma6-6.6.1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by oniguruma6-6.6.1 for building ===> Extracting for oniguruma6-6.6.1 => SHA256 Checksum OK for kkos-oniguruma-v6.6.1_GH0.tar.gz. ===> Patching for oniguruma6-6.6.1 ===> Applying FreeBSD patches for oniguruma6-6.6.1 File to patch:
The port contained a "files" folder with two files - patch-Makefile.in - onig-config both from 2016 in my setup. Renaming "files" has solved the build issue. Maybe this is a remnant of the original "devel/oniguruma" port that was replaced with oniguruma6?
devel/oniguruma has no "files" directory. What do you use to upgrade the portstree? Something went wrong leaving old patches
(In reply to Luca Pizzamiglio from comment #2) That's what I meant by "remnant". The ports tree was updated using "portsnap fetch; portsnap update".
Hello. Updated ports. portsnap fetch update began rebuilding the port, as described in the UPDATE. root@pro_biz:/ # portupgrade -o devel/oniguruma devel/oniguruma6 [Reading data from pkg(8) ... - 104 packages found - done] root@pro_biz:/ # portupgrade -fr devel/oniguruma [Reading data from pkg(8) ... - 104 packages found - done] root@pro_biz:/ # rehash root@pro_biz:/ # pkg version | grep "onig" oniguruma5-5.9.6_1 ? root@pro_biz:/ # pkg_deinstall oniguruma5 [Reading data from pkg(8) ... - 104 packages found - done] ---> Deinstalling 'oniguruma5-5.9.6_1' Updating database digests format: 100% Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: oniguruma5-5.9.6_1 Number of packages to be removed: 1 The operation will free 1 MiB. [pro_biz] [1/1] Deinstalling oniguruma5-5.9.6_1... [pro_biz] [1/1] Deleting files for oniguruma5-5.9.6_1: 100% [Reading data from pkg(8) ... - 103 packages found - done] root@pro_biz:/ # root@pro_biz:/usr/ports/devel/oniguruma # make install clean ===> Patching for oniguruma6-6.6.1 ===> Applying FreeBSD patches for oniguruma6-6.6.1 File to patch: No file found--skip this patch? [n] Y File to patch: y No file found--skip this patch? [n] y 2 out of 2 hunks ignored--saving rejects to y.rej => FreeBSD patch patch-Makefile.in failed to apply cleanly. *** Error code 1 Stop. make[1]: stopped in /usr/ports/devel/oniguruma *** Error code 1 Stop. make: stopped in /usr/ports/devel/oniguruma After I updated the ports so, then the installation was correctly started. portsnap fetch extract update
portsnap fetch & portsnap update - doesn't remove outdated 'files' directory in devel/onigurima. So I've faced the same error. Manual remove of 'files' directory with its content solved problem for me.
This should be reassigned to portsnap/portmaster. This appears to be a valid bug that deleted files aren't removed. (?) I don't use these tools, so can't tell for sure.
*** Bug 225921 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 225921 ***