diff options
author | Rick Farina <zerochaos@gentoo.org> | 2014-01-23 17:16:38 +0000 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2014-01-23 17:16:38 +0000 |
commit | 4cabbfababc59af0de59c1346110eca54e106c6f (patch) | |
tree | 2e4fe5f5a9e78f8151ceb018975b7a33e29d6b35 /sys-fs/go-mtpfs | |
parent | Security bump wrt bug #498866; Drop old. (diff) | |
download | gentoo-2-4cabbfababc59af0de59c1346110eca54e106c6f.tar.gz gentoo-2-4cabbfababc59af0de59c1346110eca54e106c6f.tar.bz2 gentoo-2-4cabbfababc59af0de59c1346110eca54e106c6f.zip |
horrible, horrible update, that happens to build on hardened
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
Diffstat (limited to 'sys-fs/go-mtpfs')
-rw-r--r-- | sys-fs/go-mtpfs/ChangeLog | 7 | ||||
-rw-r--r-- | sys-fs/go-mtpfs/go-mtpfs-9999.ebuild | 24 |
2 files changed, 21 insertions, 10 deletions
diff --git a/sys-fs/go-mtpfs/ChangeLog b/sys-fs/go-mtpfs/ChangeLog index 5d2498743bf5..78c00f34040a 100644 --- a/sys-fs/go-mtpfs/ChangeLog +++ b/sys-fs/go-mtpfs/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-fs/go-mtpfs -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/go-mtpfs/ChangeLog,v 1.3 2013/10/21 03:02:23 zerochaos Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/go-mtpfs/ChangeLog,v 1.4 2014/01/23 17:16:38 zerochaos Exp $ + + 23 Jan 2014; Rick Farina <zerochaos@gentoo.org> go-mtpfs-9999.ebuild: + horrible, horrible update, that happens to build on hardened 21 Oct 2013; Rick Farina <zerochaos@gentoo.org> go-mtpfs-9999.ebuild: breaking things up and adding tests diff --git a/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild b/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild index ece60e007a50..b4795b075432 100644 --- a/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild +++ b/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild,v 1.3 2013/10/21 03:02:23 zerochaos Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild,v 1.4 2014/01/23 17:16:38 zerochaos Exp $ EAPI=5 -inherit git-r3 +inherit git-r3 flag-o-matic toolchain-funcs DESCRIPTION="a simple FUSE filesystem for mounting Android devices as a MTP device" HOMEPAGE="https://github.com/hanwen/go-mtpfs" @@ -26,13 +26,21 @@ GO_PN="github.com/hanwen/${PN}" EGIT_CHECKOUT_DIR="${S}/src/${GO_PN}" export GOPATH="${S}" +export GOGCCFLAGS="${CFLAGS}" + +#pkg_setup() { +#} src_compile() { - go build -v -x -work ${GO_PN}/fs || die - go build -v -x -work ${GO_PN}/usb || die - go build -v -x -work ${GO_PN}/mtp || die + #if gcc-specs-pie ; then + # filter-flags -fPIE + # append-ldflags -nopie + #fi + go build -ldflags '-nopie' -v -x -work ${GO_PN}/fs || die + go build -ldflags '-nopie' -v -x -work ${GO_PN}/usb || die + go build -ldflags '-nopie' -v -x -work ${GO_PN}/mtp || die #works on hardened up to here - go build -v -x -work ${GO_PN} || die + go build -ldflags '-extldflags=-fno-PIC' -v -x -work ${GO_PN} || die } src_test() { @@ -46,7 +54,7 @@ src_install() { # go install -v -x -work ${GO_PN}/fs || die # go install -v -x -work ${GO_PN}/usb || die # go install -v -x -work ${GO_PN}/mtp || die - go install -v -x -work ${GO_PN} || die + go install -ldflags '-extldflags=-fno-PIC' -v -x -work ${GO_PN} || die } #please don't remove commented lines till it works in hardened |