freebsd-version(1) enchancement

2013-11-12 Thread Kimmo Paasiala
I didn't even know this tool existed before tried to complete
freebsd-tab today, very nice.

Would it make sense to also include the svnversion(1) of the system
sources in the version output? Maybe with a separate option (-u
perhaps?) if it's not ok to change the meaning of -k and -u options
anymore.

-Kimmo
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: freebsd-version(1) enchancement

2013-11-12 Thread Kimmo Paasiala
On Tue, Nov 12, 2013 at 11:16 AM, Kimmo Paasiala kpaas...@gmail.com wrote:
 I didn't even know this tool existed before tried to complete
 freebsd-tab today, very nice.

 Would it make sense to also include the svnversion(1) of the system
 sources in the version output? Maybe with a separate option (-u
 perhaps?) if it's not ok to change the meaning of -k and -u options
 anymore.

 -Kimmo

Woops... I just noticed freebsd-version is nothing but a shell script.
In that case could the svnversion(1) information be included in the
loader(8) binary? There's already a timestamp in it like this:

# strings /boot/loader | grep -A2 bootstrap loader

FreeBSD/x86 bootstrap loader
Sat Nov  9 15:29:40 EET 2013
t...@freebsd10.rdnzl.info

-Kimmo
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: freebsd-version(1) enchancement

2013-11-12 Thread Dag-Erling Smørgrav
Kimmo Paasiala kpaas...@gmail.com writes:
 Would it make sense to also include the svnversion(1) of the system
 sources in the version output?

No.  It is not available in the most important use case for
freebsd-version(1), i.e. freebsd-update builds.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: freebsd-version(1) enchancement

2013-11-12 Thread Kimmo Paasiala
On Tue, Nov 12, 2013 at 11:56 AM, Dag-Erling Smørgrav d...@des.no wrote:
 Kimmo Paasiala kpaas...@gmail.com writes:
 Would it make sense to also include the svnversion(1) of the system
 sources in the version output?

 No.  It is not available in the most important use case for
 freebsd-version(1), i.e. freebsd-update builds.

 DES
 --
 Dag-Erling Smørgrav - d...@des.no

I didn't express myself well enough I guess. What I'm after is
inclusion of the svnversion(1) information to a binary that gets
always built and installed as part of 'make buildworld/installworld'
regardless of src.conf(5) settings so that it would be possible to
identify the SVN version where the currently installed world comes
from. Now that I think loader(8) is not a good candidate for that
because of WITHOUT_BOOT. I was hoping that freebsd-version would be
such binary but since it's only a shell script that extracts the
information from various binaries it won't work unless those other
binaries have that information included in them.

-Kimmo
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: freebsd-version(1) enchancement

2013-11-12 Thread Dag-Erling Smørgrav
Kimmo Paasiala kpaas...@gmail.com writes:
 Dag-Erling Smørgrav d...@des.no writes:
  Kimmo Paasiala kpaas...@gmail.com writes:
   Would it make sense to also include the svnversion(1) of the
   system sources in the version output?
  No.  It is not available in the most important use case for
  freebsd-version(1), i.e. freebsd-update builds.
 I didn't express myself well enough I guess.

I understood you perfectly, but the svn revision number is not available
to the freebsd-update build, nor to users who build from a git checkout.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org