`uname -a' can't display revision

KIRIYAMA Kazuhiko kiri at truefc.org
Tue Aug 20 12:24:09 UTC 2019


On Tue, 20 Aug 2019 20:58:26 +0900,
Trond Endrestøl wrote:
> 
> [1  <text/plain; UTF-8 (8bit)>]
> On Tue, 20 Aug 2019 20:18+0900, KIRIYAMA Kazuhiko wrote:
> 
> > On Tue, 20 Aug 2019 13:47:55 +0900,
> > Trond Endrestøl wrote:
> > > 
> > > On Tue, 20 Aug 2019 11:00+0900, KIRIYAMA Kazuhiko wrote:
> > > 
> > > > I've rebuild up to r351108 but `uname -a' can't display it's
> > > > revision number. 
> > > 
> > > Add this to /etc/src.conf:
> > > 
> > > WITHOUT_REPRODUCIBLE_BUILD=yes
> > 
> > Add above and rebuild with r351247, then
> > 
> > admin at tbedfs:~ % uname -a
> > FreeBSD tbedfs 12.0-STABLE FreeBSD 12.0-STABLE #0: Tue Aug 20 19:10:53 JST 2019     root at tbedfs:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
> > admin at tbedfs:~ % 
> > 
> > Only revision number ommitted. Why ?
> 
> Hum. That's strange. Do you have dot-directories belonging to Git or 
> some other VCS in the root of your source tree? I'm guessing this 
> might confuse the script generating the kernel identification.

That it is ! I've svn checkout in bhyve host (vm.tfc):


root at vm:~ # svnlite info /ds/src/stable/12/r351247
Path: /ds/src/stable/12/r351247
Working Copy Root Path: /ds/src/stable/12/r351247
URL: svn://svn.freebsd.org/base/stable/12
Relative URL: ^/stable/12
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 351247
Node Kind: directory
Schedule: normal
Last Changed Author: jhb
Last Changed Rev: 351246
Last Changed Date: 2019-08-20 10:30:35 +0900 (Tue, 20 Aug 2019)

root at vm:~ # 

And I've rebuild in bhyve VM tbedfs that NFS mount
/ds/src/stable/12/r351247 to /usr/src:

admin at tbedfs:~ % df -h
Filesystem                          Size    Used   Avail Capacity  Mounted on
/dev/vtbd0p2                        7.7G    3.2G    3.9G    45%    /
devfs                               1.0K    1.0K      0B   100%    /dev
vm.tfc:/.dake                        13T    209G     13T     2%    /.dake
vm.tfc:/ds/src/stable/12/r351247     13T    103G     13T     1%    /usr/src
vm.tfc:/ds/obj/stable/12/r351247     13T    332G     13T     2%    /usr/obj
admin at tbedfs:~ % ll /usr/src
total 907
-rw-r--r--    1 root  wheel      85 Aug  2 07:57 .arcconfig
-rw-r--r--    1 root  wheel     448 Aug  2 07:57 .arclint
-rw-r--r--    1 root  wheel     152 Aug  2 07:57 .gitattributes
-rw-r--r--    1 root  wheel     188 Aug  2 07:57 .gitignore
drwxr-xr-x    4 root  wheel       8 Aug  2 07:52 .svn/
-rw-r--r--    1 root  wheel    6179 Aug  2 07:57 COPYRIGHT
-rw-r--r--    1 root  wheel     553 Aug  2 07:57 LOCKS
-rw-r--r--    1 root  wheel    6020 Aug  2 07:57 MAINTAINERS
-rw-r--r--    1 root  wheel   28704 Aug  2 07:57 Makefile
-rw-r--r--    1 root  wheel  107133 Aug  2 07:57 Makefile.inc1
-rw-r--r--    1 root  wheel    7086 Aug  2 07:56 Makefile.libcompat
-rw-r--r--    1 root  wheel    2017 Aug  2 07:57 Makefile.sys.inc
-rw-r--r--    1 root  wheel  516207 Aug 12 14:57 ObsoleteFiles.inc
-rw-r--r--    1 root  wheel    2480 Aug  2 07:57 README
-rw-r--r--    1 root  wheel    2521 Aug  2 07:57 README.md
-rw-r--r--    1 root  wheel   82783 Aug 12 14:57 UPDATING
drwxr-xr-x   41 root  wheel      43 Aug  2 07:57 bin/
drwxr-xr-x    9 root  wheel      11 Aug  2 07:56 cddl/
drwxr-xr-x   94 root  wheel      94 Aug  2 07:56 contrib/
drwxr-xr-x    5 root  wheel       6 Aug  2 07:57 crypto/
drwxr-xr-x    7 root  wheel      17 Aug  2 07:56 etc/
drwxr-xr-x    5 root  wheel       9 Aug  2 07:57 gnu/
drwxr-xr-x    8 root  wheel     106 Aug  2 07:57 include/
drwxr-xr-x    8 root  wheel      11 Aug  2 07:57 kerberos5/
drwxr-xr-x  134 root  wheel     136 Aug  2 07:52 lib/
drwxr-xr-x   36 root  wheel      40 Aug  2 07:52 libexec/
drwxr-xr-x   13 root  wheel      23 Aug  2 07:56 release/
drwxr-xr-x    4 root  wheel       6 Aug  2 07:57 rescue/
drwxr-xr-x   92 root  wheel     100 Aug  2 07:52 sbin/
drwxr-xr-x    7 root  wheel       9 Aug  2 07:57 secure/
drwxr-xr-x   27 root  wheel      29 Aug  2 07:52 share/
drwxr-xr-x   26 root  wheel      35 Aug  2 07:56 stand/
drwxr-xr-x   54 root  wheel      55 Aug  2 07:54 sys/
drwxr-xr-x    3 root  wheel       6 Aug  2 07:57 targets/
drwxr-xr-x    5 root  wheel      10 Aug  2 07:56 tests/
drwxr-xr-x   16 root  wheel      20 Aug  2 07:56 tools/
drwxr-xr-x  283 root  wheel     290 Aug  2 07:56 usr.bin/
drwxr-xr-x  231 root  wheel     241 Aug  2 07:54 usr.sbin/
admin at tbedfs:~ % 

> 
> As a counter, this is from a recently updated VM running 13.0-CURRENT:
> 
> # uname -a
> FreeBSD freebsd-head-zfs.FQDN 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r351209: Mon Aug 19 11:50:33 CEST 2019     root at freebsd-head-zfs.FQDN:/usr/obj/usr/src/amd64.amd64/sys/XENGUEST  amd64
> 
> -- 
> Trond.
---
KIRIYAMA Kazuhiko


More information about the freebsd-stable mailing list