mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
Merge pull request #91457 from matthewbauer/prefixed-pkg-config
Fixes from prefixed pkg config
This commit is contained in:
commit
ae1584dc98
@ -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;
|
||||
|
||||
|
@ -23,6 +23,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0128n7jlshw4bpx0vg8lwj8qwdisjxi7mvniwfafgnkzzrfrpaap";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace configure \
|
||||
--replace pkg-config "$PKG_CONFIG"
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./no-mkdir-localstatedir.patch
|
||||
(fetchpatch {
|
||||
|
@ -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"
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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" ];
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user