delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/05/09:53:38

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2C8F385DC3B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1586094713;
bh=pB0QGPcEHPQIRxgSv77ieTc5Ls3t+S6v8jCOvU1QRUk=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=wMk/yWmJH5HEf53OKBUxn7iksU+B9b7DB4TFwu9TzDvBi5RXuvp38SsZzDdWZT5YM
of11Wo8NBDLF57plLYhsb0CqfIkj60vcF0S1EaCm+o7xiMTCW/w9uceCgcMSQyXIR7
I5YYWrjcoOJHK2c4x5ocJ6U0SGd+HmJJDZVKVm8A=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4EF92385DC1C
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=dVruTws2R/71sfk839rJu26zw4h1bB4WOfMF5BotyRI=;
b=ZDlhXD0pnc2jsnNm2itZgIFT4ruwTuDk/mTfYkpz8RljMItXHs5XgKRX9pa1/2kz8O
ezEz5suxPf7xnFovHIsK8U+oJaUqniOdS99V9/GV0kcf4v5kNYyyn0PNEjMVtyy57WSD
08b2BW093yUCbG8+wcoz1oDZaBnJJ2DBUhWPZmfUfXJOsL6CbmNX24KZu7Sad5CKaPUP
oYSayADIuWMDlpySMHnAYfW2I/l0v5XkKYV5Q0Iuc2PWcGX35LyUhgjPfu9UO8OfpU+4
QgYRNdL6nFrkhWVG5NFMgPdyuc6SlShmYdzklr4f/5kHO2B0najU7TpDGoPiK0dmWtwc
xSzw==
X-Gm-Message-State: AGi0PuZWQzLRd8lJCZ/dtPXU8eyaBb8MJYGiD4gsereV2V+7wumJqO7y
aqPm5nOAMbt+QRQtu6XU/SiOQW9lmYvnPD9VbchKYfiN
X-Google-Smtp-Source: APiQypLkW91N4g5E17gfxFyCDDrrF/wdz6UeNj+FvYS2RrH8lU6uD1kCIWrYr3BsKiQOXmopXu0Diqgr4QcUvreAtc0=
X-Received: by 2002:a6b:fd08:: with SMTP id c8mr16029106ioi.102.1586094709588;
Sun, 05 Apr 2020 06:51:49 -0700 (PDT)
MIME-Version: 1.0
References: <CADt9575vSTf9aS2opTotUhnsYRkuure145TYkTkBFzw6pTtzhA AT mail DOT gmail DOT com>
<9f22993d-13d1-de2e-74ff-e9d08ec504ed AT dronecode DOT org DOT uk>
<CADt9576AyQPB+CZ2ZbvOUaV9siV7UZDxhw9hRkzYbadHVuwUWw AT mail DOT gmail DOT com>
In-Reply-To: <CADt9576AyQPB+CZ2ZbvOUaV9siV7UZDxhw9hRkzYbadHVuwUWw@mail.gmail.com>
Date: Sun, 5 Apr 2020 15:51:38 +0200
Message-ID: <CADt9577VUAbaywvRUHqOjVyo4t=n+Sm__7Y3o9_LcrU7PRLVoA@mail.gmail.com>
Subject: Re: Mingw pkg-config not working
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "Carlo B. via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Carlo B." <carlo DOT bramini AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Hello,
I wanted to report that I received a reply on the issue that I had opened here:

https://todo.sr.ht/~kaniini/pkgconf/10#comment-7894

The report has been closed and I got this reply:

"You should use a symlink instead of a wrapper script when using the
personality feature."

I hope that somebody has understood what he means (posix is not
exactly my primary platform) and it could be useful for fixing the
issue.

Thank you very much for your time.
Sincerely,

Carlo Bramini.

Il giorno gio 26 mar 2020 alle ore 14:07 Carlo B.
<carlo DOT bramini AT gmail DOT com> ha scritto:
>
> Hello,
> I implemented the solution to this problem as a patch to
> pkgconf.cygport as requested.
> I attached small patch to this email, which resolved the troubles with
> CMake and Meson.
> I hope that you will find it useful and  some developers will gently
> apply the correction to fix the issue.
>
> Thank you very much for your time and your support.
> Sincerely,
>
> Carlo Bramini.
>
> Il giorno sab 22 feb 2020 alle ore 18:47 Jon Turney
> <jon DOT turney AT dronecode DOT org DOT uk> ha scritto:
> >
> > On 20/02/2020 11:06, Carlo B. wrote:
> > [...]
> > > x86_64-w64-mingw32-pkg-config are emulated with a shell script, for
> > > example the one for i686 is:
> > >
> > > #!/bin/sh
> > > exec pkgconf --personality=i686-w64-mingw32 $@
> > >
> > > But while this solution mostly works when you exec it from the command
> > > line, it makes impossible to detect the presence of the tool from
> > > meson and cmake build systems.
> > > If you try to do this on the bash prompt, you get:
> > >
> > > $ i686-w64-mingw32-pkg-config --version
> > > pkgconf: --version specified with other options or module names,
> > > assuming --modversion.
> > > Please specify at least one package name on the command line.
> > >
> > > and this is exactly what happens with those build systems (and perhaps
> > > others, I don't know): it tries to call pkg-config with "--version"
> > > and it executes the above script that calls pkgconf. But sadly, the
> > > presence of the "--personality" option makes the process to fail,
> > > because the "--version" is currently allowed only when no other
> > > options are added.
> > > And, for this reason, meson and cmake fail the detection of the tool.
> > >
> > > I have also filed an issue here for pkgconf:
> > > https://todo.sr.ht/~kaniini/pkgconf/10
> > > because the solution is actually to ignore the presence of the
> > > "--personality" option when the "--version" is written, but
> > > unfortunately I have not received any feedback.
> > >
> > > So, I'm also writing here, with the hope that you could find a solution.
> > [...]
> >
> > Thanks for reporting this issue.
> >
> > I guess the alternative to fixing pkgconf would be to modify those
> > wrapper scripts to detect when the parameters are just '--version' (or
> > equivalent) and not use --personality in that case?
> >
> > These wrapper scripts are specific to cygwin (generated by the cygport,
> > see [1])
> >
> > It's possible other distros have more sophisticated wrapper scripts,
> > which avoid this problem?
> >
> > If you do write or discover some improved wrapper scripts, a patch to
> > [1] to update them would be appreciated.
> >
> > [1]
> > https://cygwin.com/git-cygwin-packages/?p=git/cygwin-packages/pkgconf.git;a=blob;f=pkgconf.cygport#l84
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019