Util-Linux package development
 help / color / mirror / Atom feed
From: Ruediger Meier <sweet_f_a@gmx.de>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: [ANNOUNCE] util-linux v2.29-rc2
Date: Mon, 12 Dec 2016 15:31:57 +0100	[thread overview]
Message-ID: <201612121531.57375.sweet_f_a@gmx.de> (raw)
In-Reply-To: <20161212102929.5kx3hbgoh4a5tfte@ws.net.home>

On Monday 12 December 2016, Karel Zak wrote:
> On Sat, Dec 10, 2016 at 12:15:10PM -0500, Mike Frysinger wrote:
> > On 20 Oct 2016 17:19, Karel Zak wrote:
> > > On Thu, Oct 20, 2016 at 01:34:24PM +0200, Ruediger Meier wrote:
> > > > For me it looks like the even the ncurses authors do not like
> > > > their own pc files. Disabled by default and it's a pain to get
> > > > them built with correct names and installed in the right
> > > > location. Even --prefix does not work for their pc files. Plus
> > > > the backward compatibility problem ...
> > >
> > > OK, I have applied:
> > >   
> > > https://github.com/karelzak/util-linux/commit/e5cc93b5a8854fce805
> > >37f86a244977df212dcb5
> > >
> > > with ncurses-config and fallback to old good AC_CHECK_LIB.
> > >
> > > We can add fallback to pkg-config too, but it sounds like
> > > overkill if ncurses-config is everywhere.
> >
> > ugh, this change makes things worse.  the point of using pkg-config
> > is also to get sane cross-compiling.  by always running
> > `xxx-config`, it now breaks cross-compiling.
>
> Does it mean that you have system (build root) where is no
> ncurses-config{5,6}, but you have pkg-config only?

Usually cross-compiled libs to be used by a cross compiler are installed 
in a prefix like

 /usr/i686-w64-mingw32/sys-root/mingw/

So you would probaby have such an ncurses5-config (which is not in 
PATH):

  /usr/i686-w64-mingw32/sys-root/mingw/bin/ncurses5-config

Simply adding this bin dir to PATH wouldn't be a good idea because it 
may contain binaries build for another target.

The "advantage" of pkg-config is 
that "configure --host=i686-w64-mingw32" is smart and tries to use a 
host-prefixed "i686-w64-mingw32-pkg-config" instead of 
just "pkg-config". The prefixed pkg-config is searching .pc files in 
the right sysroot. Though the smartness ends if you have 
PKG_CONFIG_PATH in your env ... 


> The argument for ncurses-config has been that it seems it's preferred
> solution by ncurses upstream.
>
> It will be simple to extend UL_NCURSES_CHECK() function to support
> also pkg-config.
>
> > why can't we just tell distros to fix their ncurses install ?  it's
> > not like 2.29, released a month ago, is getting rolled out to old
> > distros where people can't update their ncurses systems.
>
> Well, it's pretty common that people recompile any package on the
> current system. I think our goal is to support as much as possible
> scenarios (yes, nothing is unlimited including my patience with
> obscure installations ;-)

> > "it's hard" is a pretty weak argument for distro maintainers.
>
> That's true.
>
>     Karel

  reply	other threads:[~2016-12-12 14:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-19 13:25 [ANNOUNCE] util-linux v2.29-rc2 Karel Zak
2016-10-20  6:03 ` Ruediger Meier
2016-10-20  9:17   ` Karel Zak
2016-10-20 10:25     ` Ruediger Meier
2016-10-20 11:00       ` Karel Zak
2016-10-20 11:34         ` Ruediger Meier
2016-10-20 15:19           ` Karel Zak
2016-10-20 16:28             ` Ruediger Meier
2016-10-20 16:40               ` Karel Zak
2016-10-20 17:08                 ` Ruediger Meier
2016-10-21 14:44                   ` Karel Zak
2016-10-21 15:03                     ` Ruediger Meier
2016-10-20 19:20             ` Ruediger Meier
2016-12-10 17:15             ` Mike Frysinger
2016-12-12 10:29               ` Karel Zak
2016-12-12 14:31                 ` Ruediger Meier [this message]
2016-12-12 14:01               ` Ruediger Meier
2016-12-12 14:28                 ` Karel Zak
2016-12-12 18:27                   ` Mike Frysinger
2016-12-13 11:44                     ` Karel Zak
2016-12-12 17:52                 ` Mike Frysinger
2016-10-20 17:11 ` Ruediger Meier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201612121531.57375.sweet_f_a@gmx.de \
    --to=sweet_f_a@gmx.de \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox