Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
7e87e0be
Commit
7e87e0be
authored
May 05, 2018
by
Ed Reel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crew to resolve not a valid libtool archive issue
parent
0f9525d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
crew
crew
+21
-10
No files found.
crew
View file @
7e87e0be
...
@@ -435,7 +435,18 @@ end
...
@@ -435,7 +435,18 @@ end
def
build_and_preconfigure
(
target_dir
)
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..."
#
Rename
*.
la
files
temporily
to
*.
la_tmp
to
avoid
#
libtool
:
link
:
'*.la'
is
not
a
valid
libtool
archive
.
#
See
https
://
gnunet
.
org
/
faq
-
la
-
files
and
#
https
://
stackoverflow
.
com
/
questions
/
42963653
/
libquadmath
-
la
-
is
-
not
-
a
-
valid
-
libtool
-
archive
-
when
-
configuring
-
openmpi
-
with
-
g
puts
"Rename all *.la files to *.la_tmp"
.
lightblue
if
@
opt_verbose
then
system
"find #{CREW_LIB_PREFIX} -type f -name *.la -print0 | xargs --null -I{} mv {} {}_tmp"
else
system
"find #{CREW_LIB_PREFIX} -type f -name *.la -print0 | xargs --null -I{} mv {} {}_tmp"
end
@
pkg
.
in_build
=
true
@
pkg
.
in_build
=
true
@
pkg
.
preinstall
@
pkg
.
preinstall
@
pkg
.
patch
@
pkg
.
patch
...
@@ -449,6 +460,15 @@ def build_and_preconfigure (target_dir)
...
@@ -449,6 +460,15 @@ def build_and_preconfigure (target_dir)
end
end
puts
"Preconfiguring package..."
puts
"Preconfiguring package..."
@
pkg
.
install
@
pkg
.
install
#
Rename
all
*.
la_tmp
back
to
*.
la
to
avoid
#
cannot
access
'*.la'
:
No
such
file
or
directory
puts
"Rename all *.la_tmp files back to *.la"
.
lightblue
if
@
opt_verbose
then
system
"find #{CREW_LIB_PREFIX} -type f -name '*.la_tmp' -exec sh -c 'mv
\"
$1
\"
\"
${1%.la_tmp}.la
\"
' _ {}
\\
;"
else
system
"find #{CREW_LIB_PREFIX} -type f -name '*.la_tmp' -exec sh -c 'mv
\"
$1
\"
\"
${1%.la_tmp}.la
\"
' _ {}
\\
;"
end
end
end
end
end
...
@@ -481,15 +501,6 @@ def prepare_package (destdir)
...
@@ -481,15 +501,6 @@ 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
"find #{destdir}#{CREW_LIB_PREFIX} -type f -name *.la -delete"
else
system
"find #{destdir}#{CREW_LIB_PREFIX} -type f -name *.la -delete"
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment