Merge pull request #96538 from Mic92/go-references

buildGoModule/buildGoPackage: Remove go references from lib,libexec
This commit is contained in:
Linus Heckemann 2020-08-30 16:44:08 +02:00 committed by GitHub
commit bba8571c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 3 additions and 15 deletions

View File

@ -180,7 +180,7 @@ rec {
'';
preFixup = ''
find $out -type f -exec remove-references-to -t ${go} -t ${stdenv.cc.cc} '{}' +
find $out -type f -exec remove-references-to -t ${stdenv.cc.cc} '{}' +
'' + optionalString (stdenv.isLinux) ''
find $out -type f -exec remove-references-to -t ${stdenv.glibc.dev} '{}' +
'';

View File

@ -67,10 +67,6 @@ buildGoPackage rec {
runHook postInstall
'';
postFixup = ''
find $out/libexec/ -type f -executable -exec remove-references-to -t ${go} '{}' + || true
'';
meta = with stdenv.lib; {
homepage = "http://www.sylabs.io/";
description = "Application containers for linux";

View File

@ -108,7 +108,6 @@ buildGoPackage rec {
installPhase = ''
make install PREFIX="$out" SYSTEMD_LIB_DIR="$out/lib" -C go/src/${goPackagePath}
mv $out/share/gocode $out/share/go
remove-references-to -t ${go} $out/lib/deepin-api/*
'';
postFixup = ''

View File

@ -134,7 +134,6 @@ buildGoPackage rec {
installPhase = ''
make install PREFIX="$out" -C go/src/${goPackagePath}
remove-references-to -t ${go} $out/lib/deepin-daemon/*
searchHardCodedPaths $out
'';

View File

@ -139,7 +139,6 @@ buildGoPackage rec {
installPhase = ''
make install PREFIX="$out" -C go/src/${goPackagePath}
rm -rf $out/share/lightdm # this is uselesss for NixOS
remove-references-to -t ${go} $out/sbin/*
'';
postFixup = ''

View File

@ -235,7 +235,7 @@ let
'';
preFixup = (args.preFixup or "") + ''
find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
find $out/{bin,libexec,lib} -type f 2>/dev/null | xargs -r ${removeExpr removeReferences} || true
'';
strictDeps = true;

View File

@ -211,8 +211,7 @@ let
'';
preFixup = preFixup + ''
find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
find $out/libexec -type f -exec ${removeExpr removeReferences} '{}' + || true
find $out/{bin,libexec,lib} -type f 2>/dev/null | xargs -r ${removeExpr removeReferences} || true
'';
strictDeps = true;

View File

@ -34,10 +34,6 @@ buildGoModule rec {
make install
'';
preFixup = ''
remove-references-to -t ${fscrypt-experimental.go} $out/lib/security/pam_fscrypt.so
'';
meta = with stdenv.lib; {
description =
"A high-level tool for the management of Linux filesystem encryption";