Skip to content

Commit dd7a499

Browse files
sspans-sbptianon
andauthored
Update Dockerfile-linux.template
Co-authored-by: Tianon Gravi <[email protected]>
1 parent 4408430 commit dd7a499

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile-linux.template

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ end
281281
apt-mark auto '.*' > /dev/null; \
282282
apt-mark manual $savedAptMark; \
283283
find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' \
284-
| awk '/=>/ { print $(NF-1) }' \
285-
| sort -u \
286-
| awk '{ print $1; system("realpath " $1) }' \
284+
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \
287285
| sort -u \
288286
| xargs -r dpkg-query --search \
289287
| cut -d: -f1 \

0 commit comments

Comments
 (0)