Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 4988] New: flex and m4 problems
Date: Tue, 27 Mar 2012 09:38:06 +0000 (UTC)	[thread overview]
Message-ID: <bug-4988-163@https.bugs.busybox.net/> (raw)

https://bugs.busybox.net/show_bug.cgi?id=4988

           Summary: flex and m4 problems
           Product: buildroot
           Version: 2012.02
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: develop at kristov.de
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Created attachment 4196
  --> https://bugs.busybox.net/attachment.cgi?id=4196
adds BR2_PACKAGE_M4 as dependency

Hello,

there is a problem installing flex to the target area. flex ultimatively
depends on m4 at run-time (see [1]), but this is not accounted for in the
buildroot's flex.mk. Worse, the flex binary includes a fully qualified path to
the host area's m4 (see main.c and the use of the M4 define, set in config.h).
This is wrong for both flex installed to the staging area and flex installed to
the target area.

I attached three patches to solve these problems. The first patch
(Config.in.diff) adds BR2_PACKAGE_M4 to flex/Config.in. The second patch
(flex.mk.diff) uses the M4 environment variable to force the configure script
not to look for the host's m4 tool but to assume /usr/bin/m4. The last patch
(flex-2.5.35-fix-cross-compiling.patch) disables checking the features of the
cross m4 and it prevents the tools from being built as they reference the
target m4 tool in an incompatible way.

Regards,

Christoph Schulz

[1] http://flex.sourceforge.net/manual/M4-Dependency.html

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

             reply	other threads:[~2012-03-27  9:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27  9:38 bugzilla at busybox.net [this message]
2012-03-27  9:38 ` [Buildroot] [Bug 4988] flex and m4 problems bugzilla at busybox.net
2012-03-27  9:39 ` bugzilla at busybox.net
2013-05-26 14:13 ` bugzilla at busybox.net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-4988-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox