Disable symlinks usage in shrink_archive function (#6291)

* Disable symlinks usage in shrink_archive function

* bump version
This commit is contained in:
Satadru Pramanik
2021-10-11 17:33:15 -04:00
committed by GitHub
parent 11b4ee2ddd
commit a3f9a819a4
2 changed files with 2 additions and 6 deletions

View File

@@ -965,7 +965,7 @@ def prepare_package(destdir)
strip_dir destdir
# make hard linked files symlinks and use upx on executables
# use upx on executables
shrink_dir destdir
end
end
@@ -1002,10 +1002,6 @@ def shrink_dir(dir)
puts "Using rdfind to find duplicate or hard linked files."
system "#{CREW_PREFIX}/bin/rdfind -removeidentinode true -makesymlinks true -makeresultsfile false ."
end
if File.exist?("#{CREW_PREFIX}/bin/symlinks")
puts "Using symlinks tool to make absolute symlinks relative"
system 'symlinks -cr .' if File.exist?("#{CREW_PREFIX}/bin/symlinks")
end
# Issues with non-x86_64 in compressing libraries, so just compress
# non-libraries. Also note that one needs to use "upx -d" on a
# compressed file to use ldd.

View File

@@ -1,6 +1,6 @@
# Defines common constants used in different parts of crew
CREW_VERSION = '1.16.9'
CREW_VERSION = '1.17.0'
ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines