[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'make uninstall' deletes unrelated *.pc files
From: |
Jeffrey Walton |
Subject: |
'make uninstall' deletes unrelated *.pc files |
Date: |
Sun, 4 Feb 2018 16:21:52 -0500 |
I'm seeing some unusual behavior when building Ncurses 6.0 from
sources on Fedora 27. In this configuration Ncurses is configured for
/usr/local, but 'make uninstall' is deleting *.pc files from
/usr/lib64/pkgconfig.
For example, the unistall recipe deleted Boehm garbage collector files
in /usr/lib64/pkgconfig even though Ncurses was configured for
installation at /usr/local/lib64. Also see
https://bugzilla.redhat.com/show_bug.cgi?id=1541705 .
Does anyone know why unrelated PC files are being deleted?
******************************
$ ls /usr/lib64/pkgconfig/
bdw-gc.pc formw.pc menuw.pc ncurses++w.pc ncursesw.pc panelw.pc tinfow.pc
$ bash test.sh
--2018-02-04 16:18:01-- https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz
...
** Configuration summary for NCURSES 6.0 20150808:
extended funcs: yes
xterm terminfo: xterm-new
bin directory: /usr/local/bin
lib directory: /usr/local/lib64
include directory: /usr/local/include/ncursesw
man directory: /usr/local/share/man
terminfo directory: /usr/local/share/terminfo
pkg-config directory: /lib64/pkgconfig
** Include-directory is not in a standard location
And then:
$ sudo make uninstall
...
# Totally empty, including the Boehm garbage collector.
$ ls /usr/lib64/pkgconfig/
$
******************************
$ cat test.sh
#!/usr/bin/env bash
wget --no-check-certificate
https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz
gzip -d < ncurses-6.0.tar.gz | tar xf -
cd ncurses-6.0
INSTX_PREFIX="/usr/local"
INSTX_LIBDIR="/usr/local/lib64"
BUILD_PKGCONFIG=("/usr/local/lib64/pkgconfig")
BUILD_CPPFLAGS=("-I/usr/local/include -DNDEBUG")
BUILD_CFLAGS=("-g" "-m64" "-march=native" "-fPIC")
BUILD_CXXFLAGS=("-g" "-m64" "-march=native" "-fPIC")
BUILD_LDFLAGS=("-L/usr/local/lib64" "-m64" "-Wl,-R,/usr/local/lib64"
"-Wl,--enable-new-dtags")
BUILD_LDLIBS=("-ldl" "-lpthread")
PKG_CONFIG_PATH="${BUILD_PKGCONFIG[*]}" \
CPPFLAGS="${BUILD_CPPFLAGS[*]}" \
CFLAGS="${BUILD_CFLAGS[*]}" \
CXXFLAGS="${BUILD_CXXFLAGS[*]}" \
LDFLAGS="${BUILD_LDFLAGS[*]}" \
LIBS="${BUILD_LIBS[*]}" \
./configure --prefix="$INSTX_PREFIX" --libdir="$INSTX_LIBDIR" \
--with-shared --with-cxx-shared --without-ada --enable-pc-files \
--with-termlib --enable-widec --disable-root-environ \
--with-build-cc="$CC" --with-build-cxx="$CXX" \
--with-build-cpp="${BUILD_CPPFLAGS[*]}" \
--with-build-cflags="${BUILD_CPPFLAGS[*]} ${BUILD_CFLAGS[*]}" \
--with-build-cxxflags="${BUILD_CPPFLAGS[*]} ${BUILD_CXXFLAGS[*]}" \
--with-build-ldflags="${BUILD_LDFLAGS[*]}" \
--with-build-libs="${BUILD_LIBS[*]}"
- 'make uninstall' deletes unrelated *.pc files,
Jeffrey Walton <=