PATH:
usr
/
share
#! /usr/bin/perl # # Sets up /usr/bin/*-pkg-config symlinks to point to the cross wrapper. # # It is called from dpkg --post-invoke and from postinst with the "update" # argument to instate the necessary symlinks. # # It is called from prerm with the "remove" argument to remove all symlinks. # use strict; use warnings; use Dpkg::Arch qw(debarch_to_gnutriplet); use Dpkg::ErrorHandling qw(error warning); my $crosswrapper = "/usr/share/pkg-config-crosswrapper"; my $action = $ARGV[0]; error("parameter must be 'remove' or 'update'") unless defined $action && ($action eq "remove" || $action eq "update"); my $arch = `dpkg --print-architecture`; error('dpkg --print-architecture failed') if $? >> 8; my @architectures = `dpkg --print-foreign-architectures`; error('dpkg --print-foreign-architectures failed') if $? >> 8; push @architectures, $arch; chomp @architectures; my %gnutriplets; foreach my $arch (@architectures) { my $triplet = debarch_to_gnutriplet($arch); if (not defined($triplet)) { warning("Architecture $arch not defined in architecture tables, ignored"); next; } $gnutriplets{$triplet} = 1; } my %symlinks = map { $_ => 1 } </usr/bin/*-pkg-config>; foreach my $symlink (keys %symlinks) { $symlink =~ m,^/usr/bin/([^-]+-[^-]+-[^-]+)-pkg-config, or next; next if exists $gnutriplets{$1} && $action eq "update"; next unless -l $symlink; next unless readlink $symlink eq $crosswrapper; unlink $symlink or error("failed to remove symlink $symlink: $!"); } if ($action eq 'update') { foreach (keys %gnutriplets) { my $linktarget = "/usr/bin/${_}-pkg-config"; next if exists $symlinks{$linktarget}; next if -e $linktarget; symlink $crosswrapper, $linktarget or error("failed to create symlink $linktarget to $crosswrapper: $!"); } }
[+]
dotnet
[+]
git-core
[+]
gitweb
[+]
javascript
[+]
language-selector
[+]
perl
[+]
unattended-upgrades
[+]
glib-2.0
[+]
openssh
[+]
.mono
[+]
polkit-1
[+]
fwupd
[+]
libdbi-perl
[+]
ModemManager
[+]
apt-file
[+]
keyrings
[+]
libtool
[+]
language-support
[+]
mono
[+]
GraphicsMagick-1.3.35
[+]
mecab
[+]
color
[+]
dbus-1
[+]
common-licenses
[+]
rsyslog
[+]
licenses
[+]
pam
[+]
emacs
[+]
netfilter-persistent
[+]
debianutils
[+]
gettext
[+]
nghttp2
[+]
publicsuffix
[+]
misc
[+]
sounds
[+]
perl5
[+]
file
[+]
devhelp
[+]
zoneinfo
[+]
java
[+]
lua
[+]
perl-openssl-defaults
[+]
systemd
[+]
python3
[+]
lua5.3
[+]
base-files
[+]
ufw
[+]
debhelper
[+]
autoconf
[+]
ghostscript
[-] pkg-config-crosswrapper
[edit]
[+]
fish
[+]
build-essential
[+]
nginx
[+]
rsync
[+]
libc-bin
[+]
mono-2.0
[+]
gettext-0.19.8
[+]
zabbix-agent
[+]
man
[+]
thumbnailers
[+]
awk
[+]
snapd
[+]
defaults
[+]
secureboot
[+]
grub-gfxpayload-lists
[+]
apps
[+]
gcc
[+]
icons
[+]
pixmaps
[+]
consoletrans
[+]
xml
[+]
alt-common-release
[+]
fonts-droid-fallback
[+]
adduser
[+]
gnupg
[+]
debconf
[+]
mysqlsh
[+]
python-apt
[+]
keyutils
[+]
bug
[+]
zsh
[+]
calendar
[+]
alsa
[+]
cryptsetup
[+]
netplan
[+]
fonts
[+]
ubuntu-release-upgrader
[+]
os-prober
[+]
aspell
[+]
themes
[+]
sensible-utils
[+]
finalrd
[+]
base-passwd
[+]
dpkg
[+]
aclocal-1.16
[+]
GConf
[+]
landscape
[+]
initramfs-tools
[+]
doc-base
[+]
emacsen-common
[+]
libthai
[+]
locales
[+]
package-data-downloads
[+]
icu
[+]
applications
[+]
dictionaries-common
[+]
freetds
[+]
ca-certificates
[+]
hal
[+]
vim
[+]
console-setup
[+]
python
[+]
sgml
[+]
..
[+]
firebird3.0-common
[+]
libdrm
[+]
locale
[+]
gdb
[+]
gtk-doc
[+]
terminfo
[+]
readline
[+]
binfmts
[+]
byobu
[+]
apport
[+]
menu
[+]
iso-codes
[+]
needrestart
[+]
nfs-common
[+]
info
[+]
pam-configs
[-] av-userside-plugin.sh
[edit]
[+]
popularity-contest
[+]
language-tools
[+]
tabset
[+]
poppler
[+]
update-notifier
[+]
mc
[+]
i18n
[+]
X11
[+]
plymouth
[+]
consolefonts
[+]
groff
[+]
man-db
[+]
iptables
[+]
imunify360
[+]
lintian
[+]
mime
[+]
snmp
[+]
smartmontools
[+]
automake-1.16
[+]
doc
[+]
bash-completion
[+]
dns
[+]
enchant-2
[+]
ssl-cert
[+]
dict
[-] pkg-config-dpkghook
[edit]
[+]
mysql-8.0
[+]
usb_modeswitch
[+]
distro-info
[+]
PackageKit
[+]
nano
[+]
metainfo
[+]
aclocal
[+]
zoneinfo-icu
[+]
pyshared
[+]
python-wheels
[+]
mdadm
[+]
dovecot
[+]
hunspell
[+]
pastebin.d
[+]
quota
[+]
open-vm-tools
[+]
locale-langpack
[+]
imunify-notifier
[+]
screen
[+]
cmake
[+]
pkgconfig
[+]
grub
[+]
apache2
[+]
fontconfig
[+]
cli-common