Page MenuHomeFreeBSD

databases/unixODBC: Fix paths in manpages
ClosedPublic

Authored by michaelo on Aug 27 2025, 7:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 1:46 PM
Unknown Object (File)
Sun, Oct 5, 6:30 AM
Unknown Object (File)
Fri, Oct 3, 1:19 PM
Unknown Object (File)
Thu, Oct 2, 1:42 PM
Unknown Object (File)
Wed, Oct 1, 9:35 PM
Unknown Object (File)
Wed, Oct 1, 7:40 AM
Unknown Object (File)
Tue, Sep 30, 8:51 AM
Unknown Object (File)
Sat, Sep 27, 2:05 AM
Subscribers
None

Details

Summary

Manpages aren't filtered during install for LOCALBASE, fix that.

Approved by: jrm (mentor), otis (mentor), brnrd (maintainer)

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

michaelo created this revision.

Looks good.

root@15amd64-default:/wrkdirs/usr/ports/databases/unixODBC/work/unixODBC-2.3.12/man # grep -o '/usr/lib' isql.1 iusql.1 odbcinst.1 odbc.ini.5 odbcinst.ini.5 unixODBC.7 | uniq
odbcinst.ini.5:/usr/lib

Only one of those man pages includes /usr/lib. If we're fine running this on files that may not match in order to make the substitution future proof against upstream changes, consider something like:

post-patch:
	@${REINPLACE_CMD}
		-e 's|\.ini$$|.ini.sample|' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} \
		-e 's|/etc|${LOCALBASE}/etc|' \
		-e 's|/usr/lib|${LOCALBASE}/lib|' ${WRKSRC}/man/*.[1-9]
This revision is now accepted and ready to land.Aug 27 2025, 8:46 PM

Now waiting for the maintainer...

This revision was automatically updated to reflect the committed changes.