fastest_pkg icon indicating copy to clipboard operation
fastest_pkg copied to clipboard

If /usr/local/bin/uclcmd exists, consider using uclcmd to append to FreeBSD.conf

Open grahamperrin opened this issue 2 years ago • 1 comments

Background

In the example at https://github.com/ehaupt/fastest_pkg/issues/2#issuecomment-997171512 I intentionally did not bother to change my preferred shell /bin/csh to sh before following the example:

root@mowa219-gjp4-8570p-freebsd:~ # echo 'FreeBSD: { url: "http://pkg0.bme.freebsd.org/${ABI}/latest" }' \
?         > /usr/local/etc/pkg/repos/FreeBSD.conf
root@mowa219-gjp4-8570p-freebsd:~ # 

PEBKAM (intentional), but it's the type of mistake that other users might make.

Idea

https://github.com/ehaupt/fastest_pkg/blob/master/fastest_pkg might be enhanced:

  • if /usr/local/bin/uclcmd exists (from devel/uclcmd)
  • then offer to write a suggested line to /usr/local/etc/pkg/repos/FreeBSD.conf.

Criterion

For this to work acceptably, case sensitivity must be observed.

https://github.com/allanjude/uclcmd/issues/17https://github.com/allanjude/uclcmd/pull/28https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258451#c1

  • Just need someone to update the port

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258451#c0 included a ucl set example that currently results in unwanted change of case from FreeBSD to freebsd.

grahamperrin avatar Dec 18 '21 09:12 grahamperrin