rpm generated is more then 10 times the size of the contained files.

53 views
Skip to first unread message

Eric Merritt

unread,
Apr 17, 2013, 7:16:09 PM4/17/13
to fpm-...@googlegroups.com
I am generating an rpm for git using the following command

    fpm -s dir -t rpm -n git -v 1.8.2.1 ./

Where './' contains the output of the `make install` command of git. If I tar up the contents of `./` (created using the normal git build tools along with make DESTDIR, etc) the file is exactly 14 mg. However, when I create the rpm it is 267 mg. This is a huge unexpected discrepancy and I have no idea whats causing it. I would be very appreciative of any suggestions as to how to figure out whats going on. 

This behaviour occurs with the latest version of fpm. 

Jordan Sissel

unread,
Apr 17, 2013, 7:19:13 PM4/17/13
to fpm-...@googlegroups.com
This is because git uses hardlinks to a single binary to execute everything; fpm doesn't detect hardlinks correctly yet so it creates N copies of the file instead.

Sorry about this; I'll work on a fix :)

-Jordan

Eric Merritt

unread,
Apr 24, 2013, 1:38:42 PM4/24/13
to fpm-...@googlegroups.com
Did you get a chance to follow up? I am getting ready to dig in and didn't want to duplicate work. 
Reply all
Reply to author
Forward
0 new messages