Re: Wine MinGW system libraries

2022-04-16 Thread Zebediah Figura
Hello all, Since this conversation several months ago I've been working with the Wine maintainer on implementing a solution upstream that is compatible with our requirements and the pretty much universal desire by packagers to avoid system library imports. I believe I've found a solution that

Re: Wine MinGW system libraries

2021-09-13 Thread Adrian Bunk
On Mon, Sep 13, 2021 at 08:38:52PM +, Bastien ROUCARIES wrote: > Le lun. 13 sept. 2021 à 20:24, Adrian Bunk a écrit : > > On Mon, Sep 13, 2021 at 08:19:31PM +0200, Stephen Kitt wrote: >... > > > The regressions are significant though: if packages can’t stay > > > cross-satisfiable for Debian

Re: Wine MinGW system libraries

2021-09-13 Thread Bastien ROUCARIES
Le lun. 13 sept. 2021 à 20:24, Adrian Bunk a écrit : > > On Mon, Sep 13, 2021 at 08:19:31PM +0200, Stephen Kitt wrote: > >... > > For Wine (and even a wider MinGW-w64 > > ecosystem) we don’t need all that many source packages to be > > cross-satisfiable for the whole endeavour to be useful... > >

Re: Wine MinGW system libraries

2021-09-13 Thread Adrian Bunk
On Mon, Sep 13, 2021 at 08:19:31PM +0200, Stephen Kitt wrote: >... > For Wine (and even a wider MinGW-w64 > ecosystem) we don’t need all that many source packages to be > cross-satisfiable for the whole endeavour to be useful... But you would still need to create and maintain the whole

Re: Wine MinGW system libraries

2021-09-13 Thread Helmut Grohne
On Mon, Sep 13, 2021 at 08:19:31PM +0200, Stephen Kitt wrote: > Is the process documented anywhere? Or does one simply pick a failure from > http://crossqa.debian.net and figure out what’s going wrong (and hope that > pulling the threads doesn’t reveal a monster...)? That describes the process

Re: Wine MinGW system libraries

2021-09-13 Thread Stephen Kitt
On Sun, 12 Sep 2021 20:54:56 +0300, Adrian Bunk wrote: > On Sun, Sep 12, 2021 at 07:03:54PM +0200, Stephen Kitt wrote: > > On Sun, 12 Sep 2021 19:20:16 +0300, Adrian Bunk wrote: > > > On Sun, Sep 12, 2021 at 05:31:41PM +0200, Stephen Kitt wrote: > > > >... > > > > While one could imagine

Re: Wine MinGW system libraries

2021-09-13 Thread Stephen Kitt
On Mon, 13 Sep 2021 17:39:25 +0200, Helmut Grohne wrote: > I believe I can speak with my "main cross building porter" hat on. > > On Sun, Sep 12, 2021 at 01:57:44PM +, Bastien ROUCARIES wrote: > > They are a full color gradiant between: > > - freestanding arches pure cross compile without

Re: Wine MinGW system libraries

2021-09-13 Thread Helmut Grohne
I believe I can speak with my "main cross building porter" hat on. On Sun, Sep 12, 2021 at 01:57:44PM +, Bastien ROUCARIES wrote: > They are a full color gradiant between: > - freestanding arches pure cross compile without any depends except arch:all > - partial cross built arch > - partial

Re: Wine MinGW system libraries

2021-09-12 Thread Adrian Bunk
On Sun, Sep 12, 2021 at 07:03:54PM +0200, Stephen Kitt wrote: > On Sun, 12 Sep 2021 19:20:16 +0300, Adrian Bunk wrote: > > On Sun, Sep 12, 2021 at 05:31:41PM +0200, Stephen Kitt wrote: > > >... > > > While one could imagine adding support to all the appropriate > > > source packages to build

Re: Wine MinGW system libraries

2021-09-12 Thread Stephen Kitt
On Sun, 12 Sep 2021 19:20:16 +0300, Adrian Bunk wrote: > On Sun, Sep 12, 2021 at 05:31:41PM +0200, Stephen Kitt wrote: > >... > > While one could imagine adding support to all the appropriate > > source packages to build similar “Architecture: all” packages, that would > > require convincing all

Re: Wine MinGW system libraries

2021-09-12 Thread Adrian Bunk
On Sun, Sep 12, 2021 at 05:31:41PM +0200, Stephen Kitt wrote: >... > While one could imagine adding support to all the appropriate > source packages to build similar “Architecture: all” packages, that would > require convincing all the relevant maintainers, Adding a new release architecture

Re: Wine MinGW system libraries

2021-09-12 Thread Stephen Kitt
On Sun, 12 Sep 2021 10:38:52 +0300, Adrian Bunk wrote: > On Sun, Sep 05, 2021 at 08:53:49AM +0200, Bastien ROUCARIES wrote: > >... > > Improve dpkg to support partial arch. I volonteer to implement none arch > > but i am waiting from guillem here. > >... > > There is also plenty of

Re: Wine MinGW system libraries

2021-09-12 Thread Adrian Bunk
On Sun, Sep 12, 2021 at 02:57:20PM +, Bastien ROUCARIES wrote: > Le dim. 12 sept. 2021 à 14:16, Adrian Bunk a écrit : > > > > On Sun, Sep 12, 2021 at 01:57:44PM +, Bastien ROUCARIES wrote: > > > > > > I think you misunderstand: > > >

Re: Wine MinGW system libraries

2021-09-12 Thread Bastien ROUCARIES
Le dim. 12 sept. 2021 à 14:16, Adrian Bunk a écrit : > > On Sun, Sep 12, 2021 at 01:57:44PM +, Bastien ROUCARIES wrote: > > > > I think you misunderstand: > > https://wiki.debian.org/Teams/Dpkg/Spec/FreestandingArches > > > > They are a full color gradiant between: > > - freestanding arches

Re: Wine MinGW system libraries

2021-09-12 Thread Bastien ROUCARIES
Le sam. 11 sept. 2021 à 06:00, Paul Wise a écrit : > > Disclaimer: I know precisely zero of the details here nor > if the PE loader can support any of the below features. > > On Fri, 2021-09-10 at 09:23 +, Bastien ROUCARIES wrote: > > > The problem is that windows apps particularly games try

Re: Wine MinGW system libraries

2021-09-12 Thread Adrian Bunk
On Sun, Sep 12, 2021 at 01:57:44PM +, Bastien ROUCARIES wrote: > > I think you misunderstand: > https://wiki.debian.org/Teams/Dpkg/Spec/FreestandingArches > > They are a full color gradiant between: > - freestanding arches pure cross compile without any depends except arch:all > - partial

Re: Wine MinGW system libraries

2021-09-12 Thread Bastien ROUCARIES
Le dim. 12 sept. 2021 à 13:44, Adrian Bunk a écrit : > > On Sun, Sep 12, 2021 at 01:18:11PM +, Bastien ROUCARIES wrote: > > Le dim. 12 sept. 2021 à 07:38, Adrian Bunk a écrit : > > > > > > On Sun, Sep 05, 2021 at 08:53:49AM +0200, Bastien ROUCARIES wrote: > > > >... > > > > Improve dpkg to

Re: Wine MinGW system libraries

2021-09-12 Thread Adrian Bunk
On Sun, Sep 12, 2021 at 01:18:11PM +, Bastien ROUCARIES wrote: > Le dim. 12 sept. 2021 à 07:38, Adrian Bunk a écrit : > > > > On Sun, Sep 05, 2021 at 08:53:49AM +0200, Bastien ROUCARIES wrote: > > >... > > > Improve dpkg to support partial arch. I volonteer to implement none arch > > > but i

Re: Wine MinGW system libraries

2021-09-12 Thread Bastien ROUCARIES
Le dim. 12 sept. 2021 à 07:38, Adrian Bunk a écrit : > > On Sun, Sep 05, 2021 at 08:53:49AM +0200, Bastien ROUCARIES wrote: > >... > > Improve dpkg to support partial arch. I volonteer to implement none arch > > but i am waiting from guillem here. > >... > > There is also plenty of infrastructure

Re: Wine MinGW system libraries

2021-09-12 Thread Adrian Bunk
On Sun, Sep 05, 2021 at 08:53:49AM +0200, Bastien ROUCARIES wrote: >... > Improve dpkg to support partial arch. I volonteer to implement none arch > but i am waiting from guillem here. >... There is also plenty of infrastructure on the buildd, archive and release team sides that would likely

Re: Wine MinGW system libraries

2021-09-11 Thread Bastien ROUCARIES
Le sam. 11 sept. 2021 à 17:30, Adrian Bunk a écrit : > On Sat, Sep 04, 2021 at 08:17:53PM -0500, Zebediah Figura wrote: > > Hello all, > > > > I'm a contributor to the Wine project. To summarize the following mail, > Wine > > needs special versions of some of its normal dependencies, such as > >

Re: Wine MinGW system libraries

2021-09-11 Thread Adrian Bunk
On Sat, Sep 04, 2021 at 08:17:53PM -0500, Zebediah Figura wrote: > Hello all, > > I'm a contributor to the Wine project. To summarize the following mail, Wine > needs special versions of some of its normal dependencies, such as > libfreetype and libgnutls, built using the MinGW cross-compiler,

Re: Wine MinGW system libraries

2021-09-11 Thread Paul Wise
Disclaimer: I know precisely zero of the details here nor if the PE loader can support any of the below features. On Fri, 2021-09-10 at 09:23 +, Bastien ROUCARIES wrote: > The problem is that windows apps particularly games try to check if > mapped ram exec pages are from dll from disk and

Re: Wine MinGW system libraries

2021-09-10 Thread Bastien ROUCARIES
Le jeu. 9 sept. 2021 à 07:32, Paul Wise a écrit : > > On Thu, 2021-09-09 at 00:59 -0500, Zebediah Figura wrote: > > > Unfortunately, no. We have no way of knowing the caller. > > Can the PE loading mechanism do something like inject a fake dlopen > function available only in the Wine namespace

Re: Wine MinGW system libraries

2021-09-09 Thread Paul Wise
On Thu, 2021-09-09 at 00:59 -0500, Zebediah Figura wrote: > Unfortunately, no. We have no way of knowing the caller. Can the PE loading mechanism do something like inject a fake dlopen function available only in the Wine namespace that just passes the Wine namespace to the dlmopen function? Or

Re: Wine MinGW system libraries

2021-09-09 Thread Zebediah Figura
On 9/9/21 12:45 AM, Paul Wise wrote: On Thu, 2021-09-09 at 00:39 -0500, Zebediah Figura wrote: Right, but we don't have any guarantee that library A will load library B in its constructor routines. In fact, if it's loading library B dynamically, it's probably not doing that. Can the loader

Re: Wine MinGW system libraries

2021-09-08 Thread Paul Wise
On Thu, 2021-09-09 at 00:39 -0500, Zebediah Figura wrote: > Right, but we don't have any guarantee that library A will load library > B in its constructor routines. In fact, if it's loading library B > dynamically, it's probably not doing that. Can the loader tell which library asked it to

Re: Wine MinGW system libraries

2021-09-08 Thread Zebediah Figura
On 9/9/21 12:15 AM, Paul Wise wrote: On Wed, 2021-09-08 at 23:47 -0500, Zebediah Figura wrote: Unfortunately, while thinking about the answer to this question, I realized another snag, which I think really does make using identically-named dynamic libraries impossible: if system library A

Re: Wine MinGW system libraries

2021-09-08 Thread Paul Wise
On Wed, 2021-09-08 at 23:47 -0500, Zebediah Figura wrote: > Unfortunately, while thinking about the answer to this question, I > realized another snag, which I think really does make using > identically-named dynamic libraries impossible: if system library A > loads system library B

Re: Wine MinGW system libraries

2021-09-08 Thread Zebediah Figura
On 9/8/21 8:12 PM, Paul Wise wrote: On 9/8/21 3:13 AM, Simon McVittie wrote: As far as I understand it, the PE loader used for Wine is part of Wine, so it has total control over the libraries that it loads and how it loads them. This means that if Wine developers (the experts on this codebase)

Re: Wine MinGW system libraries

2021-09-08 Thread Paul Wise
On 9/8/21 3:13 AM, Simon McVittie wrote: > As far as I understand it, the PE loader used for Wine is part of Wine, > so it has total control over the libraries that it loads and how it loads > them. This means that if Wine developers (the experts on this codebase) > have decided a libcapsule-like

Re: Wine MinGW system libraries

2021-09-08 Thread Zebediah Figura
On 9/8/21 3:13 AM, Simon McVittie wrote: On Wed, 08 Sep 2021 at 07:31:59 +, Bastien ROUCARIES wrote: Simon, do you think you could implement a version of libcapasule for PE object ? Given that libcapsule is very glibc- and ELF-specific, doesn't work properly without new glibc feature work

Re: Wine MinGW system libraries

2021-09-08 Thread Simon McVittie
On Wed, 08 Sep 2021 at 07:31:59 +, Bastien ROUCARIES wrote: > Simon, do you think you could implement a version of libcapasule for PE > object ? Given that libcapsule is very glibc- and ELF-specific, doesn't work properly without new glibc feature work that isn't in Debian yet (I've lost

Re: Wine MinGW system libraries

2021-09-08 Thread Bastien ROUCARIES
Hi, Adding smcv to the thread. Le mar. 7 sept. 2021 à 23:25, Bastien ROUCARIES a écrit : > > Le mar. 7 sept. 2021 à 21:16, Zebediah Figura > a écrit : > > > > On 9/7/21 12:05 PM, Bastien ROUCARIES wrote: > > > I disagree. > > > > > > Le mar. 7 sept. 2021 à 17:48, Zebediah Figura a > > > écrit

Re: Wine MinGW system libraries

2021-09-07 Thread Bastien ROUCARIES
Le mar. 7 sept. 2021 à 21:16, Zebediah Figura a écrit : > > On 9/7/21 12:05 PM, Bastien ROUCARIES wrote: > > I disagree. > > > > Le mar. 7 sept. 2021 à 17:48, Zebediah Figura a > > écrit : > > > >> On 9/7/21 5:16 AM, Bastien Roucariès wrote: > >>> Le mardi 7 septembre 2021, 00:44:31 UTC Paul

Re: Wine MinGW system libraries

2021-09-07 Thread Bastien ROUCARIES
Le mar. 7 sept. 2021 à 23:01, Paul Wise a écrit : > > On Tue, 2021-09-07 at 10:48 -0500, Zebediah Figura wrote: > > > The outstanding problem seems to be more about potentially breaking > > applications because they see two identically named DLLs loaded in the > > same process. Applications can

Re: Wine MinGW system libraries

2021-09-07 Thread Paul Wise
On Tue, 2021-09-07 at 10:48 -0500, Zebediah Figura wrote: > The outstanding problem seems to be more about potentially breaking > applications because they see two identically named DLLs loaded in the > same process. Applications can and do trawl the internal loader state, > although the Win32

Re: Wine MinGW system libraries

2021-09-07 Thread Zebediah Figura
On 9/7/21 12:05 PM, Bastien ROUCARIES wrote: I disagree. Le mar. 7 sept. 2021 à 17:48, Zebediah Figura a écrit : On 9/7/21 5:16 AM, Bastien Roucariès wrote: Le mardi 7 septembre 2021, 00:44:31 UTC Paul Wise a écrit : On Mon, Sep 6, 2021 at 9:54 PM Zebediah Figura wrote: The basic problem

Re: Wine MinGW system libraries

2021-09-07 Thread Bastien ROUCARIES
Le mar. 7 sept. 2021 à 19:05, Bastien ROUCARIES a écrit : > I disagree. > > Le mar. 7 sept. 2021 à 17:48, Zebediah Figura a > écrit : > >> On 9/7/21 5:16 AM, Bastien Roucariès wrote: >> > Le mardi 7 septembre 2021, 00:44:31 UTC Paul Wise a écrit : >> >> On Mon, Sep 6, 2021 at 9:54 PM Zebediah

Re: Wine MinGW system libraries

2021-09-07 Thread Bastien ROUCARIES
I disagree. Le mar. 7 sept. 2021 à 17:48, Zebediah Figura a écrit : > On 9/7/21 5:16 AM, Bastien Roucariès wrote: > > Le mardi 7 septembre 2021, 00:44:31 UTC Paul Wise a écrit : > >> On Mon, Sep 6, 2021 at 9:54 PM Zebediah Figura wrote: > >>> The basic problem is that applications can and often

Re: Wine MinGW system libraries

2021-09-07 Thread Zebediah Figura
On 9/7/21 5:16 AM, Bastien Roucariès wrote: Le mardi 7 septembre 2021, 00:44:31 UTC Paul Wise a écrit : On Mon, Sep 6, 2021 at 9:54 PM Zebediah Figura wrote: The basic problem is that applications can and often do ship with PE builds of cross-platform libraries. These libraries can be ahead of

Re: Wine MinGW system libraries

2021-09-07 Thread Bastien Roucariès
Le mardi 7 septembre 2021, 00:44:31 UTC Paul Wise a écrit : > On Mon, Sep 6, 2021 at 9:54 PM Zebediah Figura wrote: > > The basic problem is that applications can and often do ship with PE > > builds of cross-platform libraries. These libraries can be ahead of > > Wine's system libraries, behind

Re: Wine MinGW system libraries

2021-09-06 Thread Paul Wise
On Mon, Sep 6, 2021 at 9:54 PM Zebediah Figura wrote: > The basic problem is that applications can and often do ship with PE > builds of cross-platform libraries. These libraries can be ahead of > Wine's system libraries, behind them, or even built with custom patches. > Accordingly we really

Re: Wine MinGW system libraries

2021-09-06 Thread Zebediah Figura
On 9/6/21 1:34 PM, Bastien ROUCARIES wrote: Le lun. 6 sept. 2021 à 18:36, Zebediah Figura a écrit : On 9/6/21 1:57 AM, Stephen Kitt wrote: On Sun, 5 Sep 2021 12:14:47 -0500, Zebediah Figura < zfig...@codeweavers.com> wrote: On 9/5/21 11:19 AM, Stephen Kitt wrote: On Sat, 4 Sep 2021

Re: Wine MinGW system libraries

2021-09-06 Thread Bastien ROUCARIES
Le lun. 6 sept. 2021 à 18:36, Zebediah Figura a écrit : > On 9/6/21 1:57 AM, Stephen Kitt wrote: > > On Sun, 5 Sep 2021 12:14:47 -0500, Zebediah Figura < > zfig...@codeweavers.com> > > wrote: > >> On 9/5/21 11:19 AM, Stephen Kitt wrote: > >>> On Sat, 4 Sep 2021 20:17:53 -0500, Zebediah Figura >

Re: Wine MinGW system libraries

2021-09-06 Thread Zebediah Figura
On 9/6/21 1:57 AM, Stephen Kitt wrote: On Sun, 5 Sep 2021 12:14:47 -0500, Zebediah Figura wrote: On 9/5/21 11:19 AM, Stephen Kitt wrote: On Sat, 4 Sep 2021 20:17:53 -0500, Zebediah Figura wrote: I'm a contributor to the Wine project. To summarize the following mail, Wine needs special

Re: Wine MinGW system libraries

2021-09-06 Thread Bastien ROUCARIES
Le lun. 6 sept. 2021 à 06:57, Stephen Kitt a écrit : > > On Sun, 5 Sep 2021 12:14:47 -0500, Zebediah Figura > wrote: > > On 9/5/21 11:19 AM, Stephen Kitt wrote: > > > On Sat, 4 Sep 2021 20:17:53 -0500, Zebediah Figura > > > wrote: > > >> I'm a contributor to the Wine project. To summarize the

Re: Wine MinGW system libraries

2021-09-06 Thread Stephen Kitt
On Sun, 5 Sep 2021 12:14:47 -0500, Zebediah Figura wrote: > On 9/5/21 11:19 AM, Stephen Kitt wrote: > > On Sat, 4 Sep 2021 20:17:53 -0500, Zebediah Figura > > wrote: > >> I'm a contributor to the Wine project. To summarize the following mail, > >> Wine needs special versions of some of its

Re: Wine MinGW system libraries

2021-09-05 Thread Zebediah Figura
On 9/5/21 11:19 AM, Stephen Kitt wrote: Hi Zebediah, On Sat, 4 Sep 2021 20:17:53 -0500, Zebediah Figura wrote: I'm a contributor to the Wine project. To summarize the following mail, Wine needs special versions of some of its normal dependencies, such as libfreetype and libgnutls, built using

Re: Wine MinGW system libraries

2021-09-05 Thread Stephen Kitt
Hi Bastien, On Sun, 5 Sep 2021 08:53:49 +0200, Bastien ROUCARIES wrote: > Le dim. 5 sept. 2021 à 03:34, Zebediah Figura a > écrit : > > I'm a contributor to the Wine project. To summarize the following mail, > > Wine needs special versions of some of its normal dependencies, such as > >

Re: Wine MinGW system libraries

2021-09-05 Thread Stephen Kitt
Hi Zebediah, On Sat, 4 Sep 2021 20:17:53 -0500, Zebediah Figura wrote: > I'm a contributor to the Wine project. To summarize the following mail, > Wine needs special versions of some of its normal dependencies, such as > libfreetype and libgnutls, built using the MinGW cross-compiler, and I'm

Re: Wine MinGW system libraries

2021-09-05 Thread Bastien ROUCARIES
Le dim. 5 sept. 2021 à 03:34, Zebediah Figura a écrit : > Hello all, > > I'm a contributor to the Wine project. To summarize the following mail, > Wine needs special versions of some of its normal dependencies, such as > libfreetype and libgnutls, built using the MinGW cross-compiler, and I'm >

Wine MinGW system libraries

2021-09-04 Thread Zebediah Figura
Hello all, I'm a contributor to the Wine project. To summarize the following mail, Wine needs special versions of some of its normal dependencies, such as libfreetype and libgnutls, built using the MinGW cross-compiler, and I'm sending out a mail to major distributions in order to get some