public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANNOUNCEMENT] lua 5.3.5-1
@ 2019-05-02  3:20 Yaakov Selkowitz
  2021-05-19 22:27 ` [ANNOUNCEMENT] Updated: lua-5.3.6-2 Lemures Lemniscati via Cygwin-announce
  2021-05-19 22:47 ` [ANNOUNCEMENT] Test: lua-5.4.3-1 Lemures Lemniscati via Cygwin-announce
  0 siblings, 2 replies; 19+ messages in thread
From: Yaakov Selkowitz @ 2019-05-02  3:20 UTC (permalink / raw)
  To: cygwin

The following packages have been uploaded to the Cygwin distribution:

* lua-5.3.5-1
* lua-devel-5.3.5-1

Lua is a powerful, light-weight programming language designed for extending 
applications. Lua is also frequently used as a general-purpose, stand-alone 
language.

This is an update to the latest upstream release.  As with each minor 
version update, binaries will need to be recompiled for this version.

--
Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [ANNOUNCEMENT] Updated: lua-5.3.6-2
  2019-05-02  3:20 [ANNOUNCEMENT] lua 5.3.5-1 Yaakov Selkowitz
@ 2021-05-19 22:27 ` Lemures Lemniscati via Cygwin-announce
  2021-05-27  8:49   ` Fergus Daly
                     ` (3 more replies)
  2021-05-19 22:47 ` [ANNOUNCEMENT] Test: lua-5.4.3-1 Lemures Lemniscati via Cygwin-announce
  1 sibling, 4 replies; 19+ messages in thread
From: Lemures Lemniscati via Cygwin-announce @ 2021-05-19 22:27 UTC (permalink / raw)
  To: cygwin

The following packages have been uploaded to the Cygwin distribution:

* lua-5.3.6-2
* liblua5.3-5.3.6-2
* liblua-devel-5.3.6-2

* lua-5.3.6-2-src
* lua-debuginfo-5.3.6-2

Lua is a powerful, light-weight programming language designed for extending 
applications. Lua is also frequently used as a general-purpose, stand-alone 
language.

--

This is an update to the upstream release 5.3.6 with some bug-fix
patches:

    https://www.lua.org/bugs.html#5.4.2-2
    https://www.lua.org/bugs.html#5.4.2-3

In this cygwin update, some files come with version number: 
 e.g: lua5.3.exe, which is symlinked from lua by alternatives.

Lemures Lemniscati

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [ANNOUNCEMENT] Test: lua-5.4.3-1
  2019-05-02  3:20 [ANNOUNCEMENT] lua 5.3.5-1 Yaakov Selkowitz
  2021-05-19 22:27 ` [ANNOUNCEMENT] Updated: lua-5.3.6-2 Lemures Lemniscati via Cygwin-announce
@ 2021-05-19 22:47 ` Lemures Lemniscati via Cygwin-announce
  2021-06-01 14:46   ` [ANNOUNCEMENT] Test: lua-5.4.3-2 Lemures Lemniscati via Cygwin-announce
  1 sibling, 1 reply; 19+ messages in thread
From: Lemures Lemniscati via Cygwin-announce @ 2021-05-19 22:47 UTC (permalink / raw)
  To: cygwin

The following test packages have been uploaded to the Cygwin
distribution:

* lua-5.4.3-1
* liblua-devel-5.4.3-1
* liblua5.4-5.4.3-1

* lua-5.4.3-1-src
* lua-debuginfo-5.4.3-1


Lua is a powerful, light-weight programming language designed for extending 
applications. Lua is also frequently used as a general-purpose, stand-alone 
language.

--

This is an update to the upstream release 5.4.3 with a bug-fix
patch:

    https://www.lua.org/bugs.html#5.4.3-3

In this cygwin update, some files come with version number: 
 e.g: lua5.4.exe, which is symlinked from lua by alternatives.

Note:
  Modules for Lua 5.4 is not prepared yet.
  This is just a TEST of the interpreter/compiler.

Lemures Lemniscati

^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [ANNOUNCEMENT] Updated: lua-5.3.6-2
  2021-05-19 22:27 ` [ANNOUNCEMENT] Updated: lua-5.3.6-2 Lemures Lemniscati via Cygwin-announce
@ 2021-05-27  8:49   ` Fergus Daly
  2021-05-27  9:52     ` Lemures Lemniscati
  2021-05-30 21:38   ` Andrey Repin
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 19+ messages in thread
From: Fergus Daly @ 2021-05-27  8:49 UTC (permalink / raw)
  To: cygwin; +Cc: Lemures Lemniscati via Cygwin-announce, Fergus Daly

>> Subject: [ANNOUNCEMENT] Updated: lua-5.3.6-2
<snip>
>> In this cygwin update, some files come with version number: 
>> e.g: lua5.3.exe, which is symlinked from lua by alternatives.
>> Lemures Lemniscati

I'm afraid I haven't tried
Test: lua-5.4.3-1
which was issued at the same time as this update, but on the issue of
"files come with version number" referenced above, all of
/etc/alternatives/liblua.dll.a
/etc/alternatives/lua.pc
/lib/liblua.dll.a
/lib/pkgconfig/lua.pc
seem to be broken for the same fundamental reason - version numbers incorporated into the filename.
(Or not.)
Fergus  


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ANNOUNCEMENT] Updated: lua-5.3.6-2
  2021-05-27  8:49   ` Fergus Daly
@ 2021-05-27  9:52     ` Lemures Lemniscati
  0 siblings, 0 replies; 19+ messages in thread
From: Lemures Lemniscati @ 2021-05-27  9:52 UTC (permalink / raw)
  To: cygwin

On Thu, 27 May 2021 08:49:07 +0000, Fergus Daly via Cygwin
> >> Subject: [ANNOUNCEMENT] Updated: lua-5.3.6-2
> <snip>
> >> In this cygwin update, some files come with version number: 
> >> e.g: lua5.3.exe, which is symlinked from lua by alternatives.
> >> Lemures Lemniscati
> 
> I'm afraid I haven't tried
> Test: lua-5.4.3-1
> which was issued at the same time as this update, but on the issue of
> "files come with version number" referenced above, all of
> /etc/alternatives/liblua.dll.a
> /etc/alternatives/lua.pc
> /lib/liblua.dll.a
> /lib/pkgconfig/lua.pc
> seem to be broken for the same fundamental reason - version numbers incorporated into the filename.
> (Or not.)
> Fergus  

Thank you for comments, Fergus.

Please install a corresponding version of liblua-devel package.
It will supply real objects, to which the symlinks point.

In the current packaging, only one lua version can install either 5.3 or 5.4, yet. 
And, when we use files for development, we need to install a corresponding version of liblua-devel package.

It is intended that unnumbered files should have a common consistent version,
and symlinks are made and modified when a specific version of lua package is installed.


Regards,

Lem

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ANNOUNCEMENT] Updated: lua-5.3.6-2
  2021-05-19 22:27 ` [ANNOUNCEMENT] Updated: lua-5.3.6-2 Lemures Lemniscati via Cygwin-announce
  2021-05-27  8:49   ` Fergus Daly
@ 2021-05-30 21:38   ` Andrey Repin
  2021-05-30 23:30     ` Lemures Lemniscati
  2021-06-01 14:39   ` Updated: lua-5.3.6-3 Lemures Lemniscati
  2021-06-01 14:41   ` [ANNOUNCEMENT] " Lemures Lemniscati via Cygwin-announce
  3 siblings, 1 reply; 19+ messages in thread
From: Andrey Repin @ 2021-05-30 21:38 UTC (permalink / raw)
  To: Lemures Lemniscati via Cygwin-announce via Cygwin, cygwin

Greetings, Lemures Lemniscati via Cygwin-announce via Cygwin!

> The following packages have been uploaded to the Cygwin distribution:

> * lua-5.3.6-2
> * liblua5.3-5.3.6-2
> * liblua-devel-5.3.6-2

> * lua-5.3.6-2-src
> * lua-debuginfo-5.3.6-2

> Lua is a powerful, light-weight programming language designed for extending 
> applications. Lua is also frequently used as a general-purpose, stand-alone 
> language.

> --

> This is an update to the upstream release 5.3.6 with some bug-fix
> patches:

>     https://www.lua.org/bugs.html#5.4.2-2
>     https://www.lua.org/bugs.html#5.4.2-3

> In this cygwin update, some files come with version number: 
>  e.g: lua5.3.exe, which is symlinked from lua by alternatives.

2021/05/29 18:02:19 running: C:\Programs\Cygwin_64\bin\bash.exe --norc --noprofile "/etc/postinstall/lua.sh"
bash.exe: warning: could not find /tmp, please create!
failed to read link /usr/bin/lua: No such file or directory
failed to link /usr/bin/lua -> /etc/alternatives/lua: No such file or directory
failed to link /usr/bin/luac -> /etc/alternatives/luac: No such file or directory
failed to link /usr/lib/liblua.dll.a -> /etc/alternatives/liblua.dll.a: No such file or directory
failed to link /usr/lib/pkgconfig/lua.pc -> /etc/alternatives/lua.pc: No such file or directory
failed to link /usr/share/man/man1/lua.1.gz -> /etc/alternatives/lua.1.gz: No such file or directory
failed to link /usr/share/man/man1/luac.1.gz -> /etc/alternatives/luac.1.gz: No such file or directory
2021/05/29 18:02:19 abnormal exit: exit code=2

$ cygcheck -vf /etc/postinstall/lua.sh
/etc/postinstall/lua.sh: found in package lua-5.3.6-2


-- 
With best regards,
Andrey Repin
Saturday, May 29, 2021 10:01:15

Sorry for my terrible english...


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ANNOUNCEMENT] Updated: lua-5.3.6-2
  2021-05-30 21:38   ` Andrey Repin
@ 2021-05-30 23:30     ` Lemures Lemniscati
  2021-05-31  4:12       ` Lemures Lemniscati
  0 siblings, 1 reply; 19+ messages in thread
From: Lemures Lemniscati @ 2021-05-30 23:30 UTC (permalink / raw)
  To: cygwin

On Mon, 31 May 2021 00:38:57 +0300, Andrey Repin via Cygwin
> Greetings, Lemures Lemniscati via Cygwin-announce via Cygwin!
> 
> > The following packages have been uploaded to the Cygwin distribution:
> 
> > * lua-5.3.6-2
> > * liblua5.3-5.3.6-2
> > * liblua-devel-5.3.6-2
> 
> > * lua-5.3.6-2-src
> > * lua-debuginfo-5.3.6-2
> 
> 
> > In this cygwin update, some files come with version number: 
> >  e.g: lua5.3.exe, which is symlinked from lua by alternatives.
> 
> 2021/05/29 18:02:19 running: C:\Programs\Cygwin_64\bin\bash.exe --norc --noprofile "/etc/postinstall/lua.sh"
> bash.exe: warning: could not find /tmp, please create!
> failed to read link /usr/bin/lua: No such file or directory
> failed to link /usr/bin/lua -> /etc/alternatives/lua: No such file or directory
> failed to link /usr/bin/luac -> /etc/alternatives/luac: No such file or directory
> failed to link /usr/lib/liblua.dll.a -> /etc/alternatives/liblua.dll.a: No such file or directory
> failed to link /usr/lib/pkgconfig/lua.pc -> /etc/alternatives/lua.pc: No such file or directory
> failed to link /usr/share/man/man1/lua.1.gz -> /etc/alternatives/lua.1.gz: No such file or directory
> failed to link /usr/share/man/man1/luac.1.gz -> /etc/alternatives/luac.1.gz: No such file or directory
> 2021/05/29 18:02:19 abnormal exit: exit code=2
> 
> $ cygcheck -vf /etc/postinstall/lua.sh
> /etc/postinstall/lua.sh: found in package lua-5.3.6-2
> 

Sorry, I cannot reproduce it yet.
It seems weird that bash can not find /tmp.
But, I don't know it is related to the issue.

> bash.exe: warning: could not find /tmp, please create!


The contents of /etc/postinstall/lua.sh in package lua-5.3.6-2 is

$ cat /etc/postinstall/lua.sh.done
/usr/sbin/alternatives \
  --install /usr/bin/lua lua /usr/bin/lua5.3 503 \
  --slave /usr/bin/luac luac /usr/bin/luac5.3 \
  --slave /usr/share/man/man1/lua.1.gz lua.1.gz /usr/share/man/man1/lua5.3.1.gz \
  --slave /usr/share/man/man1/luac.1.gz luac.1.gz /usr/share/man/man1/luac5.3.1.gz \
  --slave /usr/lib/liblua.dll.a liblua.dll.a /usr/lib/liblua5.3.dll.a \
  --slave /usr/lib/pkgconfig/lua.pc lua.pc /usr/lib/pkgconfig/lua5.3.pc \
;


And this is a part of my /var/log/setup.log.full
when I update lua from lua-5.3.6-1 to lua-5.3.6-2
(no warning about /tmp and  /etc/postinstall/lua.sh seems to work well)
---
...
Rebasing with list /var/cache/rebase/rebase_all, built from /var/cache/rebase/rebase_lst /var/cache/rebase/rebase_dyn /var/cache/rebase/rebase_user.
2021/05/31 07:58:34 running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_texlive_prep.dash"
2021/05/31 07:58:34 running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir.dash"
2021/05/31 07:58:36 running: C:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/lua.sh"
2021/05/31 07:58:37 running: C:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_adwaita-icon-theme.sh"
2021/05/31 07:58:37 running: C:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_breeze-icons.sh"
...
---

Lem


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ANNOUNCEMENT] Updated: lua-5.3.6-2
  2021-05-30 23:30     ` Lemures Lemniscati
@ 2021-05-31  4:12       ` Lemures Lemniscati
  2021-05-31  8:54         ` Andrey Repin
  0 siblings, 1 reply; 19+ messages in thread
From: Lemures Lemniscati @ 2021-05-31  4:12 UTC (permalink / raw)
  To: cygwin

On Mon, 31 May 2021 08:30:56 +0900, Lemures Lemniscati
> On Mon, 31 May 2021 00:38:57 +0300, Andrey Repin via Cygwin
> > Greetings, Lemures Lemniscati via Cygwin-announce via Cygwin!
> > 
> > > The following packages have been uploaded to the Cygwin distribution:
> > 
> > > * lua-5.3.6-2
> > > * liblua5.3-5.3.6-2
> > > * liblua-devel-5.3.6-2
> > 
> > > * lua-5.3.6-2-src
> > > * lua-debuginfo-5.3.6-2
> > 
> > 
> > > In this cygwin update, some files come with version number: 
> > >  e.g: lua5.3.exe, which is symlinked from lua by alternatives.
> > 
> > 2021/05/29 18:02:19 running: C:\Programs\Cygwin_64\bin\bash.exe --norc --noprofile "/etc/postinstall/lua.sh"
> > bash.exe: warning: could not find /tmp, please create!
> > failed to read link /usr/bin/lua: No such file or directory
> > failed to link /usr/bin/lua -> /etc/alternatives/lua: No such file or directory
> > failed to link /usr/bin/luac -> /etc/alternatives/luac: No such file or directory
> > failed to link /usr/lib/liblua.dll.a -> /etc/alternatives/liblua.dll.a: No such file or directory
> > failed to link /usr/lib/pkgconfig/lua.pc -> /etc/alternatives/lua.pc: No such file or directory
> > failed to link /usr/share/man/man1/lua.1.gz -> /etc/alternatives/lua.1.gz: No such file or directory
> > failed to link /usr/share/man/man1/luac.1.gz -> /etc/alternatives/luac.1.gz: No such file or directory
> > 2021/05/29 18:02:19 abnormal exit: exit code=2
> > 
> > $ cygcheck -vf /etc/postinstall/lua.sh
> > /etc/postinstall/lua.sh: found in package lua-5.3.6-2
> > 
> 
> Sorry, I cannot reproduce it yet.
> It seems weird that bash can not find /tmp.
> But, I don't know it is related to the issue.
> 
> > bash.exe: warning: could not find /tmp, please create!

I've partially reproduced it by installing cygwin from scratch
and selecting base Category and lua-5.3.6-2.
Now, I've got a failure:

failed to link /usr/lib/pkgconfig/lua.pc -> /etc/alternatives/lua.pc: No such file or directory

It seems that a cause of the failure was that a directory
  /usr/lib/pkgconfig
was not prepared at that time.

So, some of the failures pointed out might be avoidable,
by packaging empty directories into lua-5.3.6-*
  usr/lib/pkgconfig/

I'll try it.

But, this workaround will not enough in order to resolve all the failures...

Please, Andrey, describe more precisely how to reproduce.

Lem

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ANNOUNCEMENT] Updated: lua-5.3.6-2
  2021-05-31  4:12       ` Lemures Lemniscati
@ 2021-05-31  8:54         ` Andrey Repin
  2021-05-31  9:26           ` Andrey Repin
  0 siblings, 1 reply; 19+ messages in thread
From: Andrey Repin @ 2021-05-31  8:54 UTC (permalink / raw)
  To: Lemures Lemniscati, cygwin

Greetings, Lemures Lemniscati!

> On Mon, 31 May 2021 08:30:56 +0900, Lemures Lemniscati
>> On Mon, 31 May 2021 00:38:57 +0300, Andrey Repin via Cygwin
>> > Greetings, Lemures Lemniscati via Cygwin-announce via Cygwin!
>> > 
>> > > The following packages have been uploaded to the Cygwin distribution:
>> > 
>> > > * lua-5.3.6-2
>> > > * liblua5.3-5.3.6-2
>> > > * liblua-devel-5.3.6-2
>> > 
>> > > * lua-5.3.6-2-src
>> > > * lua-debuginfo-5.3.6-2
>> > 
>> > 
>> > > In this cygwin update, some files come with version number: 
>> > >  e.g: lua5.3.exe, which is symlinked from lua by alternatives.
>> > 
>> > 2021/05/29 18:02:19 running: C:\Programs\Cygwin_64\bin\bash.exe --norc --noprofile "/etc/postinstall/lua.sh"
>> > bash.exe: warning: could not find /tmp, please create!
>> > failed to read link /usr/bin/lua: No such file or directory
>> > failed to link /usr/bin/lua -> /etc/alternatives/lua: No such file or directory
>> > failed to link /usr/bin/luac -> /etc/alternatives/luac: No such file or directory
>> > failed to link /usr/lib/liblua.dll.a -> /etc/alternatives/liblua.dll.a: No such file or directory
>> > failed to link /usr/lib/pkgconfig/lua.pc -> /etc/alternatives/lua.pc: No such file or directory
>> > failed to link /usr/share/man/man1/lua.1.gz -> /etc/alternatives/lua.1.gz: No such file or directory
>> > failed to link /usr/share/man/man1/luac.1.gz -> /etc/alternatives/luac.1.gz: No such file or directory
>> > 2021/05/29 18:02:19 abnormal exit: exit code=2
>> > 
>> > $ cygcheck -vf /etc/postinstall/lua.sh
>> > /etc/postinstall/lua.sh: found in package lua-5.3.6-2
>> > 
>> 
>> Sorry, I cannot reproduce it yet.
>> It seems weird that bash can not find /tmp.
>> But, I don't know it is related to the issue.
>> 
>> > bash.exe: warning: could not find /tmp, please create!

> Sorry, I cannot reproduce it yet.
> It seems weird that bash can not find /tmp.
> But, I don't know it is related to the issue.

I can't understand the /tmp issue either. This is from /etc/fstab :

none /tmp usertemp binary,nouser,posix=1 0 0

> I've partially reproduced it by installing cygwin from scratch
> and selecting base Category and lua-5.3.6-2.
> Now, I've got a failure:

> failed to link /usr/lib/pkgconfig/lua.pc -> /etc/alternatives/lua.pc: No such file or directory

> It seems that a cause of the failure was that a directory
>   /usr/lib/pkgconfig
> was not prepared at that time.

> So, some of the failures pointed out might be avoidable,
> by packaging empty directories into lua-5.3.6-*
>   usr/lib/pkgconfig/

> I'll try it.

> But, this workaround will not enough in order to resolve all the failures...

> Please, Andrey, describe more precisely how to reproduce.

No good idea.

My upgrade path was

5.3.5-1 -> 5.3.6-1 -> 5.3.6-2

Trying to follow manually

# /usr/sbin/alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 503 --verbose --test
reading /var/lib/alternatives/lua
auto
/usr/bin/lua

/usr/bin/lua5.3
503
would link /usr/bin/lua -> /etc/alternatives/lua
would link /etc/alternatives/lua -> /usr/bin/lua5.3

It seems "alternatives" is trying to create links to nonexistent files.
Which is not possible under Windows.

Manually creating source link let the thing go

# ln -fsT /usr/bin/lua5.3 /etc/alternatives/lua
# /usr/sbin/alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 503 --verbose
reading /var/lib/alternatives/lua


-- 
With best regards,
Andrey Repin
Monday, May 31, 2021 11:17:02

Sorry for my terrible english...


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ANNOUNCEMENT] Updated: lua-5.3.6-2
  2021-05-31  8:54         ` Andrey Repin
@ 2021-05-31  9:26           ` Andrey Repin
  2021-05-31 10:41             ` Lemures Lemniscati
  0 siblings, 1 reply; 19+ messages in thread
From: Andrey Repin @ 2021-05-31  9:26 UTC (permalink / raw)
  To: Andrey Repin via Cygwin, cygwin

Greetings, Andrey Repin via Cygwin!

> Trying to follow manually

> # /usr/sbin/alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 503 --verbose --test
> reading /var/lib/alternatives/lua
> auto
> /usr/bin/lua

> /usr/bin/lua5.3
> 503
> would link /usr/bin/lua -> /etc/alternatives/lua
> would link /etc/alternatives/lua -> /usr/bin/lua5.3

> It seems "alternatives" is trying to create links to nonexistent files.
> Which is not possible under Windows.

> Manually creating source link let the thing go

> # ln -fsT /usr/bin/lua5.3 /etc/alternatives/lua
> # /usr/sbin/alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 503 --verbose
> reading /var/lib/alternatives/lua

Err, though I've included that in the reply, but it seems I was distracted at
the moment.

CYGWIN=wincmdln winsymlinks:nativestrict glob:ignorecase


-- 
With best regards,
Andrey Repin
Monday, May 31, 2021 12:26:03

Sorry for my terrible english...


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ANNOUNCEMENT] Updated: lua-5.3.6-2
  2021-05-31  9:26           ` Andrey Repin
@ 2021-05-31 10:41             ` Lemures Lemniscati
  0 siblings, 0 replies; 19+ messages in thread
From: Lemures Lemniscati @ 2021-05-31 10:41 UTC (permalink / raw)
  To: cygwin

On Mon, 31 May 2021 12:26:59 +0300, Andrey Repin via Cygwin
> Greetings, Andrey Repin via Cygwin!
> 
> > Trying to follow manually
> 
> > # /usr/sbin/alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 503 --verbose --test
> > reading /var/lib/alternatives/lua
> > auto
> > /usr/bin/lua
> 
> > /usr/bin/lua5.3
> > 503
> > would link /usr/bin/lua -> /etc/alternatives/lua
> > would link /etc/alternatives/lua -> /usr/bin/lua5.3
> 
> > It seems "alternatives" is trying to create links to nonexistent files.
> > Which is not possible under Windows.
> 
> > Manually creating source link let the thing go
> 
> > # ln -fsT /usr/bin/lua5.3 /etc/alternatives/lua
> > # /usr/sbin/alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 503 --verbose
> > reading /var/lib/alternatives/lua
> 
> Err, though I've included that in the reply, but it seems I was distracted at
> the moment.
> 
> CYGWIN=wincmdln winsymlinks:nativestrict glob:ignorecase
> 

Thank you, Andrey Repin.

I didn't know about an option 'winsymlinks' [1].

[1]: https://cygwin.com/cygwin-ug-net/using-cygwinenv.html#cygwinenv-implemented-options


I think I've understood necessity to avoid making symlinks to
non-existent files.

I'll modify postinstall/preremove scripts.

Regards,

Lem


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Updated: lua-5.3.6-3
  2021-05-19 22:27 ` [ANNOUNCEMENT] Updated: lua-5.3.6-2 Lemures Lemniscati via Cygwin-announce
  2021-05-27  8:49   ` Fergus Daly
  2021-05-30 21:38   ` Andrey Repin
@ 2021-06-01 14:39   ` Lemures Lemniscati
  2021-06-01 14:41   ` [ANNOUNCEMENT] " Lemures Lemniscati via Cygwin-announce
  3 siblings, 0 replies; 19+ messages in thread
From: Lemures Lemniscati @ 2021-06-01 14:39 UTC (permalink / raw)
  To: cygwin

The following packages have been uploaded to the Cygwin distribution:

* lua-5.3.6-3
* liblua5.3-5.3.6-3
* liblua-devel-5.3.6-3

* lua-5.3.6-3-src
* lua-debuginfo-5.3.6-3

Lua is a powerful, light-weight programming language designed for extending 
applications. Lua is also frequently used as a general-purpose, stand-alone 
language.

--

Cygwin Changes from lua-5.3.6-2

Fixed postinstall/preremove scripts in order to avoid making symlinks to
non-existent files.

Please, note that, when CYGWIN=winsymlinks:nativestrict is specified,
they might still fail.

From lua-5.3.6-2, some files come with version number:
 e.g: lua5.3.exe, which is symlinked from lua by alternatives.

Lemures Lemniscati


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [ANNOUNCEMENT] Updated: lua-5.3.6-3
  2021-05-19 22:27 ` [ANNOUNCEMENT] Updated: lua-5.3.6-2 Lemures Lemniscati via Cygwin-announce
                     ` (2 preceding siblings ...)
  2021-06-01 14:39   ` Updated: lua-5.3.6-3 Lemures Lemniscati
@ 2021-06-01 14:41   ` Lemures Lemniscati via Cygwin-announce
  2021-06-04 13:16     ` Jon Turney
  2021-06-05 22:26     ` [ANNOUNCEMENT] Updated: lua-5.3.6-4 Lemures Lemniscati via Cygwin-announce
  3 siblings, 2 replies; 19+ messages in thread
From: Lemures Lemniscati via Cygwin-announce @ 2021-06-01 14:41 UTC (permalink / raw)
  To: cygwin

The following packages have been uploaded to the Cygwin distribution:

* lua-5.3.6-3
* liblua5.3-5.3.6-3
* liblua-devel-5.3.6-3

* lua-5.3.6-3-src
* lua-debuginfo-5.3.6-3

Lua is a powerful, light-weight programming language designed for extending 
applications. Lua is also frequently used as a general-purpose, stand-alone 
language.

--

Cygwin Changes from lua-5.3.6-2

Fixed postinstall/preremove scripts in order to avoid making symlinks to
non-existent files.

Please, note that, when CYGWIN=winsymlinks:nativestrict is specified,
they might still fail.

From lua-5.3.6-2, some files come with version number:
 e.g: lua5.3.exe, which is symlinked from lua by alternatives.

Lemures Lemniscati

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [ANNOUNCEMENT] Test: lua-5.4.3-2
  2021-05-19 22:47 ` [ANNOUNCEMENT] Test: lua-5.4.3-1 Lemures Lemniscati via Cygwin-announce
@ 2021-06-01 14:46   ` Lemures Lemniscati via Cygwin-announce
  2021-06-05 22:36     ` [ANNOUNCEMENT] Test: lua-5.4.3-3 Lemures Lemniscati via Cygwin-announce
  2022-03-06 13:29     ` [ANNOUNCEMENT] Test: lua-5.4.4-1 Lemures Lemniscati via Cygwin-announce
  0 siblings, 2 replies; 19+ messages in thread
From: Lemures Lemniscati via Cygwin-announce @ 2021-06-01 14:46 UTC (permalink / raw)
  To: cygwin

The following test packages have been uploaded to the Cygwin
distribution:

* lua-5.4.3-2
* liblua-devel-5.4.3-2
* liblua5.4-5.4.3-2

* lua-5.4.3-2-src
* lua-debuginfo-5.4.3-2


Lua is a powerful, light-weight programming language designed for extending 
applications. Lua is also frequently used as a general-purpose, stand-alone 
language.

--

Cygwin Changes from lua-5.4.3-1

Fixed postinstall/preremove scripts in order to avoid making symlinks to
non-existent files.

Please, note that, when CYGWIN=winsymlinks:nativestrict is specified,
they might still fail.

From lua-5.4.3-1, some files come with version number:
 e.g: lua5.4.exe, which is symlinked from lua by alternatives.


Note:
  Modules for Lua 5.4 is not prepared yet.
  This is just a TEST of the interpreter/compiler.

Lemures Lemniscati

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ANNOUNCEMENT] Updated: lua-5.3.6-3
  2021-06-01 14:41   ` [ANNOUNCEMENT] " Lemures Lemniscati via Cygwin-announce
@ 2021-06-04 13:16     ` Jon Turney
  2021-06-04 16:10       ` Lemures Lemniscati
  2021-06-05 22:26     ` [ANNOUNCEMENT] Updated: lua-5.3.6-4 Lemures Lemniscati via Cygwin-announce
  1 sibling, 1 reply; 19+ messages in thread
From: Jon Turney @ 2021-06-04 13:16 UTC (permalink / raw)
  To: The Cygwin Mailing List

On 01/06/2021 15:41, Lemures Lemniscati via Cygwin-announce via Cygwin 
wrote:
> The following packages have been uploaded to the Cygwin distribution:
> 
> * lua-5.3.6-3
> * liblua5.3-5.3.6-3
> * liblua-devel-5.3.6-3
> 
> * lua-5.3.6-3-src
> * lua-debuginfo-5.3.6-3
> 
> Lua is a powerful, light-weight programming language designed for extending
> applications. Lua is also frequently used as a general-purpose, stand-alone
> language.

Thanks for updating this.

This breaks building our 'lua-lfs' package, I think because that doesn't 
use pkgconfig, and assumes that /usr/include/lua.h exists:

> $ cygport lua-lfs.cygport all
>>>> Preparing lua-lfs-1.7.0.2-1.x86_64
>>>> Unpacking source luafilesystem-v1_7_0_2.tar.gz
> *** Info: applying patch 1.7.0.2-cygwin.patch (-p2):
> patching file Makefile
> patching file src/lfs.c
>>>> Preparing working source directory
>>>> Compiling lua-lfs-1.7.0.2-1.x86_64
> gcc -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fdebug-prefix-map=/wip/cygport-git/lua-lfs/lua-lfs-1.7.0.2-1.x86_64/build=/usr/src/debug/lua-lfs-1.7.0.2-1 -fdebug-prefix-map=/wip/cygport-git/lua-lfs/lua-lfs-1.7.0.2-1.x86_64/src/luafilesystem-1_7_0_2=/usr/src/debug/lua-lfs-1.7.0.2-1 -I/usr/local/include   -c -o src/lfs.o src/lfs.c
> src/lfs.c:66:10: fatal error: lua.h: No such file or directory
>    66 | #include <lua.h>
>       |          ^~~~~~~
> compilation terminated.
> make: *** [<builtin>: src/lfs.o] Error 1
> *** ERROR: make failed

I only noticed this because this is part of the cygport test suite :)


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [ANNOUNCEMENT] Updated: lua-5.3.6-3
  2021-06-04 13:16     ` Jon Turney
@ 2021-06-04 16:10       ` Lemures Lemniscati
  0 siblings, 0 replies; 19+ messages in thread
From: Lemures Lemniscati @ 2021-06-04 16:10 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]

On Fri, 4 Jun 2021 14:16:16 +0100, Jon Turney
> On 01/06/2021 15:41, Lemures Lemniscati via Cygwin-announce via Cygwin wrote:
> > The following packages have been uploaded to the Cygwin distribution:
> >
> > * lua-5.3.6-3
> > * liblua5.3-5.3.6-3
> > * liblua-devel-5.3.6-3
...
> This breaks building our 'lua-lfs' package, I think because that doesn't use pkgconfig, and assumes that /usr/include/lua.h exists:
> 
> > $ cygport lua-lfs.cygport all
> >>>> Preparing lua-lfs-1.7.0.2-1.x86_64
> >>>> Unpacking source luafilesystem-v1_7_0_2.tar.gz
> > *** Info: applying patch 1.7.0.2-cygwin.patch (-p2):
> > patching file Makefile
> > patching file src/lfs.c
> >>>> Preparing working source directory
> >>>> Compiling lua-lfs-1.7.0.2-1.x86_64
> > gcc -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fdebug-prefix-map=/wip/cygport-git/lua-lfs/lua-lfs-1.7.0.2-1.x86_64/build=/usr/src/debug/lua-lfs-1.7.0.2-1 -fdebug-prefix-map=/wip/cygport-git/lua-lfs/lua-lfs-1.7.0.2-1.x86_64/src/luafilesystem-1_7_0_2=/usr/src/debug/lua-lfs-1.7.0.2-1 -I/usr/local/include   -c -o src/lfs.o src/lfs.c
> > src/lfs.c:66:10: fatal error: lua.h: No such file or directory
> >    66 | #include <lua.h>
> >       |          ^~~~~~~
> > compilation terminated.
> > make: *** [<builtin>: src/lfs.o] Error 1
> > *** ERROR: make failed
> 
> I only noticed this because this is part of the cygport test suite :)

Thank you for the report.

I'll do ITA for lua-lfs with attached cygport files, later.

Current lua-lfs is 1.8.0: https://keplerproject.github.io/luafilesystem/

Regards,

Lem

[-- Attachment #2: lua-lfs.cygport --]
[-- Type: application/octet-stream, Size: 1887 bytes --]

inherit lua

NAME="lua-lfs"
VERSION=1.8.0
RELEASE=1
CATEGORY="Lua"
SUMMARY="Lua file system library"
DESCRIPTION="\
LuaFileSystem is a Lua library developed to complement the set of
functions related to file systems offered by the standard Lua
distribution.
"
HOMEPAGE="https://keplerproject.github.io/luafilesystem/"

GIT_REPO="https://github.com/keplerproject/luafilesystem"
declare -A GIT_DATEHASH_BY_NAME=(
  # git log --date=iso-strict --format='%cd/%H' -1
  [1.8.0]=2020-04-22T22:16:42-03:00/v1_8_0
)
REV_HASH="${GIT_DATEHASH_BY_NAME[${VERSION}]#*/}"
REV_DATE="${GIT_DATEHASH_BY_NAME[${VERSION}]%%/*}"
REV_DATE_SHORT="${REV_DATE%%T*}"
GIT_BASENAME="${GIT_REPO##*/}"
SRC_URI="${GIT_REPO}/archive/${REV_HASH}/${GIT_BASENAME}-${VERSION}.tar.gz"
SRC_DIR="${GIT_BASENAME}-${REV_HASH#v}"

LUA_PKG_NAME="lfs"

PATCH_URI+="
  1.8.0-Makefile.patch
  1.8.0-lfs_c.patch
"

BUILD_REQUIRES="\
  lua\
  liblua-devel\
"

src_compile() {
  mkdir -p ${B}/${LUA_VERSION}
  cd  ${B}/${LUA_VERSION}
  inform "[Compile] Lua ${LUA_VERSION}: ${LUA_PKG_NAME}"

  lndirs ${S} .
  cygmake \
    LUA_VERSION="${LUA_VERSION}" \
    WARN="${CFLAGS}" \
    INCS="-I${LUA_INCLUDEDIR}" \
    LIBS="${LUA_LIBS}" \
    ;
}

src_test() {
  cd ${B}/${LUA_VERSION}
  inform "[Test] Lua ${LUA_VERSION}: ${LUA_PKG_NAME}"
  lua${LUA_VERSION} -v

  local TEST_ROOT="./tests"
  local TEST_LUA_PATH="./src/?.lua"
  local TEST_LUA_CPATH="./src/?.so"
  local TEST_LUA_PKGS="-l${LUA_PKG_NAME}"

  local f
  find "${TEST_ROOT}" -maxdepth 1 -name "test*.lua" -print0 \
  | while read -r -d '' f; do
      printf "%s\n" "Testing $f"
      LUA_PATH="${TEST_LUA_PATH}" \
      LUA_CPATH="${TEST_LUA_CPATH}" \
      lua${LUA_VERSION} ${TEST_LUA_PKGS} "$f"
    done
}

src_install() {
  cd ${B}/${LUA_VERSION}
  inform "[Install] Lua ${LUA_VERSION}: ${LUA_PKG_NAME}"

  exeinto ${LUA_LIBDIR}
  doexe src/lfs.so
}

HTMLDOCS="doc/us/*"

[-- Attachment #3: 1.8.0-Makefile.patch --]
[-- Type: application/octet-stream, Size: 461 bytes --]

--- origsrc/luafilesystem-1_8_0/Makefile
+++ src/luafilesystem-1_8_0/Makefile
@@ -12,7 +12,7 @@
 lib: src/lfs.so
 
 src/lfs.so: $(OBJS)
-	MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET); export MACOSX_DEPLOYMENT_TARGET; $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
+	MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET); export MACOSX_DEPLOYMENT_TARGET; $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS) $(LIBS)
 
 test: lib
 	LUA_CPATH=./src/?.so lua tests/test.lua

[-- Attachment #4: 1.8.0-lfs_c.patch --]
[-- Type: application/octet-stream, Size: 512 bytes --]

--- origsrc/luafilesystem-1_8_0/src/lfs.c
+++ src/luafilesystem-1_8_0/src/lfs.c
@@ -163,9 +163,16 @@
 
 #else
 
+#if defined __CYGWIN__
+#include <io.h>
+#define _O_TEXT               O_TEXT
+#define _O_BINARY             O_BINARY
+#define lfs_setmode(file, m)   (_setmode(fileno(file), m))
+#else
 #define _O_TEXT               0
 #define _O_BINARY             0
 #define lfs_setmode(file, m)   ((void)file, (void)m, 0)
+#endif
 #define STAT_STRUCT struct stat
 #define STAT_FUNC stat
 #define LSTAT_FUNC lstat

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [ANNOUNCEMENT] Updated: lua-5.3.6-4
  2021-06-01 14:41   ` [ANNOUNCEMENT] " Lemures Lemniscati via Cygwin-announce
  2021-06-04 13:16     ` Jon Turney
@ 2021-06-05 22:26     ` Lemures Lemniscati via Cygwin-announce
  1 sibling, 0 replies; 19+ messages in thread
From: Lemures Lemniscati via Cygwin-announce @ 2021-06-05 22:26 UTC (permalink / raw)
  To: cygwin

The following packages have been uploaded to the Cygwin distribution:

* lua-5.3.6-4
* liblua5.3-5.3.6-4
* liblua-devel-5.3.6-4

* lua-5.3.6-4-src
* lua-debuginfo-5.3.6-4

Added workaround to postinstall/preremove scripts
in case CYGWIN=winsymlinks:nativestrict is specified.

--
Lua is a powerful, light-weight programming language designed for extending
applications. Lua is also frequently used as a general-purpose, stand-alone
language.

--

Cygwin Changes from lua-5.3.6-3

Added a workaround to postinstall/preremove scripts
in case CYGWIN=winsymlinks:nativestrict is specified.

In such cases, postinstall/preremove scripts temporarily override
CYGWIN with CYGWIN="${CYGWIN} winsymlinks:native" [1]. And comments
about it are printed, so that we can see them in 'setup.full.log'.

[1]: https://www.cygwin.com/git-cygwin-packages/?p=git/cygwin-packages/lua.git;a=blob;f=winsymlinks-nativestrict.sh;hb=cf9925fd2452d3422d092a5babeacf70fa1f76c6


Note: From lua-5.3.6-2, some files come with version number:
 e.g: lua5.3.exe, which is symlinked from lua by alternatives.

Lemures Lemniscati

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [ANNOUNCEMENT] Test: lua-5.4.3-3
  2021-06-01 14:46   ` [ANNOUNCEMENT] Test: lua-5.4.3-2 Lemures Lemniscati via Cygwin-announce
@ 2021-06-05 22:36     ` Lemures Lemniscati via Cygwin-announce
  2022-03-06 13:29     ` [ANNOUNCEMENT] Test: lua-5.4.4-1 Lemures Lemniscati via Cygwin-announce
  1 sibling, 0 replies; 19+ messages in thread
From: Lemures Lemniscati via Cygwin-announce @ 2021-06-05 22:36 UTC (permalink / raw)
  To: cygwin

The following packages have been uploaded to the Cygwin distribution:

* lua-5.4.3-3
* liblua5.3-5.4.3-3
* liblua-devel-5.4.3-3

* lua-5.4.3-3-src
* lua-debuginfo-5.4.3-3

Added workaround to postinstall/preremove scripts
in case CYGWIN=winsymlinks:nativestrict is specified.

--
Lua is a powerful, light-weight programming language designed for extending
applications. Lua is also frequently used as a general-purpose, stand-alone
language.

--

Cygwin Changes from lua-5.4.3-2

Added a workaround to postinstall/preremove scripts
in case CYGWIN=winsymlinks:nativestrict is specified.

In such cases, postinstall/preremove scripts temporarily override
CYGWIN with CYGWIN="${CYGWIN} winsymlinks:native" [1]. And comments
about it are printed, so that we can see them in 'setup.full.log'.

[1]: https://www.cygwin.com/git-cygwin-packages/?p=git/cygwin-packages/lua.git;a=blob;f=winsymlinks-nativestrict.sh;hb=969f89bfe6c2d39016c9e8f2692188de0e1c3461

Note: From lua-5.4.3-1, some files come with version number:
 e.g: lua5.4.exe, which is symlinked from lua by alternatives.

Note: Modules for Lua 5.4 is not prepared yet.
  This is just a TEST of the interpreter/compiler.

Lemures Lemniscati

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [ANNOUNCEMENT] Test: lua-5.4.4-1
  2021-06-01 14:46   ` [ANNOUNCEMENT] Test: lua-5.4.3-2 Lemures Lemniscati via Cygwin-announce
  2021-06-05 22:36     ` [ANNOUNCEMENT] Test: lua-5.4.3-3 Lemures Lemniscati via Cygwin-announce
@ 2022-03-06 13:29     ` Lemures Lemniscati via Cygwin-announce
  1 sibling, 0 replies; 19+ messages in thread
From: Lemures Lemniscati via Cygwin-announce @ 2022-03-06 13:29 UTC (permalink / raw)
  To: cygwin

The following packages have been uploaded to the Cygwin distribution:

* lua-5.4.4-1
* liblua5.4-5.4.4-1
* liblua-devel-5.4.4-1

* lua-5.4.4-1-src
* lua-debuginfo-5.4.4-1

--
Lua is a powerful, light-weight programming language designed for extending
applications. Lua is also frequently used as a general-purpose, stand-alone
language.

--
Note: From lua-5.4.3-1, some files come with version number:
  e.g: lua5.4.exe, which is symlinked from lua by alternatives.

Note: Modules for Lua 5.4 are not prepared yet.
  This is just a TEST of the interpreter/compiler.

Lemures Lemniscati

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-03-06 13:29 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-02  3:20 [ANNOUNCEMENT] lua 5.3.5-1 Yaakov Selkowitz
2021-05-19 22:27 ` [ANNOUNCEMENT] Updated: lua-5.3.6-2 Lemures Lemniscati via Cygwin-announce
2021-05-27  8:49   ` Fergus Daly
2021-05-27  9:52     ` Lemures Lemniscati
2021-05-30 21:38   ` Andrey Repin
2021-05-30 23:30     ` Lemures Lemniscati
2021-05-31  4:12       ` Lemures Lemniscati
2021-05-31  8:54         ` Andrey Repin
2021-05-31  9:26           ` Andrey Repin
2021-05-31 10:41             ` Lemures Lemniscati
2021-06-01 14:39   ` Updated: lua-5.3.6-3 Lemures Lemniscati
2021-06-01 14:41   ` [ANNOUNCEMENT] " Lemures Lemniscati via Cygwin-announce
2021-06-04 13:16     ` Jon Turney
2021-06-04 16:10       ` Lemures Lemniscati
2021-06-05 22:26     ` [ANNOUNCEMENT] Updated: lua-5.3.6-4 Lemures Lemniscati via Cygwin-announce
2021-05-19 22:47 ` [ANNOUNCEMENT] Test: lua-5.4.3-1 Lemures Lemniscati via Cygwin-announce
2021-06-01 14:46   ` [ANNOUNCEMENT] Test: lua-5.4.3-2 Lemures Lemniscati via Cygwin-announce
2021-06-05 22:36     ` [ANNOUNCEMENT] Test: lua-5.4.3-3 Lemures Lemniscati via Cygwin-announce
2022-03-06 13:29     ` [ANNOUNCEMENT] Test: lua-5.4.4-1 Lemures Lemniscati via Cygwin-announce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).