Commit 23520d41 authored by satmandu's avatar satmandu Committed by GitHub

Mandb needs libseccomp dependency (#5314)

* Add libseccomp dep

* libseccomp -> 2.5.1
parent 0b8d184b
...@@ -3,31 +3,35 @@ require 'package' ...@@ -3,31 +3,35 @@ require 'package'
class Libseccomp < Package class Libseccomp < Package
description 'The libseccomp library provides an easy to use, platform independent, interface to the Linux Kernel\'s syscall filtering mechanism.' description 'The libseccomp library provides an easy to use, platform independent, interface to the Linux Kernel\'s syscall filtering mechanism.'
homepage 'https://github.com/seccomp/libseccomp' homepage 'https://github.com/seccomp/libseccomp'
version '2.4.1' @_ver = '2.5.1'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/seccomp/libseccomp/archive/v2.4.1.tar.gz' source_url "https://github.com/seccomp/libseccomp/archive/v#{@_ver}.tar.gz"
source_sha256 '36aa502c0461ae9efc6c93ec2430d6badd9bf91ecbe73806baf7b7c6f687ab4f' source_sha256 '76ad54e31d143b39a99083564045212a965e026a1010a742edd793d26d699829'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.4.1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.5.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.4.1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.5.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.4.1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.5.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.4.1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.5.1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'c857c381ba1cd7bc53d0c760d33b308dd0e8b24893828745ac2d9697f4098266', aarch64: 'a5fb74e92c03f02a6079796234e0c3c192ec689d71bc5b5dd104c0decdd747b1',
armv7l: 'c857c381ba1cd7bc53d0c760d33b308dd0e8b24893828745ac2d9697f4098266', armv7l: 'a5fb74e92c03f02a6079796234e0c3c192ec689d71bc5b5dd104c0decdd747b1',
i686: 'e29d38e68b4a4043ef55a39a07b9dcb42429c6fdefedc50842cce784e0670fe7', i686: '4d9b966795112a9bf8a6d3da564345998ee007400c9720b4d86b58e79c7c65ea',
x86_64: 'fb72ad86487e84775255ad3c231e4517f490094cfed05da2d22274e2f1006257', x86_64: 'dc052c6c4962cc1f5b30c1a73f0ab397abd15406d808a18f96ed8ff095a62e25'
}) })
def self.build def self.build
system './autogen.sh' system './autogen.sh'
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}" system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS}"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -22,6 +22,8 @@ class Mandb < Package ...@@ -22,6 +22,8 @@ class Mandb < Package
x86_64: '30939c206bd1adc66a33a8157d749b288a3726a995a8eb318c057104807c138d' x86_64: '30939c206bd1adc66a33a8157d749b288a3726a995a8eb318c057104807c138d'
}) })
depends_on 'libseccomp'
def self.patch def self.patch
system "sed -i 's,/usr/man,#{CREW_PREFIX}/share/man,g' src/man_db.conf.in" system "sed -i 's,/usr/man,#{CREW_PREFIX}/share/man,g' src/man_db.conf.in"
[ [
......
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