Merge pull request #91457 from matthewbauer/prefixed-pkg-config

Fixes from prefixed pkg config
This commit is contained in:
Frederik Rietdijk 2020-07-02 17:26:16 +02:00 committed by GitHub
commit ae1584dc98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 27 additions and 8 deletions

View File

@ -42,9 +42,14 @@ stdenv.mkDerivation rec {
substituteInPlace include/SDL_opengl_glext.h \
--replace "typedef ptrdiff_t GLsizeiptr;" "typedef signed long int khronos_ssize_t; typedef khronos_ssize_t GLsizeiptr;" \
--replace "typedef ptrdiff_t GLintptr;" "typedef signed long int khronos_intptr_t; typedef khronos_intptr_t GLintptr;"
substituteInPlace configure \
--replace 'WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`' 'WAYLAND_SCANNER=`pkg-config --variable=wayland_scanner wayland-scanner`'
'';
nativeBuildInputs = [ pkgconfig ];
depsBuildBuild = [ pkgconfig ];
nativeBuildInputs = [ pkgconfig wayland ];
propagatedBuildInputs = dlopenPropagatedBuildInputs;

View File

@ -23,6 +23,11 @@ stdenv.mkDerivation rec {
sha256 = "0128n7jlshw4bpx0vg8lwj8qwdisjxi7mvniwfafgnkzzrfrpaap";
};
prePatch = ''
substituteInPlace configure \
--replace pkg-config "$PKG_CONFIG"
'';
patches = [
./no-mkdir-localstatedir.patch
(fetchpatch {

View File

@ -23,7 +23,8 @@ stdenv.mkDerivation rec {
"STRIP="
"prefix=$(out)"
"moduledir=$(out)/lib/modules"
] ++ stdenv.lib.optionals stdenv.isDarwin [ "CC=cc" ];
"CC=${stdenv.cc.targetPrefix}cc"
];
configureFlags = [
"--enable-overlays"

View File

@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ perl ];
buildInputs = stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
buildInputs = [ perl.out ] ++ stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
postPatch = "patchShebangs strace-graph";
postPatch = "patchShebangs --host strace-graph";
configureFlags = stdenv.lib.optional (!stdenv.hostPlatform.isx86) "--enable-mpers=check";

View File

@ -43,9 +43,6 @@ stdenv.mkDerivation rec {
libXdmcp libXext libXxf86vm mesa udev
wayland libxkbcommon ];
# we use prefix-less pkg-config
PKG_CONF_PATH = "pkg-config";
enableParallelBuilding = true;
configureFlags = stdenv.lib.optionals stdenv.isLinux [ "--enable-kms" "--enable-egl" ];

View File

@ -31,7 +31,9 @@ stdenv.mkDerivation rec {
postPatch = ''
patchShebangs utils/
substituteInPlace Makefile --replace ldconfig true
substituteInPlace Makefile \
--replace ldconfig true \
--replace pkg-config $PKG_CONFIG
sed -i crda.c \
-e "/\/usr\/.*\/regulatory.bin/d" \
-e "s|/lib/crda|${wireless-regdb}/lib/crda|g"

View File

@ -61,6 +61,11 @@ stdenv.mkDerivation rec {
++ lib.optional zeroconfSupport avahi
);
prePatch = ''
substituteInPlace bootstrap.sh \
--replace pkg-config $PKG_CONFIG
'';
autoreconfPhase = ''
# Performs an autoreconf
patchShebangs bootstrap.sh

View File

@ -13822,6 +13822,10 @@ let
sha256 = "19nf4xn9xhyd0sd2az9iliqldjj0k6ah2dmkyqyvq4rp2d9k5jgb";
});
postPatch = ''
substituteInPlace Makefile.PL --replace pkg-config $PKG_CONFIG
'';
meta = {
homepage = "http://www.freedesktop.org/wiki/Software/dbus";
description = "Extension for the DBus bindings";