Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522286 - dev-vcs/git-crypt-0.3 - CXX CXXFLAGS and LDFLAGS not respected
Summary: dev-vcs/git-crypt-0.3 - CXX CXXFLAGS and LDFLAGS not respected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-07 03:12 UTC by Cody Schafer
Modified: 2022-11-01 23:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild which fixes this issue (and adds missing dependency on openssl) (git-crypt-0.3-r1.ebuild,848 bytes, text/plain)
2014-09-07 03:13 UTC, Cody Schafer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cody Schafer 2014-09-07 03:12:23 UTC
Output from build is:
c++ -Wall -pedantic -ansi -Wno-long-long -O2   -c -o git-crypt.o git-crypt.cpp
c++ -Wall -pedantic -ansi -Wno-long-long -O2   -c -o commands.o commands.cpp
c++ -Wall -pedantic -ansi -Wno-long-long -O2   -c -o crypto.o crypto.cpp
c++ -Wall -pedantic -ansi -Wno-long-long -O2   -c -o util.o util.cpp
c++ -Wall -pedantic -ansi -Wno-long-long -O2 -o git-crypt git-crypt.o commands.o crypto.o util.o -lcrypto
>>> Source compiled.

It CXX, CXXFLAGS, and LDFLAGS specified in portage are ignored.

Reproducible: Always
Comment 1 Cody Schafer 2014-09-07 03:13:33 UTC
Created attachment 384320 [details]
ebuild which fixes this issue (and adds missing dependency on openssl)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-08 08:54:40 UTC
Comment on attachment 384320 [details]
ebuild which fixes this issue (and adds missing dependency on openssl)

--- git-crypt-0.3.ebuild        2014-02-18 03:58:42.000000000 +0100
+++ -   2014-09-08 10:54:21.493684680 +0200
@@ -1,20 +1,35 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git-crypt/git-crypt-0.3.ebuild,v 1.1 2014/02/18 02:58:42 patrick Exp $
+# $Header: $
 
 EAPI=5

-DESCRIPTION="transparent file encryption in git"
-HOMEPAGE="https://www.agwa.name/projects/git-crypt/"
-SRC_URI="https://github.com/AGWA/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-LICENSE="GPL-3"
-SLOT="0"
+inherit eutils
+
+if [[ "$PV" = 9999 ]]; then
+       inherit git-2
+       EGIT_REPO_URI="https://www.agwa.name/git/git-crypt.git"
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/AGWA/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi

-KEYWORDS="~amd64 ~x86"
+DESCRIPTION="git-crypt enables transparent encryption and decryption of files in a
+git repository"
+HOMEPAGE="https://www.agwa.name/git/git-crypt.git"

-RDEPEND="dev-vcs/git"
+LICENSE="GPL-3+ openssl"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-libs/openssl dev-vcs/git"
 DEPEND="${RDEPEND}"

+src_compile () {
+       emake CXX="$(tc-getCXX)" CXXFLAGS="$CXXFLAGS $(pkg-config --cflags libcrypto)" LDFLAGS="$LDFLAGS $(pkg-config --libs libcrypto)"
+}
+
 src_install() {
        mkdir -p "${D}"/usr/bin
        emake PREFIX="${D}"/usr install
Comment 3 Larry the Git Cow gentoo-dev 2022-11-01 23:21:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afcb7f713732686924071d264af386df97b757bb

commit afcb7f713732686924071d264af386df97b757bb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-01 23:14:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-01 23:16:05 +0000

    dev-vcs/git-crypt: add 0.7.0
    
    Closes: https://bugs.gentoo.org/522286
    Closes: https://bugs.gentoo.org/689180
    Closes: https://bugs.gentoo.org/805545
    Thanks-to: John R. Graham <john_r_graham@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-vcs/git-crypt/Manifest               |  1 +
 dev-vcs/git-crypt/git-crypt-0.7.0.ebuild | 34 ++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)