Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726304 - dev-libs/librdkafka-1.4.2 calls 'ar' directly'
Summary: dev-libs/librdkafka-1.4.2 calls 'ar' directly'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thomas Deutschmann (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2020-05-30 14:06 UTC by Sergei Trofimovich (RETIRED)
Modified: 2020-06-14 11:13 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-05-30 14:06:37 UTC
On a system with sys-devel/binutils-config[-native-symlinks] dev-libs/librdkafka-1.4.2 fails to build as:

"""
...
Creating static library librdkafka.a
ar rcs librdkafka.a rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdfnv1a.o rdaddr.o rdrand.o rdlist.o tinycthread.o tinycthread_extra.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdkafka_idempotence.o rdkafka_cert.o rdkafka_txnmgr.o rdkafka_coord.o rdvarint.o rdbuf.o rdunittest.o rdkafka_mock.o rdkafka_mock_handlers.o rdkafka_mock_cgrp.o rdkafka_error.o rdkafka_sasl_scram.o rdkafka_sasl_oauthbearer.o snappy.o rdgz.o rdhdrhistogram.o rdkafka_ssl.o rdkafka_lz4.o rdxxhash.o lz4.o lz4frame.o lz4hc.o rddl.o rdkafka_plugin.o
make[1]: ar: No such file or directory
"""

The following fix seems to be enough to repair it:

--- a/dev-libs/librdkafka/librdkafka-1.4.2.ebuild
+++ b/dev-libs/librdkafka/librdkafka-1.4.2.ebuild
@@ -41,7 +41,7 @@ DEPEND="
 "

 src_configure() {
-	tc-export CC CXX LD NM OBJDUMP PKG_CONFIG STRIP
+	tc-export AR CC CXX LD NM OBJDUMP PKG_CONFIG STRIP

 	local myeconf=(
 		--no-cache
Comment 1 Larry the Git Cow gentoo-dev 2020-06-14 11:13:06 UTC
The bug has been closed via the following commit(s):

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

commit 673f14de314e31f533512f2bc82ce4efa6eb8f70
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-06-14 11:12:56 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-06-14 11:13:01 +0000

    dev-libs/librdkafka: avoid calling 'ar' directly
    
    Closes: https://bugs.gentoo.org/726304
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-libs/librdkafka/librdkafka-1.4.2-r1.ebuild | 73 ++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)