[oe] [PATCH 1/3] git: replace remaining broken hardlinks with symlinks.

ydirson at free.fr ydirson at free.fr
Thu Aug 5 14:33:10 UTC 2010


Hi Paul,

>Objet: Re: [oe] [PATCH 1/3] git: replace remaining broken hardlinks with symlinks.
>could you do me a favor and explain what is broken regarding hardlinks
>please. This issue was pointed out to me before, but I could not
>reproduce it or did not understand it [1].

I was puzzled myself :)

While dpkg itself handles hardlinks in deb's (and thus in ipk's), if you run
"dpkg --fsystarfile git*.ipk|tar tvf -", you won't see any hardlink in the tar,
even though the Makefile creates them.  You can also "dpkg-deb -x" the ipk and check
that no hardlink gets extracted.

You can also comment out the loop that relinks binaries in current recipe, and see
the size of extracted ipk grow to 40+ MB.

Now I just assumed it was a bug in the mechanism generating the ipk's, but one should
first check that the output of do_stage is correct before pointing a finger :)
I don't claim this patch fixes the root cause of the problem, it just mitigates it and
just allows me to bring a working git in my pocket :)




More information about the Openembedded-devel mailing list