cross compilation: apache/mod_dnssd: less emulation

This commit is contained in:
Colin 2023-03-09 06:55:04 +00:00
parent 243d38333d
commit b2419da057

View File

@ -391,9 +391,9 @@ in
# '/usr/bin/perl' # '/usr/bin/perl'
# ''; # '';
# TODO: test this, alongside native mod_dnssd # TODO: test this, alongside native mod_dnssd
# postInstall = upstream.postInstall + '' postFixup = upstream.postFixup or "" + ''
# sed -i 's:/replace/with/path/to/perl/interpreter:${next.perl}/bin/perl:' $out/bin/apxs sed -i 's:/replace/with/path/to/perl/interpreter:${next.buildPackages.perl}/bin/perl:' $dev/bin/apxs
# ''; '';
}); });
# apacheHttpd_2_4 = (prev.apacheHttpd_2_4.override { # apacheHttpd_2_4 = (prev.apacheHttpd_2_4.override {
@ -419,16 +419,16 @@ in
prevHttpdPkgs = prev.apacheHttpdPackagesFor apacheHttpd self; prevHttpdPkgs = prev.apacheHttpdPackagesFor apacheHttpd self;
in prevHttpdPkgs // { in prevHttpdPkgs // {
# fixes "configure: error: *** Sorry, could not find apxs ***" # fixes "configure: error: *** Sorry, could not find apxs ***"
mod_dnssd = prevHttpdPkgs.mod_dnssd.override { # mod_dnssd = prevHttpdPkgs.mod_dnssd.override {
inherit (emulated) stdenv; # inherit (emulated) stdenv;
}; # };
# TODO: the below apxs doesn't have a valid shebang (#!/replace/with/...). # TODO: the below apxs doesn't have a valid shebang (#!/replace/with/...).
# we can't replace it at the origin? # we can't replace it at the origin?
# mod_dnssd = prevHttpdPkgs.mod_dnssd.overrideAttrs (upstream: { mod_dnssd = prevHttpdPkgs.mod_dnssd.overrideAttrs (upstream: {
# configureFlags = upstream.configureFlags ++ [ configureFlags = upstream.configureFlags ++ [
# "--with-apxs=${self.apacheHttpd}/bin/apxs" "--with-apxs=${self.apacheHttpd.dev}/bin"
# ]; ];
# }); });
}; };
# apacheHttpdPackagesFor = apacheHttpd: self: # apacheHttpdPackagesFor = apacheHttpd: self: