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
3c9ac14b
Commit
3c9ac14b
authored
Jun 25, 2017
by
lyxell
Committed by
GitHub
Jun 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #802 from jam7/refactor/crew-strip
Change crew to strip binaries and libraries at install time
parents
e556df31
6a3a93dc
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
37 additions
and
112 deletions
+37
-112
crew
crew
+13
-0
lib/package.rb
lib/package.rb
+0
-2
packages/bison.rb
packages/bison.rb
+1
-2
packages/bz2.rb
packages/bz2.rb
+0
-5
packages/curl.rb
packages/curl.rb
+1
-4
packages/diffutils.rb
packages/diffutils.rb
+1
-1
packages/dos2unix.rb
packages/dos2unix.rb
+0
-1
packages/ed.rb
packages/ed.rb
+1
-1
packages/expat.rb
packages/expat.rb
+0
-4
packages/expect.rb
packages/expect.rb
+0
-2
packages/filecmd.rb
packages/filecmd.rb
+1
-2
packages/flex.rb
packages/flex.rb
+1
-2
packages/gawk.rb
packages/gawk.rb
+1
-2
packages/gdbm.rb
packages/gdbm.rb
+1
-2
packages/gettext.rb
packages/gettext.rb
+1
-2
packages/git.rb
packages/git.rb
+0
-1
packages/less.rb
packages/less.rb
+1
-1
packages/libffi.rb
packages/libffi.rb
+1
-2
packages/libpipeline.rb
packages/libpipeline.rb
+1
-2
packages/libssh2.rb
packages/libssh2.rb
+0
-3
packages/libunbound.rb
packages/libunbound.rb
+0
-2
packages/libxml2.rb
packages/libxml2.rb
+1
-4
packages/lzip.rb
packages/lzip.rb
+1
-1
packages/m4.rb
packages/m4.rb
+1
-1
packages/make.rb
packages/make.rb
+1
-1
packages/mandb.rb
packages/mandb.rb
+1
-2
packages/ncurses.rb
packages/ncurses.rb
+0
-12
packages/ncursesw.rb
packages/ncursesw.rb
+0
-3
packages/openssl.rb
packages/openssl.rb
+0
-3
packages/patch.rb
packages/patch.rb
+1
-1
packages/pcre.rb
packages/pcre.rb
+1
-2
packages/perl.rb
packages/perl.rb
+1
-2
packages/pkgconfig.rb
packages/pkgconfig.rb
+1
-1
packages/python27.rb
packages/python27.rb
+0
-9
packages/python3.rb
packages/python3.rb
+0
-13
packages/r.rb
packages/r.rb
+1
-1
packages/readline.rb
packages/readline.rb
+0
-1
packages/ruby.rb
packages/ruby.rb
+0
-2
packages/sqlite.rb
packages/sqlite.rb
+1
-2
packages/vim.rb
packages/vim.rb
+0
-1
packages/xzutils.rb
packages/xzutils.rb
+1
-4
packages/zlibpkg.rb
packages/zlibpkg.rb
+0
-3
No files found.
crew
View file @
3c9ac14b
...
...
@@ -27,6 +27,9 @@ else
CREW_NPROC
=
ENV
[
"CREW_NPROC"
]
end
#
Set
CREW_NOT_STRIP
from
environment
variable
CREW_NOT_STRIP
=
ENV
[
"CREW_NOT_STRIP"
]
#
Set
XZ_OPT
environment
variable
for
build
command
.
#
If
CREW_XZ_OPT
is
defined
,
use
it
by
default
.
Use
`-
7
e
`,
otherwise
.
if
ENV
[
"CREW_XZ_OPT"
].
to_s
==
''
...
...
@@ -435,6 +438,16 @@ def install_package (pkgdir)
FileUtils
.
mv
'dlist'
,
CREW_CONFIG_PATH
+
"meta/#{@pkg.name}.directorylist"
FileUtils
.
mv
'filelist'
,
CREW_CONFIG_PATH
+
"meta/#{@pkg.name}.filelist"
#
Strip
libraries
with
-
S
system
"find . -name 'lib*.a' -print | xargs chmod u+w 2>/dev/null"
unless
CREW_NOT_STRIP
system
"find . -name 'lib*.a' -print | xargs strip -S 2>/dev/null"
unless
CREW_NOT_STRIP
system
"find . -name 'lib*.so*' -print | xargs chmod u+w 2>/dev/null"
unless
CREW_NOT_STRIP
system
"find . -name 'lib*.so*' -print | xargs strip -S 2>/dev/null"
unless
CREW_NOT_STRIP
#
Strip
binaries
system
"find . -type f -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d' | xargs chmod u+w 2>/dev/null"
unless
CREW_NOT_STRIP
system
"find . -type f -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d' | xargs strip 2>/dev/null"
unless
CREW_NOT_STRIP
system
"tar cf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)"
end
end
...
...
lib/package.rb
View file @
3c9ac14b
...
...
@@ -9,8 +9,6 @@ class Package
attr_accessor
:in_upgrade
end
@@debug_symbol
=
ENV
[
'CREW_DEBUG_SYMBOL'
]
||
false
def
self
.
dependencies
# We need instance variable in derived class, so not define it here,
# base class. Instead of define it, we initialize it in a function
...
...
packages/bison.rb
View file @
3c9ac14b
...
...
@@ -16,11 +16,10 @@ class Bison < Package
def
self
.
build
system
'./configure --prefix=/usr/local'
system
"make"
system
"find . -name '*.a' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/bz2.rb
View file @
3c9ac14b
...
...
@@ -37,11 +37,6 @@ class Bz2 < Package
system
"mkdir"
,
"-p"
,
"
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
"
system
"cp"
,
"-p"
,
"libbz2.so.1.0.6"
,
"
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
"
system
"ln"
,
"-s"
,
"libbz2.so.1.0.6"
,
"
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/libbz2.so.1.0"
# Strip binaries and libraries
system
"strip
#{
CREW_DEST_DIR
}
/usr/local/bin/bzip2"
system
"strip
#{
CREW_DEST_DIR
}
/usr/local/bin/bzip2recover"
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/*"
end
def
self
.
check
...
...
packages/curl.rb
View file @
3c9ac14b
...
...
@@ -18,10 +18,7 @@ class Curl < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
# strip debug symbol from library
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/libcurl.so.*"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/diffutils.rb
View file @
3c9ac14b
...
...
@@ -15,7 +15,7 @@ class Diffutils < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/dos2unix.rb
View file @
3c9ac14b
...
...
@@ -9,7 +9,6 @@ class Dos2unix < Package
def
self
.
build
system
'make'
system
'make strip'
end
def
self
.
install
...
...
packages/ed.rb
View file @
3c9ac14b
...
...
@@ -16,7 +16,7 @@ class Ed < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/expat.rb
View file @
3c9ac14b
...
...
@@ -14,10 +14,6 @@ class Expat < Package
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip binary and library
system
"strip
#{
CREW_DEST_DIR
}
/usr/local/bin/xmlwf"
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/libexpat.so.*"
end
def
self
.
check
...
...
packages/expect.rb
View file @
3c9ac14b
...
...
@@ -12,8 +12,6 @@ class Expect < Package
def
self
.
build
system
"./configure"
,
"--prefix=/usr/local"
system
"make"
system
"find . -name '*.so' -print | xargs strip -S"
system
"strip expect"
end
def
self
.
install
...
...
packages/filecmd.rb
View file @
3c9ac14b
...
...
@@ -10,11 +10,10 @@ class Filecmd < Package
def
self
.
build
system
"./configure"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/flex.rb
View file @
3c9ac14b
...
...
@@ -13,11 +13,10 @@ class Flex < Package
def
self
.
build
system
"./configure"
,
"--with-pic"
,
"--disable-static"
,
"--enable-shared"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/gawk.rb
View file @
3c9ac14b
...
...
@@ -16,11 +16,10 @@ class Gawk < Package
def
self
.
build
system
'./configure'
,
'--prefix=/usr/local'
system
'make'
system
"find . -name '*.so' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/gdbm.rb
View file @
3c9ac14b
...
...
@@ -12,11 +12,10 @@ class Gdbm < Package
def
self
.
build
system
'./configure'
,
'--disable-static'
,
'--enable-shared'
,
'--with-pic'
system
'make'
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/gettext.rb
View file @
3c9ac14b
...
...
@@ -14,11 +14,10 @@ class Gettext < Package
def
self
.
build
system
"./configure"
,
"--enable-shared"
,
"--disable-static"
,
"--with-pic"
system
"make"
system
"find . -name '*.so.*' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/git.rb
View file @
3c9ac14b
...
...
@@ -22,7 +22,6 @@ class Git < Package
def
self
.
build
system
"
#{
@make_cmd
}
all"
system
"
#{
@make_cmd
}
strip"
end
def
self
.
install
...
...
packages/less.rb
View file @
3c9ac14b
...
...
@@ -16,7 +16,7 @@ class Less < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/libffi.rb
View file @
3c9ac14b
...
...
@@ -10,11 +10,10 @@ class Libffi < Package
def
self
.
build
system
"./configure"
,
"--enable-shared"
,
"--disable-static"
,
"--with-pic"
,
"--disable-debug"
,
"--disable-dependency-tracking"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/libpipeline.rb
View file @
3c9ac14b
...
...
@@ -10,11 +10,10 @@ class Libpipeline < Package
def
self
.
build
system
'./configure'
,
'--disable-static'
,
'--enable-shared'
,
'--with-pic'
system
'make'
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/libssh2.rb
View file @
3c9ac14b
...
...
@@ -17,9 +17,6 @@ class Libssh2 < Package
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip debug symbol from library
system
"strip -S
#{
CREW_DEST_DIR
}
/usr/local/lib/libssh2.so.*"
end
def
self
.
check
...
...
packages/libunbound.rb
View file @
3c9ac14b
...
...
@@ -19,8 +19,6 @@ class Libunbound < Package
system
"sed"
,
"-i"
,
"Makefile"
,
"-e"
,
'/$(LEX) -t $(srcdir)\/util\/configlexer.lex/s:-t:-t -Pub_c_:'
system
"make"
system
"make"
,
"strip"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
def
self
.
install
...
...
packages/libxml2.rb
View file @
3c9ac14b
...
...
@@ -13,10 +13,7 @@ class Libxml2 < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
# strip debug symbol from library
system
"strip -S
#{
CREW_DEST_DIR
}
/usr/local/lib/libxml2.so.*"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/lzip.rb
View file @
3c9ac14b
...
...
@@ -14,7 +14,7 @@ class Lzip < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/m4.rb
View file @
3c9ac14b
...
...
@@ -15,7 +15,7 @@ class M4 < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/make.rb
View file @
3c9ac14b
...
...
@@ -16,7 +16,7 @@ class Make < Package
end
def
self
.
install
system
"./make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"./make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/mandb.rb
View file @
3c9ac14b
...
...
@@ -20,11 +20,10 @@ class Mandb < Package
'--disable-cache-owner'
,
# we can't create the user 'man'
'--with-pager=/usr/local/bin/less'
# the pager is not at the default location
system
'make'
system
"find . -name 'lib*.so*' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
puts
""
puts
"You will have to change the default PAGER environment variable to be able to use mandb:"
puts
"echo
\"
export PAGER=/usr/local/bin/less
\"
>> ~/.bashrc && . ~/.bashrc"
...
...
packages/ncurses.rb
View file @
3c9ac14b
...
...
@@ -23,17 +23,5 @@ class Ncurses < Package
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip binaries
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/clear"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/infocmp"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tabs"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tic"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tput"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tset"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/toe"
# strip libraries here since `make install` re-link libraries again
system
"find
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
-name 'lib*.so.*' -print | xargs strip -S"
end
end
packages/ncursesw.rb
View file @
3c9ac14b
...
...
@@ -42,8 +42,5 @@ class Ncursesw < Package
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tput"
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tset"
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/toe"
# strip libraries here since `make install` re-link libraries again
system
"find
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
-name 'lib*.so.*' -print | xargs strip -S"
end
end
packages/openssl.rb
View file @
3c9ac14b
...
...
@@ -26,13 +26,10 @@ class Openssl < Package
end
system
"./config --prefix=/usr/local --openssldir=/etc/ssl
#{
options
}
"
system
"make"
system
"find . -name '*.so' -print | xargs strip -S"
system
"find . -name '*.so.*' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"INSTALL_PREFIX=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/openssl"
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'lib*.a' -print | xargs rm"
# move man to /usr/local/man
...
...
packages/patch.rb
View file @
3c9ac14b
...
...
@@ -13,7 +13,7 @@ class Patch < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/pcre.rb
View file @
3c9ac14b
...
...
@@ -13,8 +13,7 @@ class Pcre < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/lib*.so.*"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/perl.rb
View file @
3c9ac14b
...
...
@@ -14,11 +14,10 @@ class Perl < Package
# Create shared library
system
"BUILD_ZLIB=False BUILD_BZIP2=0 ./Configure -de -Duseshrplib"
system
"make"
system
"find . -name '*.so' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/pkgconfig.rb
View file @
3c9ac14b
...
...
@@ -21,7 +21,7 @@ class Pkgconfig < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/python27.rb
View file @
3c9ac14b
...
...
@@ -16,22 +16,13 @@ class Python27 < Package
def
self
.
build
system
"./configure"
,
"CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw"
,
"--with-ensurepip=install"
,
"--enable-shared"
system
"make"
# strip debug symbols from library
system
"find . -name '*.so' -print | xargs strip -S"
unless
@@debug_symbol
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip binary
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/python2"
unless
@@debug_symbol
# remove static library
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'libpython*.a' -print | xargs rm"
# remove cache (byte-code) files from install package
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name '*.pyc' -o -name '*.pyo' | xargs rm"
end
def
self
.
check
...
...
packages/python3.rb
View file @
3c9ac14b
...
...
@@ -17,22 +17,13 @@ class Python3 < Package
system
"./configure"
,
"CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw"
,
"--with-ensurepip=install"
,
"--enable-shared"
system
"make"
# strip debug symbols from library
system
"find . -name '*.so' -print | xargs strip -S"
unless
@@debug_symbol
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip binary
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/python3"
unless
@@debug_symbol
# remove static library
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'libpython*.a' -print | xargs rm"
# remove cache (byte-code) files from install package
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name '__pycache__' -print | xargs rm -rf"
end
def
self
.
check
...
...
@@ -54,10 +45,6 @@ class Python3 < Package
"bpo-30175: FIXME: cyrus.andrew.cmu.edu doesn\'t accept "\
"our randomly generated client x509 certificate anymore")'
# skip gdb test since we are stripping debug symbols
system
"sed"
,
"-i"
,
"Lib/test/test_gdb.py"
,
"-e"
,
'/get_gdb_version/iraise unittest.SkipTest("only for python install with debug symbols")'
unless
@@debug_symbol
# Using /tmp breaks test_distutils, test_subprocess
# Proxy setting breaks test_httpservers, test_ssl,
# test_urllib, test_urllib2, test_urllib2_localnet
...
...
packages/r.rb
View file @
3c9ac14b
...
...
@@ -24,7 +24,7 @@ class R < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/readline.rb
View file @
3c9ac14b
...
...
@@ -25,7 +25,6 @@ class Readline < Package
system
"CC='gcc' ./configure --libdir=
#{
CREW_LIB_PREFIX
}
--disable-static --with-curses"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
def
self
.
install
...
...
packages/ruby.rb
View file @
3c9ac14b
...
...
@@ -16,12 +16,10 @@ class Ruby < Package
def
self
.
build
system
"CC='gcc' ./configure"
system
"make"
system
"find . -name '*.so' | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"strip
#{
CREW_DEST_DIR
}
/usr/local/bin/ruby"
end
def
self
.
check
...
...
packages/sqlite.rb
View file @
3c9ac14b
...
...
@@ -10,10 +10,9 @@ class Sqlite < Package
def
self
.
build
system
"./configure"
,
"--disable-static"
,
"--enable-shared"
,
"--with-pic"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
packages/vim.rb
View file @
3c9ac14b
...
...
@@ -20,7 +20,6 @@ class Vim < Package
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/vim"
puts
"
\n
Make sure to put your .vim directory in a subdirectory of /usr/local so it has execute permissions"
puts
"You can then symlink to your home directory so vim can see it"
...
...
packages/xzutils.rb
View file @
3c9ac14b
...
...
@@ -14,10 +14,7 @@ class Xzutils < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
# strip debug symbol from library
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/liblzma.so.*"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
...
...
packages/zlibpkg.rb
View file @
3c9ac14b
...
...
@@ -17,9 +17,6 @@ class Zlibpkg < Package
# remove static library since there is no configuration option to not create it.
system
"rm"
,
"
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/libz.a"
# strip library
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/libz.so.*"
end
def
self
.
check
...
...
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