diff options
author | Joshua Kinard <kumba@gentoo.org> | 2015-09-06 19:15:32 -0400 |
---|---|---|
committer | Joshua Kinard <kumba@gentoo.org> | 2015-09-06 19:15:32 -0400 |
commit | e7c87c71a93aade54a574d2d11738019654029cd (patch) | |
tree | da6371594933a9574311c8224adf8e51be1b3f7c /dev-vcs/git | |
parent | media-libs/libhdhomerun: fix license (diff) | |
download | gentoo-e7c87c71a93aade54a574d2d11738019654029cd.tar.gz gentoo-e7c87c71a93aade54a574d2d11738019654029cd.tar.bz2 gentoo-e7c87c71a93aade54a574d2d11738019654029cd.zip |
Fix #493306, where libiconv.so was merged into FreeBSd's libc in 10.x. Without, git attempts to use -liconv during linking, which will fail on Gentoo/FreeBSD 10.x installs.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-vcs/git')
-rw-r--r-- | dev-vcs/git/files/git-2.5.1-freebsd-10.x-no-iconv.patch | 14 | ||||
-rw-r--r-- | dev-vcs/git/git-2.5.1.ebuild | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-vcs/git/files/git-2.5.1-freebsd-10.x-no-iconv.patch b/dev-vcs/git/files/git-2.5.1-freebsd-10.x-no-iconv.patch new file mode 100644 index 000000000000..a874236dc65c --- /dev/null +++ b/dev-vcs/git/files/git-2.5.1-freebsd-10.x-no-iconv.patch @@ -0,0 +1,14 @@ +diff -Naurp git-2.5.1.orig/config.mak.uname git-2.5.1/config.mak.uname +--- git-2.5.1.orig/config.mak.uname 2015-08-28 15:37:13.000000000 -0400 ++++ git-2.5.1/config.mak.uname 2015-09-06 18:54:28.538437000 -0400 +@@ -189,7 +189,9 @@ ifeq ($(uname_O),Cygwin) + SPARSE_FLAGS = -isystem /usr/include/w32api -Wno-one-bit-signed-bitfield + endif + ifeq ($(uname_S),FreeBSD) +- NEEDS_LIBICONV = YesPlease ++ ifeq ($(shell expr "$(uname_R)" : '[1-9]\.'),2) ++ NEEDS_LIBICONV = YesPlease ++ endif + OLD_ICONV = YesPlease + NO_MEMMEM = YesPlease + BASIC_CFLAGS += -I/usr/local/include diff --git a/dev-vcs/git/git-2.5.1.ebuild b/dev-vcs/git/git-2.5.1.ebuild index 352b93a6807b..cf3686050a61 100644 --- a/dev-vcs/git/git-2.5.1.ebuild +++ b/dev-vcs/git/git-2.5.1.ebuild @@ -229,6 +229,9 @@ src_prepare() { epatch "${FILESDIR}"/git-2.2.0-svn-fe-linking.patch + # Bug #493306, where FreeBSD 10.x merged libiconv into its libc. + epatch "${FILESDIR}"/git-2.5.1-freebsd-10.x-no-iconv.patch + epatch_user sed -i \ |