DISTFILES: sqlite3: ERRORS: sqlite-src-3260000.zip

Arkadiusz Miśkiewicz arekm at maven.pl
Thu Dec 13 15:05:43 CET 2018


On 13/12/2018 12:42, Jan Palus wrote:
> On 13.12.2018 12:37, Arkadiusz Miśkiewicz wrote:
>> On 13/12/2018 12:30, Jan Palus wrote:
>>> On 13.12.2018 12:28, atler wrote:
>>>> Request by: atler
>>>>
>>>> sqlite3: undefined macro lua:vn=rpm.expand("%vnum");v="";for i in string.gmatch(string.format("%08d", vn), "..") do v=v.."."..i:gsub("^0", "");end;v=v:gsub("^.",""):gsub("\.0$","");print(v)
>>>>
>>>>
>>>>
>>>> Files fetched: 0
>>>>
>>>> ALREADY GOT: http://www.sqlite.org/2018/sqlite-src-3260000.zip
>>>> 	dfc2ae0e9b810e9e3db553f71ea832ad  sqlite-src-3260000.zip
>>>
>>> Anyone knows why distfiles is unable to expand this lua macro?
>>
>> It's a simple perl script that expands these macros and doesn't handle
>> complicated cases.
>>
>> Is this macro expansion needed anyway for sqlite3.spec? It fetched
>> source correctly, so likely it is not needed.
> 
> It's needed to fetch replication patch:
> 
> %define         ver             %{lua:vn...
> ...
> Patch1:         https://github.com/CanonicalLtd/sqlite/releases/download/version-%{ver}%%2Breplication3/sqlite-%{ver}.diff
> 
> I wonder how it worked the first time.

This is the script:

https://git.pld-linux.org/gitweb.cgi?p=projects/distfiles.git;a=blob;f=specparser.pl;h=510fbc5e001d422f0e5d0657cd87b33da4260c6a;hb=HEAD

or just store patch in our git and make small update.sh which fetches
latest version and updates spec


-- 
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )


More information about the pld-devel-en mailing list