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
Show 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
...
@@ -27,6 +27,9 @@ else
CREW_NPROC
=
ENV
[
"CREW_NPROC"
]
CREW_NPROC
=
ENV
[
"CREW_NPROC"
]
end
end
#
Set
CREW_NOT_STRIP
from
environment
variable
CREW_NOT_STRIP
=
ENV
[
"CREW_NOT_STRIP"
]
#
Set
XZ_OPT
environment
variable
for
build
command
.
#
Set
XZ_OPT
environment
variable
for
build
command
.
#
If
CREW_XZ_OPT
is
defined
,
use
it
by
default
.
Use
`-
7
e
`,
otherwise
.
#
If
CREW_XZ_OPT
is
defined
,
use
it
by
default
.
Use
`-
7
e
`,
otherwise
.
if
ENV
[
"CREW_XZ_OPT"
].
to_s
==
''
if
ENV
[
"CREW_XZ_OPT"
].
to_s
==
''
...
@@ -435,6 +438,16 @@ def install_package (pkgdir)
...
@@ -435,6 +438,16 @@ def install_package (pkgdir)
FileUtils
.
mv
'dlist'
,
CREW_CONFIG_PATH
+
"meta/#{@pkg.name}.directorylist"
FileUtils
.
mv
'dlist'
,
CREW_CONFIG_PATH
+
"meta/#{@pkg.name}.directorylist"
FileUtils
.
mv
'filelist'
,
CREW_CONFIG_PATH
+
"meta/#{@pkg.name}.filelist"
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 -)"
system
"tar cf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)"
end
end
end
end
...
...
lib/package.rb
View file @
3c9ac14b
...
@@ -9,8 +9,6 @@ class Package
...
@@ -9,8 +9,6 @@ class Package
attr_accessor
:in_upgrade
attr_accessor
:in_upgrade
end
end
@@debug_symbol
=
ENV
[
'CREW_DEBUG_SYMBOL'
]
||
false
def
self
.
dependencies
def
self
.
dependencies
# We need instance variable in derived class, so not define it here,
# We need instance variable in derived class, so not define it here,
# base class. Instead of define it, we initialize it in a function
# 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
...
@@ -16,11 +16,10 @@ class Bison < Package
def
self
.
build
def
self
.
build
system
'./configure --prefix=/usr/local'
system
'./configure --prefix=/usr/local'
system
"make"
system
"make"
system
"find . -name '*.a' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/bz2.rb
View file @
3c9ac14b
...
@@ -37,11 +37,6 @@ class Bz2 < Package
...
@@ -37,11 +37,6 @@ class Bz2 < Package
system
"mkdir"
,
"-p"
,
"
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
"
system
"mkdir"
,
"-p"
,
"
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
"
system
"cp"
,
"-p"
,
"libbz2.so.1.0.6"
,
"
#{
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"
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
end
def
self
.
check
def
self
.
check
...
...
packages/curl.rb
View file @
3c9ac14b
...
@@ -18,10 +18,7 @@ class Curl < Package
...
@@ -18,10 +18,7 @@ class Curl < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip debug symbol from library
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/libcurl.so.*"
end
end
def
self
.
check
def
self
.
check
...
...
packages/diffutils.rb
View file @
3c9ac14b
...
@@ -15,7 +15,7 @@ class Diffutils < Package
...
@@ -15,7 +15,7 @@ class Diffutils < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/dos2unix.rb
View file @
3c9ac14b
...
@@ -9,7 +9,6 @@ class Dos2unix < Package
...
@@ -9,7 +9,6 @@ class Dos2unix < Package
def
self
.
build
def
self
.
build
system
'make'
system
'make'
system
'make strip'
end
end
def
self
.
install
def
self
.
install
...
...
packages/ed.rb
View file @
3c9ac14b
...
@@ -16,7 +16,7 @@ class Ed < Package
...
@@ -16,7 +16,7 @@ class Ed < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/expat.rb
View file @
3c9ac14b
...
@@ -14,10 +14,6 @@ class Expat < Package
...
@@ -14,10 +14,6 @@ class Expat < Package
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"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
end
def
self
.
check
def
self
.
check
...
...
packages/expect.rb
View file @
3c9ac14b
...
@@ -12,8 +12,6 @@ class Expect < Package
...
@@ -12,8 +12,6 @@ class Expect < Package
def
self
.
build
def
self
.
build
system
"./configure"
,
"--prefix=/usr/local"
system
"./configure"
,
"--prefix=/usr/local"
system
"make"
system
"make"
system
"find . -name '*.so' -print | xargs strip -S"
system
"strip expect"
end
end
def
self
.
install
def
self
.
install
...
...
packages/filecmd.rb
View file @
3c9ac14b
...
@@ -10,11 +10,10 @@ class Filecmd < Package
...
@@ -10,11 +10,10 @@ class Filecmd < Package
def
self
.
build
def
self
.
build
system
"./configure"
system
"./configure"
system
"make"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/flex.rb
View file @
3c9ac14b
...
@@ -13,11 +13,10 @@ class Flex < Package
...
@@ -13,11 +13,10 @@ class Flex < Package
def
self
.
build
def
self
.
build
system
"./configure"
,
"--with-pic"
,
"--disable-static"
,
"--enable-shared"
system
"./configure"
,
"--with-pic"
,
"--disable-static"
,
"--enable-shared"
system
"make"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/gawk.rb
View file @
3c9ac14b
...
@@ -16,11 +16,10 @@ class Gawk < Package
...
@@ -16,11 +16,10 @@ class Gawk < Package
def
self
.
build
def
self
.
build
system
'./configure'
,
'--prefix=/usr/local'
system
'./configure'
,
'--prefix=/usr/local'
system
'make'
system
'make'
system
"find . -name '*.so' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/gdbm.rb
View file @
3c9ac14b
...
@@ -12,11 +12,10 @@ class Gdbm < Package
...
@@ -12,11 +12,10 @@ class Gdbm < Package
def
self
.
build
def
self
.
build
system
'./configure'
,
'--disable-static'
,
'--enable-shared'
,
'--with-pic'
system
'./configure'
,
'--disable-static'
,
'--enable-shared'
,
'--with-pic'
system
'make'
system
'make'
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/gettext.rb
View file @
3c9ac14b
...
@@ -14,11 +14,10 @@ class Gettext < Package
...
@@ -14,11 +14,10 @@ class Gettext < Package
def
self
.
build
def
self
.
build
system
"./configure"
,
"--enable-shared"
,
"--disable-static"
,
"--with-pic"
system
"./configure"
,
"--enable-shared"
,
"--disable-static"
,
"--with-pic"
system
"make"
system
"make"
system
"find . -name '*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/git.rb
View file @
3c9ac14b
...
@@ -22,7 +22,6 @@ class Git < Package
...
@@ -22,7 +22,6 @@ class Git < Package
def
self
.
build
def
self
.
build
system
"
#{
@make_cmd
}
all"
system
"
#{
@make_cmd
}
all"
system
"
#{
@make_cmd
}
strip"
end
end
def
self
.
install
def
self
.
install
...
...
packages/less.rb
View file @
3c9ac14b
...
@@ -16,7 +16,7 @@ class Less < Package
...
@@ -16,7 +16,7 @@ class Less < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/libffi.rb
View file @
3c9ac14b
...
@@ -10,11 +10,10 @@ class Libffi < Package
...
@@ -10,11 +10,10 @@ class Libffi < Package
def
self
.
build
def
self
.
build
system
"./configure"
,
"--enable-shared"
,
"--disable-static"
,
"--with-pic"
,
"--disable-debug"
,
"--disable-dependency-tracking"
system
"./configure"
,
"--enable-shared"
,
"--disable-static"
,
"--with-pic"
,
"--disable-debug"
,
"--disable-dependency-tracking"
system
"make"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/libpipeline.rb
View file @
3c9ac14b
...
@@ -10,11 +10,10 @@ class Libpipeline < Package
...
@@ -10,11 +10,10 @@ class Libpipeline < Package
def
self
.
build
def
self
.
build
system
'./configure'
,
'--disable-static'
,
'--enable-shared'
,
'--with-pic'
system
'./configure'
,
'--disable-static'
,
'--enable-shared'
,
'--with-pic'
system
'make'
system
'make'
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/libssh2.rb
View file @
3c9ac14b
...
@@ -17,9 +17,6 @@ class Libssh2 < Package
...
@@ -17,9 +17,6 @@ class Libssh2 < Package
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"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
end
def
self
.
check
def
self
.
check
...
...
packages/libunbound.rb
View file @
3c9ac14b
...
@@ -19,8 +19,6 @@ class Libunbound < Package
...
@@ -19,8 +19,6 @@ class Libunbound < Package
system
"sed"
,
"-i"
,
"Makefile"
,
"-e"
,
'/$(LEX) -t $(srcdir)\/util\/configlexer.lex/s:-t:-t -Pub_c_:'
system
"sed"
,
"-i"
,
"Makefile"
,
"-e"
,
'/$(LEX) -t $(srcdir)\/util\/configlexer.lex/s:-t:-t -Pub_c_:'
system
"make"
system
"make"
system
"make"
,
"strip"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
...
...
packages/libxml2.rb
View file @
3c9ac14b
...
@@ -13,10 +13,7 @@ class Libxml2 < Package
...
@@ -13,10 +13,7 @@ class Libxml2 < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip debug symbol from library
system
"strip -S
#{
CREW_DEST_DIR
}
/usr/local/lib/libxml2.so.*"
end
end
def
self
.
check
def
self
.
check
...
...
packages/lzip.rb
View file @
3c9ac14b
...
@@ -14,7 +14,7 @@ class Lzip < Package
...
@@ -14,7 +14,7 @@ class Lzip < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/m4.rb
View file @
3c9ac14b
...
@@ -15,7 +15,7 @@ class M4 < Package
...
@@ -15,7 +15,7 @@ class M4 < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/make.rb
View file @
3c9ac14b
...
@@ -16,7 +16,7 @@ class Make < Package
...
@@ -16,7 +16,7 @@ class Make < Package
end
end
def
self
.
install
def
self
.
install
system
"./make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"./make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/mandb.rb
View file @
3c9ac14b
...
@@ -20,11 +20,10 @@ class Mandb < Package
...
@@ -20,11 +20,10 @@ class Mandb < Package
'--disable-cache-owner'
,
# we can't create the user 'man'
'--disable-cache-owner'
,
# we can't create the user 'man'
'--with-pager=/usr/local/bin/less'
# the pager is not at the default location
'--with-pager=/usr/local/bin/less'
# the pager is not at the default location
system
'make'
system
'make'
system
"find . -name 'lib*.so*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
puts
""
puts
""
puts
"You will have to change the default PAGER environment variable to be able to use mandb:"
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"
puts
"echo
\"
export PAGER=/usr/local/bin/less
\"
>> ~/.bashrc && . ~/.bashrc"
...
...
packages/ncurses.rb
View file @
3c9ac14b
...
@@ -23,17 +23,5 @@ class Ncurses < Package
...
@@ -23,17 +23,5 @@ class Ncurses < Package
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"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
end
end
packages/ncursesw.rb
View file @
3c9ac14b
...
@@ -42,8 +42,5 @@ class Ncursesw < Package
...
@@ -42,8 +42,5 @@ class Ncursesw < Package
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/tput"
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/tset"
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/toe"
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
end
end
packages/openssl.rb
View file @
3c9ac14b
...
@@ -26,13 +26,10 @@ class Openssl < Package
...
@@ -26,13 +26,10 @@ class Openssl < Package
end
end
system
"./config --prefix=/usr/local --openssldir=/etc/ssl
#{
options
}
"
system
"./config --prefix=/usr/local --openssldir=/etc/ssl
#{
options
}
"
system
"make"
system
"make"
system
"find . -name '*.so' -print | xargs strip -S"
system
"find . -name '*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"INSTALL_PREFIX=
#{
CREW_DEST_DIR
}
"
,
"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"
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'lib*.a' -print | xargs rm"
# move man to /usr/local/man
# move man to /usr/local/man
...
...
packages/patch.rb
View file @
3c9ac14b
...
@@ -13,7 +13,7 @@ class Patch < Package
...
@@ -13,7 +13,7 @@ class Patch < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/pcre.rb
View file @
3c9ac14b
...
@@ -13,8 +13,7 @@ class Pcre < Package
...
@@ -13,8 +13,7 @@ class Pcre < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/lib*.so.*"
end
end
def
self
.
check
def
self
.
check
...
...
packages/perl.rb
View file @
3c9ac14b
...
@@ -14,11 +14,10 @@ class Perl < Package
...
@@ -14,11 +14,10 @@ class Perl < Package
# Create shared library
# Create shared library
system
"BUILD_ZLIB=False BUILD_BZIP2=0 ./Configure -de -Duseshrplib"
system
"BUILD_ZLIB=False BUILD_BZIP2=0 ./Configure -de -Duseshrplib"
system
"make"
system
"make"
system
"find . -name '*.so' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/pkgconfig.rb
View file @
3c9ac14b
...
@@ -21,7 +21,7 @@ class Pkgconfig < Package
...
@@ -21,7 +21,7 @@ class Pkgconfig < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/python27.rb
View file @
3c9ac14b
...
@@ -16,22 +16,13 @@ class Python27 < Package
...
@@ -16,22 +16,13 @@ class Python27 < Package
def
self
.
build
def
self
.
build
system
"./configure"
,
"CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw"
,
"--with-ensurepip=install"
,
"--enable-shared"
system
"./configure"
,
"CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw"
,
"--with-ensurepip=install"
,
"--enable-shared"
system
"make"
system
"make"
# strip debug symbols from library
system
"find . -name '*.so' -print | xargs strip -S"
unless
@@debug_symbol
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"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
# remove static library
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'libpython*.a' -print | xargs rm"
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
end
def
self
.
check
def
self
.
check
...
...
packages/python3.rb
View file @
3c9ac14b
...
@@ -17,22 +17,13 @@ class Python3 < Package
...
@@ -17,22 +17,13 @@ class Python3 < Package
system
"./configure"
,
"CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw"
,
system
"./configure"
,
"CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw"
,
"--with-ensurepip=install"
,
"--enable-shared"
"--with-ensurepip=install"
,
"--enable-shared"
system
"make"
system
"make"
# strip debug symbols from library
system
"find . -name '*.so' -print | xargs strip -S"
unless
@@debug_symbol
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"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
# remove static library
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'libpython*.a' -print | xargs rm"
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
end
def
self
.
check
def
self
.
check
...
@@ -54,10 +45,6 @@ class Python3 < Package
...
@@ -54,10 +45,6 @@ class Python3 < Package
"bpo-30175: FIXME: cyrus.andrew.cmu.edu doesn\'t accept "\
"bpo-30175: FIXME: cyrus.andrew.cmu.edu doesn\'t accept "\
"our randomly generated client x509 certificate anymore")'
"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
# Using /tmp breaks test_distutils, test_subprocess
# Proxy setting breaks test_httpservers, test_ssl,
# Proxy setting breaks test_httpservers, test_ssl,
# test_urllib, test_urllib2, test_urllib2_localnet
# test_urllib, test_urllib2, test_urllib2_localnet
...
...
packages/r.rb
View file @
3c9ac14b
...
@@ -24,7 +24,7 @@ class R < Package
...
@@ -24,7 +24,7 @@ class R < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
def
self
.
check
def
self
.
check
...
...
packages/readline.rb
View file @
3c9ac14b
...
@@ -25,7 +25,6 @@ class Readline < Package
...
@@ -25,7 +25,6 @@ class Readline < Package
system
"CC='gcc' ./configure --libdir=
#{
CREW_LIB_PREFIX
}
--disable-static --with-curses"
system
"CC='gcc' ./configure --libdir=
#{
CREW_LIB_PREFIX
}
--disable-static --with-curses"
system
"make"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
...
...
packages/ruby.rb
View file @
3c9ac14b
...
@@ -16,12 +16,10 @@ class Ruby < Package
...
@@ -16,12 +16,10 @@ class Ruby < Package
def
self
.
build
def
self
.
build
system
"CC='gcc' ./configure"
system
"CC='gcc' ./configure"
system
"make"
system
"make"
system
"find . -name '*.so' | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"strip
#{
CREW_DEST_DIR
}
/usr/local/bin/ruby"
end
end
def
self
.
check
def
self
.
check
...
...
packages/sqlite.rb
View file @
3c9ac14b
...
@@ -10,10 +10,9 @@ class Sqlite < Package
...
@@ -10,10 +10,9 @@ class Sqlite < Package
def
self
.
build
def
self
.
build
system
"./configure"
,
"--disable-static"
,
"--enable-shared"
,
"--with-pic"
system
"./configure"
,
"--disable-static"
,
"--enable-shared"
,
"--with-pic"
system
"make"
system
"make"
system
"find . -name 'lib*.so.*' -print | xargs strip -S"
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
end
end
end
packages/vim.rb
View file @
3c9ac14b
...
@@ -20,7 +20,6 @@ class Vim < Package
...
@@ -20,7 +20,6 @@ class Vim < Package
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"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
"
\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"
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
...
@@ -14,10 +14,7 @@ class Xzutils < Package
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip debug symbol from library
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/liblzma.so.*"
end
end
def
self
.
check
def
self
.
check
...
...
packages/zlibpkg.rb
View file @
3c9ac14b
...
@@ -17,9 +17,6 @@ class Zlibpkg < Package
...
@@ -17,9 +17,6 @@ class Zlibpkg < Package
# remove static library since there is no configuration option to not create it.
# remove static library since there is no configuration option to not create it.
system
"rm"
,
"
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/libz.a"
system
"rm"
,
"
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/libz.a"
# strip library
system
"strip -S
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/libz.so.*"
end
end
def
self
.
check
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