Bug 223663 - devel/oniguruma: Fails to build after rename from devel/oniguruma6
Summary: devel/oniguruma: Fails to build after rename from devel/oniguruma6
Status: Closed DUPLICATE of bug 225921
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-14 08:00 UTC by Peter Putzer
Modified: 2018-02-24 17:58 UTC (History)
7 users (show)

See Also:
bugzilla: maintainer-feedback? (rob)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Putzer 2017-11-14 08:00:32 UTC
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:
Comment 1 Peter Putzer 2017-11-15 06:43:38 UTC
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?
Comment 2 Luca Pizzamiglio freebsd_committer freebsd_triage 2017-11-17 10:46:54 UTC
devel/oniguruma has no "files" directory.
What do you use to upgrade the portstree?
Something went wrong leaving old patches
Comment 3 Peter Putzer 2017-11-17 18:51:07 UTC
(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".
Comment 4 bagas 2017-11-18 09:38:12 UTC
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
Comment 5 Alexander Ushakov 2018-01-07 15:37:55 UTC
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.
Comment 6 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-13 23:32:09 UTC
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.
Comment 7 Walter Schwarzenfeld freebsd_triage 2018-02-16 12:30:29 UTC
*** Bug 225921 has been marked as a duplicate of this bug. ***
Comment 8 Yuri Victorovich freebsd_committer freebsd_triage 2018-02-24 17:58:07 UTC

*** This bug has been marked as a duplicate of bug 225921 ***