Commit d7be84bd authored by Chris Thurber's avatar Chris Thurber Committed by GitHub

Merge pull request #2264 from uberhacker/remove-la-files-from-metadata

Move *.la file removal to prepare_package function
parents cb2e9476 e959b9c3
...@@ -436,16 +436,6 @@ def build_and_preconfigure (target_dir) ...@@ -436,16 +436,6 @@ def build_and_preconfigure (target_dir)
Dir.chdir target_dir do Dir.chdir target_dir do
puts "Building from source, this may take a while..." puts "Building from source, this may take a while..."
# Remove /usr/local/lib64/*.la to resolve any "can not find /usr/local/*.la" compile errors when building the packages (only needed for x86_64).
# https://gnunet.org/faq-la-files
# https://stackoverflow.com/questions/42963653/libquadmath-la-is-not-a-valid-libtool-archive-when-configuring-openmpi-with-g
# Since pkgconfig is recompiled, the *.la problem appear also for i686 and armv7l. Remove any .la files to resolve it.
if @opt_verbose then
system "rm -rvf #{CREW_LIB_PREFIX}/*.la"
else
system "rm -rf #{CREW_LIB_PREFIX}/*.la"
end
@pkg.in_build = true @pkg.in_build = true
@pkg.preinstall @pkg.preinstall
@pkg.patch @pkg.patch
...@@ -491,6 +481,15 @@ def prepare_package (destdir) ...@@ -491,6 +481,15 @@ def prepare_package (destdir)
compress_doc "#{destdir}#{CREW_PREFIX}/share/man" compress_doc "#{destdir}#{CREW_PREFIX}/share/man"
compress_doc "#{destdir}#{CREW_PREFIX}/share/info" compress_doc "#{destdir}#{CREW_PREFIX}/share/info"
# Remove /usr/local/lib(64)/*.la to resolve any "can not find /usr/local/lib(64)/*.la" compile errors when building the packages.
# https://gnunet.org/faq-la-files
# https://stackoverflow.com/questions/42963653/libquadmath-la-is-not-a-valid-libtool-archive-when-configuring-openmpi-with-g
if @opt_verbose then
system "rm -rvf #{destdir}#{CREW_LIB_PREFIX}/*.la"
else
system "rm -rf #{destdir}#{CREW_LIB_PREFIX}/*.la"
end
# create directory list # create directory list
system "find . -type f > ../filelist" system "find . -type f > ../filelist"
system "find . -type l >> ../filelist" system "find . -type l >> ../filelist"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment