git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFH] rpm packaging failure

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 30, 2010, 22:22 UTC
Message-ID
<7vd40rjks4.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100130194746.GN29188@inocybe.localdomain>
Todd Zullinger <tmz@pobox.com> writes:
> Not shipping them if they aren't yet used/needed for anything other
> than folks working on remote helpers seems reasonable and the rm in
> the spec file should do the trick nicely.
Thanks.

To allow us to go forward a bit easier, I am planning to use the attached, as we would need some parts of it when we do start generating a separate package, I think.

-- >8 --
Subject: [PATCH] RPM packaging: don't include foreign-scm-helper bits yet

The files in /usr/lib/python* are only the support infrastructure for foreign scm interface yet to be written and/or shipped with git. Don't include them in the binary package (this will also free us from Python dependency).

When we ship with foreign scm interface, we will need to package these files with it in a separate subpackage, but we are not there yet.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 git.spec.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/git.spec.in b/git.spec.in
index ab224f7..0a03108 100644
--- a/git.spec.in
+++ b/git.spec.in
@@ -98,6 +98,7 @@ BuildRequires:  perl(Error)
 Perl interface to Git
 
 %define path_settings ETC_GITCONFIG=/etc/gitconfig prefix=%{_prefix} mandir=%{_mandir} htmldir=%{_docdir}/%{name}-%{version}
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 %prep
 %setup -q
@@ -112,6 +113,7 @@ rm -rf $RPM_BUILD_ROOT
 make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
      %{path_settings} \
      INSTALLDIRS=vendor install %{!?_without_docs: install-doc}
+test ! -d $RPM_BUILD_ROOT%{python_sitelib} || rm -fr $RPM_BUILD_ROOT%{python_sitelib}
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
@@ -190,6 +192,9 @@ rm -rf $RPM_BUILD_ROOT
 # No files for you!
 
 %changelog
+* Sat Jan 30 2010 Junio C Hamano <gitster@pobox.com>
+- We don't ship Python bits until a real foreign scm interface comes.
+
 * Mon Feb 04 2009 David J. Mellor <dmellor@whistlingcat.com>
 - fixed broken git help -w after renaming the git-core package to git.
 
-- 
1.7.0.rc1.141.gd3fd2
Previous: Todd ZullingerNext: Todd Zullinger
Message 5 of 11 in “[RFH] rpm packaging failure”
  1. Junio C HamanoJan 30, 2010
  2. Todd ZullingerJan 30, 2010
  3. Junio C HamanoJan 30, 2010
  4. Todd ZullingerJan 30, 2010
  5. Junio C HamanoJan 30, 2010
  6. Todd ZullingerJan 31, 2010
  7. Junio C HamanoJan 31, 2010
  8. David AguilarJan 31, 2010
  9. David AguilarJan 31, 2010
  10. Johan HerlandJan 31, 2010
  11. Sverre RabbelierJan 31, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.