Skip to content
Snippets Groups Projects
Commit ffbfc331 authored by Simon McVittie's avatar Simon McVittie
Browse files

runtimes: Stop converting hard-links to symlinks


Now that populate-depot.py in steam-runtime-tools handles hard links
better (steam-runtime-tools!697), we no longer need this.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent f07a59a8
No related branches found
Tags v0.20240415.0
No related merge requests found
......@@ -44,16 +44,6 @@ post_script: |
test -e /usr/lib/locale/locale-archive
fi
# Convert hard link to symlink, saving around 4M
for python in python3.4 python3.5; do
if cmp "/usr/bin/${python}m" "/usr/bin/${python}" \
&& ! [ -L "/usr/bin/${python}m" ] \
&& ! [ -L "/usr/bin/${python}" ] \
; then
ln -fnsv "${python}" "/usr/bin/${python}m"
fi
done
test -d /usr/lib/gconv
test -d /usr/lib/locale
test -d /usr/share/i18n
......
......@@ -41,33 +41,6 @@ post_script: |
test -e /usr/lib/locale/locale-archive
fi
# Convert hard links to symlinks, saving a huge amount of space when
# deployed as an unpacked directory. swrast_dri.so is one of several
# Gallium drivers (internally libgallium_dri.so) that are often
# hard-links to each other, and i915_dri.so is one of several
# non-Gallium drivers (internally libmesa_dri_drivers.so).
for dri in /usr/lib/*/dri/*_dri.so; do
for ref in "${dri%/*}/swrast_dri.so" "${dri%/*}/i915_dri.so"; do
if [ "$dri" != "$ref" ] \
&& ! [ -L "$dri" ] \
&& ! [ -L "$ref" ] \
&& cmp "$dri" "$ref" \
; then
ln -fns "${ref##*/}" "$dri"
fi
done
done
# Convert hard link to symlink, saving around 3M
for perl in /usr/bin/perl5.*; do
if cmp "$perl" /usr/bin/perl \
&& ! [ -L /usr/bin/perl ] \
&& ! [ -L "$perl" ] \
; then
ln -fnsv perl "$perl"
fi
done
test -d /usr/lib/gconv
test -d /usr/lib/locale
test -d /usr/share/i18n
......
......@@ -51,16 +51,6 @@ post_script: |
test -e /usr/lib/locale/locale-archive
fi
# Convert hard link to symlink, saving around 4M
for python in python3.5; do
if cmp "/usr/bin/${python}m" "/usr/bin/${python}" \
&& ! [ -L "/usr/bin/${python}m" ] \
&& ! [ -L "/usr/bin/${python}" ] \
; then
ln -fnsv "${python}" "/usr/bin/${python}m"
fi
done
test -d /usr/lib/gconv
test -d /usr/lib/locale
test -d /usr/share/i18n
......
......@@ -41,33 +41,6 @@ post_script: |
test -e /usr/lib/locale/locale-archive
fi
# Convert hard links to symlinks, saving a huge amount of space when
# deployed as an unpacked directory. swrast_dri.so is one of several
# Gallium drivers (internally libgallium_dri.so) that are often
# hard-links to each other, and i915_dri.so is one of several
# non-Gallium drivers (internally libmesa_dri_drivers.so).
for dri in /usr/lib/*/dri/*_dri.so; do
for ref in "${dri%/*}/swrast_dri.so" "${dri%/*}/i915_dri.so"; do
if [ "$dri" != "$ref" ] \
&& ! [ -L "$dri" ] \
&& ! [ -L "$ref" ] \
&& cmp "$dri" "$ref" \
; then
ln -fns "${ref##*/}" "$dri"
fi
done
done
# Convert hard link to symlink, saving around 3M
for perl in /usr/bin/perl5.*; do
if cmp "$perl" /usr/bin/perl \
&& ! [ -L /usr/bin/perl ] \
&& ! [ -L "$perl" ] \
; then
ln -fnsv perl "$perl"
fi
done
test -d /usr/lib/gconv
test -d /usr/lib/locale
test -d /usr/share/i18n
......
......@@ -41,43 +41,6 @@ post_script: |
test -e /usr/lib/locale/locale-archive
fi
# Convert hard links to symlinks, saving a huge amount of space when
# deployed as an unpacked directory. swrast_dri.so is one of several
# Gallium drivers (internally libgallium_dri.so) that are often
# hard-links to each other, and i915_dri.so is one of several
# non-Gallium drivers (internally libmesa_dri_drivers.so).
for dri in /usr/lib/*/dri/*_dri.so; do
for ref in "${dri%/*}/swrast_dri.so" "${dri%/*}/i915_dri.so"; do
if [ "$dri" != "$ref" ] \
&& ! [ -L "$dri" ] \
&& ! [ -L "$ref" ] \
&& cmp "$dri" "$ref" \
; then
ln -fns "${ref##*/}" "$dri"
fi
done
done
# Convert hard link to symlink, saving around 4M
for python in python3.7; do
if cmp "/usr/bin/${python}m" "/usr/bin/${python}" \
&& ! [ -L "/usr/bin/${python}m" ] \
&& ! [ -L "/usr/bin/${python}" ] \
; then
ln -fnsv "${python}" "/usr/bin/${python}m"
fi
done
# Convert hard link to symlink, saving around 3M
for perl in /usr/bin/perl5.*; do
if cmp "$perl" /usr/bin/perl \
&& ! [ -L /usr/bin/perl ] \
&& ! [ -L "$perl" ] \
; then
ln -fnsv perl "$perl"
fi
done
test -d /usr/lib/gconv
test -d /usr/lib/locale
test -d /usr/share/i18n
......
......@@ -22,33 +22,6 @@ post_script: |
test -e /usr/lib/locale/locale-archive
fi
# Convert hard links to symlinks, saving a huge amount of space when
# deployed as an unpacked directory. swrast_dri.so is one of several
# Gallium drivers (internally libgallium_dri.so) that are often
# hard-links to each other, and i915_dri.so is one of several
# non-Gallium drivers (internally libmesa_dri_drivers.so).
for dri in /usr/lib/*/dri/*_dri.so; do
for ref in "${dri%/*}/swrast_dri.so" "${dri%/*}/i915_dri.so"; do
if [ "$dri" != "$ref" ] \
&& ! [ -L "$dri" ] \
&& ! [ -L "$ref" ] \
&& cmp "$dri" "$ref" \
; then
ln -fns "${ref##*/}" "$dri"
fi
done
done
# Convert hard link to symlink, saving around 3M
for perl in /usr/bin/perl5.*; do
if cmp "$perl" /usr/bin/perl \
&& ! [ -L /usr/bin/perl ] \
&& ! [ -L "$perl" ] \
; then
ln -fnsv perl "$perl"
fi
done
test -d /usr/lib/gconv
test -d /usr/lib/locale
test -d /usr/share/i18n
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment