Comments (15)
Sounds like a good thing to add.. Let me work on it.
from mhvtl.
Is this the type of format you're interested in ?
$ vtlcmd -V
Version: 1.7.1, commit: 9548ed2, commit date: 2024-05-15T10:27:28+10:00
from mhvtl.
I think I figured out how to download it so that vtlcmd -V shows the fuller version information. I just need to run "git clone https://github.com/markh794/mhvtl.git" and build from the source tree created from that.
from mhvtl.
I think this might not be so easy to get the commit number since that is added by github, but maybe the date could be easier to show.
from mhvtl.
In the above example - is 'date created' - the git commit date, or the compile date of the binary itself ?
from mhvtl.
It is the git commit date.
from mhvtl.
Yeah, that should work.
from mhvtl.
I guess you could shorten to something like this:
$ vtlcmd -V
Version: 1.7.1, commit: 9548ed2 (2024-05-15T10:27:28+10:00)
from mhvtl.
Or maybe even:
$ vtlcmd -V
Version: 1.7.1, commit: 9548ed2 2024-05-15T10:27:28+10:00
from mhvtl.
from mhvtl.
I'm targeting the additional git version stuff for non RPM builds only. Let's see how it works out :)
from mhvtl.
Commit d6da2cb added this info. But only if built from git source. RPM based builds should (still) only report the RPM build version - e.g. 1.7.1
from mhvtl.
Thank you very much for making these changes! I'll try it out soon and let you know what I think.
from mhvtl.
Hi, Mark. I tried out the latest code and vtlcmd -V appears to have the same output as before. When I did the make, I saw stuff like this:
make[1]: Entering directory '/opt/vtl.source/commit_1582/mhvtl-master/usr'
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION="1.7.1" -DMHVTL_GITDATE="" -DMHVTL_GITHASH=\"\"
-D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH="/opt/vtl" -DMHVTL_CONFIG_PATH="/etc/mhvtl" -DSYSTEMD_SERVICE_DIR="/lib/systemd/system" -c -fpic log.c
The MHVTL_GITHASH value is "". I downloaded the latest mhvtl code (commit 1582) by clicking on the "Code" link at https://github.com/markh794/mhvtl and then clicking on "Download ZIP" from the HTTPS tab. What is the correct way to download the code so that MHVTL_GITHASH gets set properly? I looked at how it is set and config.mk has:
GITHASH ?= $(if $(shell test -d $(TOPDIR)/.git && echo 1),commit:\ $(shell git show -s --format=%h))
I don't have a .git directory under the top directory. Instead I have a .github directory.
Thank you,
Peter
from mhvtl.
Hi, Mark. I tried out the latest code and vtlcmd -V appears to have the same output as before. When I did the make, I saw stuff like this:
make[1]: Entering directory '/opt/vtl.source/commit_1582/mhvtl-master/usr' cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION="1.7.1" -DMHVTL_GITDATE=""
-DMHVTL_GITHASH=\"\"
-D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH="/opt/vtl" -DMHVTL_CONFIG_PATH="/etc/mhvtl" -DSYSTEMD_SERVICE_DIR="/lib/systemd/system" -c -fpic log.cThe MHVTL_GITHASH value is "". I downloaded the latest mhvtl code (commit 1582) by clicking on the "Code" link at https://github.com/markh794/mhvtl and then clicking on "Download ZIP" from the HTTPS tab. What is the correct way to download the code so that MHVTL_GITHASH gets set properly? I looked at how it is set and config.mk has:
GITHASH ?= $(if $(shell test -d $(TOPDIR)/.git && echo 1),commit:\ $(shell git show -s --format=%h))
I don't have a .git directory under the top directory. Instead I have a .github directory.
Thank you, Peter
Let me try that method and see if I can include check for .github dir :)
from mhvtl.
Related Issues (20)
- Server reboot stucked due to unkillable mhvtl (SCSI Target: 15) HOT 4
- mhvtl not creating library contents in /opt/mhvtl HOT 1
- mhvtl website unreachable HOT 1
- Compile on el9 / 5.14 kernel HOT 2
- compatible with nbu 10.1? HOT 7
- New MHVTL release for recent kernels HOT 2
- The default L80 library works fine but the L700 fails in somewhat random ways. HOT 18
- compilation issue in usr/vtltape.c HOT 3
- Add support in VHF to indicate whether or not drive needs to be cleaned HOT 8
- Tape load no longer working for STK-L700 emulation HOT 5
- Not able to open mhvtl gui. HOT 2
- WORM capability doesn't work in mhvtl. HOT 34
- Unloading a tape, then loading it back in, mt status shows EOT instead of BOT HOT 3
- Selecting tape and library emulations HOT 3
- Can't turn off verbose logging HOT 1
- I/O error when accessing the tape device HOT 2
- The flags are wrong in the long form response of read position? HOT 3
- Build error with ssc_log_sense in ssc.c HOT 2
- kernel crash when restarting mhvtl.target HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mhvtl.