Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717700 - net-misc/bridge-utils hard codes AR=ar
Summary: net-misc/bridge-utils hard codes AR=ar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-16 11:35 UTC by Agostino Sarubbo
Modified: 2020-04-21 17:36 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,18.13 KB, text/plain)
2020-04-16 11:35 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-04-16 11:35:01 UTC
This is an auto-filled bug because net-misc/bridge-utils fails to compile on amd64. Feel free to adjust the summary to clarify the exact issue. Attached build log and emerge --info
Comment 1 Agostino Sarubbo gentoo-dev 2020-04-16 11:35:08 UTC
Created attachment 633234 [details]
build.log

build log and emerge --info
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-04-21 17:05:20 UTC
I think your binutils is broken. ar should be provided on your system by binutils already and is part of the system set.

From your log:
ar rcs libbridge.a libbridge_devif.o libbridge_if.o libbridge_init.o libbridge_misc.o
make[1]: ar: Command not found
make[1]: *** [Makefile:33: libbridge.a] Error 127
make[1]: Leaving directory '/var/tmp/portage/net-misc/bridge-utils-1.5/work/bridge-utils-1.5/libbridge'
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make[1]: Entering directory '/var/tmp/portage/net-misc/bridge-utils-1.5/work/bridge-utils-1.5/brctl'

I cannot reproduce this here on 1.5 or 1.6.
Comment 3 Mike Gilbert gentoo-dev 2020-04-21 17:19:33 UTC
AR is hard coded to "ar" in libbridge/Makefile.in. This may cause problems when cross-compiling.

I will write a patch.
Comment 4 Larry the Git Cow gentoo-dev 2020-04-21 17:25:25 UTC
The bug has been closed via the following commit(s):

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

commit 171516d5feaa67ab1408c6df4cce01467e8d918c
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2020-04-21 17:25:06 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2020-04-21 17:25:06 +0000

    net-misc/bridge-utils: fix hardcoded ar
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=717700
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 net-misc/bridge-utils/bridge-utils-1.5.ebuild | 4 ++++
 net-misc/bridge-utils/bridge-utils-1.6.ebuild | 4 ++++
 2 files changed, 8 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2020-04-21 17:36:53 UTC
The bug has been referenced in the following commit(s):

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

commit 98324336099cd804e6754bb2a8c3fd8c11e80840
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-04-21 17:35:51 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-04-21 17:35:51 +0000

    net-misc/bridge-utils: substitute AR from configure
    
    Bug: https://bugs.gentoo.org/717700
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-misc/bridge-utils/bridge-utils-1.6.ebuild      |  7 ++--
 ...dge-substitute-AR-variable-from-configure.patch | 40 ++++++++++++++++++++++
 2 files changed, 43 insertions(+), 4 deletions(-)