Bug 1260438 - [Patch] Source archive is not compressed
Summary: [Patch] Source archive is not compressed
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Igor Gnatenko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-06 21:33 UTC by Michael Kuhn
Modified: 2016-06-28 13:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-28 13:26:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Compress source archive (889 bytes, application/mbox)
2015-09-06 21:33 UTC, Michael Kuhn
no flags Details

Description Michael Kuhn 2015-09-06 21:33:16 UTC
Created attachment 1070781 [details]
Compress source archive

Description of problem:
While working with the mesa package, I noticed that the source archive created by the included Makefile is not compressed; the attached patch fixes this.

This patch reduces the size of the source archive from 60+ MB to 6 MB and the size of the source RPM from 20+ MB to ~6 MB.

The patch is for the f22 branch but should apply to all other branches.

Comment 1 Igor Gnatenko 2016-03-20 20:34:32 UTC
it's by purpose to have git tag in build.

Comment 2 Michael Kuhn 2016-03-20 21:43:19 UTC
Ah, OK, that makes sense; I am sorry for not noticing that. I could work on a patch to make the hash available without the need for a .git directory, though, if that would be okay for you (should be enough to simply create the git_sha1.h file during %setup).

Please still think about at least including the J flag when building the .tar.xz file, otherwise it is not compressed at all. This reduces the tarball's size from 70 MB to 20 MB (and the SRPM's size from 23 MB to 20 MB; not a lot, but still…).

Comment 3 Igor Gnatenko 2016-06-28 13:26:23 UTC
now we use upstream tarballs, so it's okay now.


Note You need to log in before you can comment on or make changes to this bug.