Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost VERSION file in source #6

Open
leaeasy opened this issue Mar 22, 2016 · 2 comments
Open

Lost VERSION file in source #6

leaeasy opened this issue Mar 22, 2016 · 2 comments

Comments

@leaeasy
Copy link

leaeasy commented Mar 22, 2016

When build package with the release source, we cannot get the package version.
I wonder if the VERSION file should be shipped in then archive source.

Makefile:
6 VERSION := $(shell $(GIT2LOG) --version VERSION ; cat VERSION)
7 BRANCH := $(shell git branch | perl -ne 'print $$_ if s/^\s//')
8 PREFIX := gfxboot-$(VERSION)

@leaeasy leaeasy changed the title Lost VERSIOn file in source Lost VERSION file in source Mar 22, 2016
@wfeldt
Copy link
Member

wfeldt commented Mar 22, 2016

But 'make archive' does include the VERSION file in the created archive.

@tele1
Copy link

tele1 commented Oct 27, 2016

But something want this file, so I also
interested how it works in OpenSuse.

I tried do something like exist in src.rpm from OpenSuse on UPLOS Linux ( PCLinuxOS based )
but I download from https://github.com/openSUSE/gfxboot/releases
and unpack

[tele@localhost gfxboot-4.5.18]$ mkdir build
[tele@localhost gfxboot-4.5.18]$ pwd
/home/tele/Downloads/NEW/gfxboot-4.5.18
[tele@localhost gfxboot-4.5.18]$ make DESTDIR=/home/tele/Downloads/NEW/gfxboot-4.5.18/build installsrc
no git repo
cat: VERSION: No such file or directory
fatal: Not a git repository (or any of the parent directories): .git
install -d -m 755 /home/tele/Downloads/NEW/gfxboot-4.5.18/build/usr/share/gfxboot/themes
cp -a themes/example* /home/tele/Downloads/NEW/gfxboot-4.5.18/build/usr/share/gfxboot/themes
cp -a bin test /home/tele/Downloads/NEW/gfxboot-4.5.18/build/usr/share/gfxboot
[tele@localhost gfxboot-4.5.18]$ make X11LIBS=/usr/X11R6/lib
no git repo
cat: VERSION: No such file or directory
fatal: Not a git repository (or any of the parent directories): .git
./git2log --update --changelog changelog
no git repo
Makefile:18: recipe for target 'changelog' failed
make: *** [changelog] Error 2

I want write something else
From README.md

You can find more information about this workflow in the linuxrc-devtools
documentation
.

we going to this website and ...

tobs

Commit current git state to build service.

There must be a make target archive that has created:

a VERSION file
a changelog file
a source archive package/<name>-<version>.tar.xz
optionally other source files (that will be mentioned in *.spec) below package/

Ideally, repeated make runs should produce exactly the same archive file as long as the git repo stays unchanged.

So, If you can, write how you doing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants