Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Aug 2020 12:23:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 248829] shells/bash-completion: Does not cross-build (with qemu-user-static)
Message-ID:  <bug-248829-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248829

            Bug ID: 248829
           Summary: shells/bash-completion: Does not cross-build (with
                    qemu-user-static)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: chris@chrullrich.net
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

Created attachment 217439
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217439&action=
=3Dedit
Patch

When cross-building with qemu-user-static, shells/bash-completion fails in
stage (this is from poudriere building for aarch64):

=3D=3D=3D>  Staging for bash-completion-2.11,2
=3D=3D=3D>   bash-completion-2.11,2 depends on executable: bash - found
=3D=3D=3D>   Generating temporary packing list
gmake[2]: Entering directory
'/wrkdirs/usr/ports/shells/bash-completion/work/bash-completion-2.11'
Making install in completions
Error loading gmake
gmake[2]: *** [Makefile:480: install-recursive] Error 1
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/shells/bash-completion/work/bash-completion-2.11'
*** Error code 2


This is because "make install" invokes gmake in the "completions" directory,
which contains a file named "gmake". The file is not executable and would n=
ot
be considered normally, but qemu-user-static does not care and attempts to =
use
it anyway.

Fix: Override MAKE_CMD in the port Makefile with the full path to gmake ins=
tead
of the bare name that USES=3Dgmake sets it to.

An alternative would be to exclude the gmake completions entirely.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248829-7788>