[Buildroot] [PATCH v3] bcache-tools: Adding package.

Jean-Christophe DUBOIS jcd at tribudubois.net
Tue Aug 5 14:04:39 UTC 2014


Le 08/05/2014 03:14 PM, Jerzy Grzegorek a écrit :
>
> Hi Jean-Christophe,
>
>> Le 08/05/2014 09:33 AM, Jerzy Grzegorek a écrit :
>>>
>>> Hi Jean-Christophe,
>>>
>>>>
>>>> index 0000000..36f0b22
>>>> --- /dev/null
>>>> +++ b/package/bcache-tools/bcache-tools.mk
>>>> @@ -0,0 +1,44 @@
>>>> +################################################################################ 
>>>>
>>>> +#
>>>> +# bcache-tools
>>>> +#
>>>> +################################################################################ 
>>>>
>>>> +
>>>> +BCACHE_TOOLS_VERSION = 1.0.7
>>>> +BCACHE_TOOLS_SITE = $(call 
>>>> github,g2p,bcache-tools,v$(BCACHE_TOOLS_VERSION))
>>>> +BCACHE_TOOLS_SOURCE = v$(BCACHE_TOOLS_VERSION).zip
>>>
>>> This should be:
>>>
>>> BCACHE_TOOLS_VERSION = v1.0.7
>>> BCACHE_TOOLS_SITE = $(call 
>>> github,g2p,bcache-tools,$(BCACHE_TOOLS_VERSION))
>>>
>>> Regards,
>>> Jerzy
>>
>> I tried this before but this is not working because when unzipped the 
>> bcache-tools directory is named bcache-tools-1.0.7 and not 
>> bcache-tools-v1.0.7.
>>
>> JC
>
> Did you remove:
> define BCACHE_TOOLS_EXTRACT_CMDS
>     unzip -d $(BUILD_DIR) $(DL_DIR)/$(BCACHE_TOOLS_SOURCE)
> endef
> ?

This does not solve the problem directly because then buildroot assumes 
the downloaded file is a tar.gz file while it is a zip file (so the tar 
command does not work).

However, switching the dowloaded file type to tar.gz in the .mk file 
does the trick (obviously github supports both even if only the zip file 
is advertized) and we can then use the v1.0.7 (the complete git tag) as 
BCACHE_TOOLS_VERSION.

Another version on its way.

Thanks

JC

>
> Regards,
> Jerzy
>
>>
>>
>>
>
>



More information about the buildroot mailing list