git 2.8.0 tarball rpmbuild error
hi
I downloaded tarball (tar.gz) from git web site and tried to make rpm file. But, when I run command "$rpmbuild -tb --clean git-2.8.0.tar.gz",
error message is displayed and rpm file creation stopped.
The error message is looks like this:
cp -pr README ~/rpmbuild/BUILDROOT/git-2.8.0-1.el7.centos.x86_64/usr/share/doc/git-2.8.0
cp: cannot stat 'README': No such file or directory
It looks like README file does not exist on expected directory.
Im using Centos 7.2.
I hope this bug will fix soon.
thank you
PATCH 1/1 spec: Adjust README name
The README file moved to README.md in ad21f5 (README: use markdown syntax, 2016-02-25).
---
Hi,
Quoted 6 lines · マッチョコ太郎
hi I downloaded tarball (tar.gz) from git web site and tried to make rpm file. But, when I run command "$rpmbuild -tb --clean git-2.8.0.tar.gz", error message is displayed and rpm file creation stopped. The error message is looks like this:
cp -pr README ~/rpmbuild/BUILDROOT/git-2.8.0-1.el7.centos.x86_64/usr/share/doc/git-2.8.0 cp: cannot stat 'README': No such file or directoryIt looks like README file does not exist on expected directory.
Im using Centos 7.2. I hope this bug will fix soon. thank you
I haven't tested this, but I think it should resolve the README issue in the spec file. Confirmation from folks who regularly build from this git spec file would be most welcome.
You could also rebuild the Fedora git packages for CentOS¹. We try to maintain compatibility as long as possible. The Fedora git package currently builds as far back as CentOS 5. I am pretty sure that it requires the EPEL repo to be enabled, but that might also be true of the git.spec included in here.
git.spec.in | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
git.spec.in +0 -0
@@ -146,7 +146,7 @@ rm -rf $RPM_BUILD_ROOT
%files -f bin-man-doc-files
%defattr(-,root,root)
%{_datadir}/git-core/
-%doc README COPYING Documentation/*.txt
+%doc README.md COPYING Documentation/*.txt %{!?_without_docs: %doc Documentation/*.html Documentation/howto} %{!?_without_docs: %doc Documentation/technical} %{_sysconfdir}/bash_completion.d
@@ -214,6 +214,9 @@ rm -rf $RPM_BUILD_ROOT
# No files for you!
%changelog
+* Sat Apr 02 2016 Todd Zullinger <[email protected]> +- Adjust README name
+
* Sun Sep 18 2011 Jakub Narebski <[email protected]>
- Add gitweb manpages to 'gitweb' subpackage
Signature · 6 lines
2.4.11 -- Todd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ambition is a poor excuse for not having enough sense to be lazy.
Quoted 8 lines · マッチョコ太郎
hi
I downloaded tarball (tar.gz) from git web site and tried to make rpm file. But, when I run command "$rpmbuild -tb --clean git-2.8.0.tar.gz",
error message is displayed and rpm file creation stopped.
The error message is looks like this:
cp -pr README ~/rpmbuild/BUILDROOT/git-2.8.0-1.el7.centos.x86_64/usr/share/doc/git-2.8.0
cp: cannot stat 'README': No such file or directory
Quoted 5 lines
It looks like README file does not exist on expected directory.
Im using Centos 7.2.
I hope this bug will fix soon.
thank you
Actually this bug was identified a few days ago and a patch has also been sent by Matthieu Moy. Thanks for reporting!
Quoted 9 lines · Pranit Bauva
Quoted 6 lines · マッチョコ太郎
hi I downloaded tarball (tar.gz) from git web site and tried to make rpm file. But, when I run command "$rpmbuild -tb --clean git-2.8.0.tar.gz", error message is displayed and rpm file creation stopped. The error message is looks like this:
cp -pr README ~/rpmbuild/BUILDROOT/git-2.8.0-1.el7.centos.x86_64/usr/share/doc/git-2.8.0 cp: cannot stat 'README': No such file or directoryIt looks like README file does not exist on expected directory.
Im using Centos 7.2. I hope this bug will fix soon. thank you
Actually this bug was identified a few days ago and a patch has also been sent by Matthieu Moy. Thanks for reporting!
D'oh, I didn't notice this had been reported already and a patch provided.
Signature · 5 lines
Todd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sometimes I wonder whether the world is being run by smart people who are putting us on or by imbeciles who really mean it. -- Mark Twain
RFD: removing git.spec.in (Re: git 2.8.0 tarball rpmbuild error)
It is likely that I'll cut 2.8.1 with only the attached patch
Message-ID: <[email protected]> aka $gmane/290510
and I'll explicitly mark that this maintenance release is ignorable by people other than those who build their own RPM packages from my tree.
I think by now it is very clear that nobody active in the Git development community tests RPM binaries built with git.spec.in we have in our tree. I suspect RPM based distros are using their own RPM build recipe without paying any attention to what we have in our tree, and that is why no packager from RPM land gave any bug report and correction before the release happened.
I'd propose that during the cycle for the next feature release, we'd remove git.spec.in and stop pretending as if we support RPM packaging.
If a group of people feel strongly against the removal, they are welcome to form a volunteer group and promise to be responsible for regularly testing the tip of 'next' so that a breakage like this one will never slip to the 'master' branch.
Unless we see such a promise from dedicated group of people (whose size does not have to be more than 1), I think it is more harmful for us to pretend that we support RPM packaging out of our tree than being honest about it and removing the (pretense of) support.
Discuss.
Thanks.
-- >8 --
Subject: [PATCH] git.spec.in: use README.md, not README
From: Matthieu Moy <[email protected]>
The file was renamed in 4ad21f5 (README: use markdown syntax, 2016-02-25), but that commit forgot to update git.spec.in.
--- git.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
git.spec.in +1 -1
@@ -146,7 +146,7 @@ rm -rf $RPM_BUILD_ROOT %files -f bin-man-doc-files %defattr(-,root,root) %{_datadir}/git-core/ -%doc README COPYING Documentation/*.txt +%doc README.md COPYING Documentation/*.txt %{!?_without_docs: %doc Documentation/*.html Documentation/howto} %{!?_without_docs: %doc Documentation/technical} %{_sysconfdir}/bash_completion.d
Signature · 1 line
2.7.2.334.g35ed2ae.dirty
Re: RFD: removing git.spec.in (Re: git 2.8.0 tarball rpmbuild error)
Quoted 6 lines · Junio C Hamano
I think by now it is very clear that nobody active in the Git development community tests RPM binaries built with git.spec.in we have in our tree. I suspect RPM based distros are using their own RPM build recipe without paying any attention to what we have in our tree, and that is why no packager from RPM land gave any bug report and correction before the release happened.
Fedora, RHEL, CentOS, OpenSUSE and Mageia all use their own specfiles and local patches. I do test and distribute RPM packages based on the next branch, but use fedora's packaging to do so (which incidentally also broke and I had to work around this change, but I completely forgot about git.spec.in).
Quoted 3 lines
I'd propose that during the cycle for the next feature release, we'd remove git.spec.in and stop pretending as if we support RPM packaging.
I would be in favor of that. In general, I find it much better to use a distro's packaging and simply transplanting a tarball into it. That keeps the difference with what the distro provides minimal.
Signature · 2 lines
Dennis Kaarsemaker www.kaarsemaker.net
PATCH 1/1 Makefile: stop pretending to support rpmbuild
Quoted 14 lines · Dennis Kaarsemaker
Quoted 6 lines · Junio C Hamano
I think by now it is very clear that nobody active in the Git development community tests RPM binaries built with git.spec.in we have in our tree. I suspect RPM based distros are using their own RPM build recipe without paying any attention to what we have in our tree, and that is why no packager from RPM land gave any bug report and correction before the release happened.
Fedora, RHEL, CentOS, OpenSUSE and Mageia all use their own specfiles and local patches. I do test and distribute RPM packages based on the next branch, but use fedora's packaging to do so (which incidentally also broke and I had to work around this change, but I completely forgot about git.spec.in).
Quoted 7 lines
Quoted 3 lines
I'd propose that during the cycle for the next feature release, we'd remove git.spec.in and stop pretending as if we support RPM packaging.
I would be in favor of that. In general, I find it much better to use a distro's packaging and simply transplanting a tarball into it. That keeps the difference with what the distro provides minimal.
OK, while we wait for other people to raise their opinions, here is to prepare for the removal, if we decide to follow through.
-- >8 --
Nobody in the active development community seems to watch breakages in the rpmbuild target. As most major RPM based distros use their own specfile when packaging us, they aren't looking after us as their pristine upstream tree, either. At this point, it is turning to be a disservice to the users to pretend that our tree natively supports "make rpmbuild" target when we do not properly maintain it.
--- Makefile | 17 +--- git.spec.in | 330 ------------------------------------------------------------ 2 files changed, 5 insertions(+), 342 deletions(-)
Makefile +5 -12
@@ -443,7 +443,6 @@ DIFF = diff TAR = tar FIND = find INSTALL = install -RPMBUILD = rpmbuild TCL_PATH = tclsh TCLTK_PATH = wish XGETTEXT = xgettext
@@ -2396,31 +2395,25 @@ quick-install-html: ### Maintainer's dist rules -git.spec: git.spec.in GIT-VERSION-FILE - sed -e 's/@@VERSION@@/$(GIT_VERSION)/g' < $< > $@+ - mv $@+ $@ - GIT_TARNAME = git-$(GIT_VERSION) dist: git.spec git-archive$(X) configure ./git-archive --format=tar \ --prefix=$(GIT_TARNAME)/ HEAD^{tree} > $(GIT_TARNAME).tar @mkdir -p $(GIT_TARNAME) - @cp git.spec configure $(GIT_TARNAME) + @cp configure $(GIT_TARNAME) @echo $(GIT_VERSION) > $(GIT_TARNAME)/version @$(MAKE) -C git-gui TARDIR=../$(GIT_TARNAME)/git-gui dist-version $(TAR) rf $(GIT_TARNAME).tar \ - $(GIT_TARNAME)/git.spec \ $(GIT_TARNAME)/configure \ $(GIT_TARNAME)/version \ $(GIT_TARNAME)/git-gui/version @$(RM) -r $(GIT_TARNAME) gzip -f -9 $(GIT_TARNAME).tar -rpm: dist - $(RPMBUILD) \ - --define "_source_filedigest_algorithm md5" \ - --define "_binary_filedigest_algorithm md5" \ - -ta $(GIT_TARNAME).tar.gz +rpm:: + @echo >&2 "Use distro packaged sources to run rpmbuild" + @false +.PHONY: rpm htmldocs = git-htmldocs-$(GIT_VERSION) manpages = git-manpages-$(GIT_VERSION)
git.spec.in deleted +0 -330
330 lines not on this page · raw message