canon-cups-ufr2: Remove 32-bit x86 libraries
Canon's official RPM packages don't include 32-bit libraries anymore, so I don't think they are needed in any way. Even if they were still useful in some way, they are not packaged correctly anymore.
This commit is contained in:
parent
b78630ad3b
commit
ec2fff31a8
1 changed files with 1 additions and 37 deletions
|
@ -21,7 +21,6 @@
|
||||||
, libredirect
|
, libredirect
|
||||||
, ghostscript
|
, ghostscript
|
||||||
, pkgs
|
, pkgs
|
||||||
, pkgsi686Linux
|
|
||||||
, zlib
|
, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -30,7 +29,6 @@ let
|
||||||
if stdenv.targetPlatform.system == "x86_64-linux" then "intel"
|
if stdenv.targetPlatform.system == "x86_64-linux" then "intel"
|
||||||
else if stdenv.targetPlatform.system == "aarch64-linux" then "arm"
|
else if stdenv.targetPlatform.system == "aarch64-linux" then "arm"
|
||||||
else throw "Unsupported platform for Canon UFR2 Drivers: ${stdenv.targetPlatform.system}";
|
else throw "Unsupported platform for Canon UFR2 Drivers: ${stdenv.targetPlatform.system}";
|
||||||
i686_NIX_GCC = pkgsi686Linux.callPackage ({ gcc }: gcc) { };
|
|
||||||
ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
|
ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
|
||||||
libs = pkgs: lib.makeLibraryPath buildInputs;
|
libs = pkgs: lib.makeLibraryPath buildInputs;
|
||||||
|
|
||||||
|
@ -98,23 +96,7 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $out/share/cups/model
|
mkdir -p $out/share/cups/model
|
||||||
install -m 644 ppd/*.ppd $out/share/cups/model/
|
install -m 644 ppd/*.ppd $out/share/cups/model/
|
||||||
)
|
)
|
||||||
'' + lib.optionalString (system == "intel") ''
|
|
||||||
(
|
|
||||||
cd lib
|
|
||||||
mkdir -p $out/lib32
|
|
||||||
install -m 755 libs32/intel/libColorGearCufr2.so.2.0.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libcaepcmufr2.so.1.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libcaiocnpkbidir.so.1.0.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libcaiousb.so.1.0.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libcaiowrapufr2.so.1.0.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libcanon_slimufr2.so.1.0.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libcanonufr2r.so.1.0.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libcnaccm.so.1.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libcnlbcmr.so.1.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libcnncapcmr.so.1.0 $out/lib32
|
|
||||||
install -m 755 libs32/intel/libufr2filterr.so.1.0.0 $out/lib32
|
|
||||||
)
|
|
||||||
'' + ''
|
|
||||||
(
|
(
|
||||||
cd lib
|
cd lib
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
|
@ -143,24 +125,6 @@ stdenv.mkDerivation rec {
|
||||||
install -m 644 libs64/${system}/ThLB* $out/share/ufr2filter
|
install -m 644 libs64/${system}/ThLB* $out/share/ufr2filter
|
||||||
)
|
)
|
||||||
|
|
||||||
'' + lib.optionalString (system == "intel") ''
|
|
||||||
(
|
|
||||||
cd $out/lib32
|
|
||||||
ln -sf libcaepcmufr2.so.1.0 libcaepcmufr2.so
|
|
||||||
ln -sf libcaepcmufr2.so.1.0 libcaepcmufr2.so.1
|
|
||||||
ln -sf libcaiowrapufr2.so.1.0.0 libcaiowrapufr2.so
|
|
||||||
ln -sf libcaiowrapufr2.so.1.0.0 libcaiowrapufr2.so.1
|
|
||||||
ln -sf libcanon_slimufr2.so.1.0.0 libcanon_slimufr2.so
|
|
||||||
ln -sf libcanon_slimufr2.so.1.0.0 libcanon_slimufr2.so.1
|
|
||||||
ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so
|
|
||||||
ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so.1
|
|
||||||
|
|
||||||
patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.stdenv.cc.libc}/lib:${pkgsi686Linux.libxml2.out}/lib:$out/lib32" libcanonufr2r.so.1.0.0
|
|
||||||
patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.stdenv.cc.libc}/lib" libcaepcmufr2.so.1.0
|
|
||||||
patchelf --set-rpath "$(cat ${i686_NIX_GCC}/nix-support/orig-cc)/lib:${libs pkgsi686Linux}:${pkgsi686Linux.stdenv.cc.libc}/lib" libColorGearCufr2.so.2.0.0
|
|
||||||
)
|
|
||||||
'' + ''
|
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $out/lib
|
cd $out/lib
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue