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
0989eec9
Commit
0989eec9
authored
May 29, 2017
by
lyxell
Committed by
GitHub
May 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #692 from jam7/strip
Strip binaries and libraries from several packages
parents
afb90b6c
8ddd7017
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
59 additions
and
25 deletions
+59
-25
packages/diffutils.rb
packages/diffutils.rb
+6
-2
packages/ed.rb
packages/ed.rb
+2
-2
packages/gawk.rb
packages/gawk.rb
+15
-4
packages/groff.rb
packages/groff.rb
+6
-2
packages/libffi.rb
packages/libffi.rb
+3
-2
packages/libpipeline.rb
packages/libpipeline.rb
+7
-2
packages/lzip.rb
packages/lzip.rb
+2
-2
packages/sqlite.rb
packages/sqlite.rb
+3
-2
packages/vim.rb
packages/vim.rb
+5
-4
packages/xzutils.rb
packages/xzutils.rb
+5
-2
packages/zlibpkg.rb
packages/zlibpkg.rb
+5
-1
No files found.
packages/diffutils.rb
View file @
0989eec9
require
'package'
class
Diffutils
<
Package
version
'3.5'
version
'3.5
-1
'
source_url
'ftp://ftp.gnu.org/gnu/diffutils/diffutils-3.5.tar.xz'
source_sha1
'1169cce8eaaf7290dc087d65db7ed75de0dceb93'
...
...
@@ -13,6 +13,10 @@ class Diffutils < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
end
def
self
.
check
system
"make"
,
"check"
end
end
packages/ed.rb
View file @
0989eec9
require
'package'
class
Ed
<
Package
version
'1.14.2'
version
'1.14.2
-1
'
source_url
'http://ftpmirror.gnu.org/ed/ed-1.14.2.tar.lz'
source_sha1
'3e8aa331ffbc929884107ff3f8fbd76d01252277'
...
...
@@ -14,7 +14,7 @@ class Ed < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
end
def
self
.
check
...
...
packages/gawk.rb
View file @
0989eec9
require
'package'
class
Gawk
<
Package
version
'4.1.4'
version
'4.1.4
-1
'
source_url
'http://ftp.gnu.org/gnu/gawk/gawk-4.1.4.tar.xz'
source_sha1
'd67e00e2f6178e9cbd2c0ba923ae157bc0b3b570'
depends_on
'libsigsegv'
depends_on
'readline'
=>
:build
depends_on
'ncurses'
depends_on
'mpfr'
depends_on
'gmp'
def
self
.
build
system
'./configure --prefix=/usr/local'
system
"make"
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"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
end
def
self
.
check
system
'make'
,
'check'
end
end
packages/groff.rb
View file @
0989eec9
require
'package'
class
Groff
<
Package
version
'1.22.3'
version
'1.22.3
-1
'
source_url
'http://ftp.gnu.org/gnu/groff/groff-1.22.3.tar.gz'
source_sha1
'61a6808ea1ef715df9fa8e9b424e1f6b9fa8c091'
def
self
.
build
system
'./configure'
system
'
INSTALL_PROGRAM=\'${INSTALL} -s\'
./configure'
# force to compile in sequential since groff Makefile doesn't work in parallel
system
'make'
,
'-j1'
...
...
@@ -15,4 +15,8 @@ class Groff < Package
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
system
"make"
,
"check"
end
end
packages/libffi.rb
View file @
0989eec9
require
'package'
class
Libffi
<
Package
version
'3.2.1-
1
'
version
'3.2.1-
2
'
source_url
'ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz'
source_sha1
'280c265b789e041c02e5c97815793dfc283fb1e6'
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"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
end
def
self
.
check
...
...
packages/libpipeline.rb
View file @
0989eec9
require
'package'
class
Libpipeline
<
Package
version
'1.4.1-
1
'
version
'1.4.1-
2
'
source_url
'https://download.savannah.gnu.org/releases/libpipeline/libpipeline-1.4.1.tar.gz'
source_sha1
'b31cc955f22b1aa4545dc8d00ddbde831936594f'
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"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
end
def
self
.
check
system
"make"
,
"check"
end
end
packages/lzip.rb
View file @
0989eec9
require
'package'
class
Lzip
<
Package
version
'1.19'
version
'1.19
-1
'
source_url
'http://download.savannah.gnu.org/releases/lzip/lzip-1.19.tar.gz'
source_sha1
'c6042a786b69e3209112fa991806e2e7e0ba5f07'
...
...
@@ -12,7 +12,7 @@ class Lzip < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
end
def
self
.
check
...
...
packages/sqlite.rb
View file @
0989eec9
require
'package'
class
Sqlite
<
Package
version
'3.18.0'
version
'3.18.0
-1
'
source_url
'https://www.sqlite.org/2017/sqlite-autoconf-3180000.tar.gz'
source_sha1
'74559194e1dd9b9d577cac001c0e9d370856671b'
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"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install
-strip
"
end
end
packages/vim.rb
View file @
0989eec9
require
'package'
class
Vim
<
Package
version
'8.0'
version
'8.0
-1
'
source_url
'ftp://ftp.vim.org/pub/vim/unix/vim-8.0.tar.bz2'
source_sha1
'54bb7fe631ed8eaea5675ec934e88b0da1f1eca0'
depends_on
'ncurses'
depends_on
'perl'
depends_on
'python27'
depends_on
'ruby'
depends_on
'perl'
=>
:build
depends_on
'python27'
=>
:build
depends_on
'ruby'
=>
:build
def
self
.
build
system
'./configure --prefix=/usr/local --enable-gui=no --with-features=huge --without-x --disable-nls --enable-multibyte --with-tlib=ncurses --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --with-ruby-command=/usr/local/bin/ruby --disable-selinux'
...
...
@@ -17,6 +17,7 @@ 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 @
0989eec9
require
'package'
class
Xzutils
<
Package
version
'5.2.3-
1
'
version
'5.2.3-
2
'
source_url
'http://tukaani.org/xz/xz-5.2.3.tar.gz'
source_sha1
'529638eec3597e429cc54c74551ac0a89169e841'
...
...
@@ -11,7 +11,10 @@ class Xzutils < Package
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
# strip debug symbol from library
system
"strip -S
#{
CREW_DEST_DIR
}
/usr/local/lib/liblzma.so.*"
end
def
self
.
check
...
...
packages/zlibpkg.rb
View file @
0989eec9
require
'package'
class
Zlibpkg
<
Package
version
'1.2.11'
version
'1.2.11
-1
'
source_url
'http://www.zlib.net/zlib-1.2.11.tar.gz'
source_sha1
'e6d119755acdf9104d7ba236b1242696940ed6dd'
...
...
@@ -12,8 +12,12 @@ class Zlibpkg < Package
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# remove static library since there is no configuration option to not create it.
system
"rm"
,
"
#{
CREW_DEST_DIR
}
/usr/local/lib/libz.a"
# strip library
system
"strip -S
#{
CREW_DEST_DIR
}
/usr/local/lib/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