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)
Thu, Nov 27, 5:34 PM
Unknown Object (File)
Sun, Nov 23, 10:56 AM
Unknown Object (File)
Fri, Nov 14, 10:23 PM
Unknown Object (File)
Fri, Nov 14, 5:11 AM
Unknown Object (File)
Sat, Nov 8, 6:01 AM
Unknown Object (File)
Sun, Nov 2, 2:11 AM
Unknown Object (File)
Oct 24 2025, 5:26 PM
Unknown Object (File)
Oct 23 2025, 9:30 PM
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.