bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interaction of ncurses configure --prefix and --with-pc-suffix


From: Thomas Dickey
Subject: Re: interaction of ncurses configure --prefix and --with-pc-suffix
Date: Sun, 22 Oct 2023 19:27:54 -0400

On Sun, Oct 22, 2023 at 02:09:33PM -0500, G. Branden Robinson wrote:
> Hi Thomas,
> 
> I attempted to configure ncurses as follows.
> 
> ./configure \
>       --prefix=$HOME/ncurses-HEAD \
>       --with-shared \
>       --with-cxx-shared \
>       --with-hashed-db \
>       --with-manpage-format=normal \
>       --enable-pc-files \
>       --with-pkg-config \
>       --with-pc-suffix=GBRSUFFIX \
>       --enable-widec \
>       --enable-opaque-curses \
>       --enable-opaque-form \
>       --enable-opaque-menu \
>       --enable-opaque-panel
> 
> I ran into a problem using `--with-pc-suffix=GBRSUFFIX` (you may guess
> that I was merely testing things out).  When I later ran "make install",
> the Makefile attempted to install not to $DESTDIR, but to the root
> directory.
> 
> /usr/bin/install -c ncurses-config 
> /home/branden/ncurses-HEAD/bin/ncursesw6-config
> installing ncurseswGBRSUFFIX.pc
> /usr/bin/install: cannot create regular file 
> '/usr/lib/x86_64-linux-gnu/pkgconfig/ncurseswGBRSUFFIX.pc': Permission denied
> installing ncurseswGBRSUFFIX.pc
> /usr/bin/install: cannot create regular file 
> '/usr/lib/x86_64-linux-gnu/pkgconfig/ncurseswGBRSUFFIX.pc': Permission denied
> 
> (Also, I'm not sure why the installation was attempted twice.)
> 
> For completeness, here are the other error messages, but I don't expect
> them to shed much further light.
> 
> installing panelwGBRSUFFIX.pc
> /usr/bin/install: cannot create regular file 
> '/usr/lib/x86_64-linux-gnu/pkgconfig/panelwGBRSUFFIX.pc': Permission denied

hmm - I'll see if I can reproduce this.  I do a couple of different
types of test-builds, with one that does use the --prefix value

something like

        BUILD=`pwd`/build

and

        --prefix=$BUILD

(and haven't had problems with it).  The other is "real", e.g.,
for packages.

> installing menuwGBRSUFFIX.pc
> /usr/bin/install: cannot create regular file 
> '/usr/lib/x86_64-linux-gnu/pkgconfig/menuwGBRSUFFIX.pc': Permission denied
> installing formwGBRSUFFIX.pc
> /usr/bin/install: cannot create regular file 
> '/usr/lib/x86_64-linux-gnu/pkgconfig/formwGBRSUFFIX.pc': Permission denied
> installing ncurses++wGBRSUFFIX.pc
> /usr/bin/install: cannot create regular file 
> '/usr/lib/x86_64-linux-gnu/pkgconfig/ncurses++wGBRSUFFIX.pc': Permission 
> denied
> make[1]: *** [Makefile:150: install] Error 1
> 
> Is this a bug?  It kind of feels like one to me.
> 
> Regards,
> Branden



-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]