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

Jan Palus atler at pld-linux.org
Thu Dec 13 12:42:26 CET 2018


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.


More information about the pld-devel-en mailing list