All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugs at busybox.net <bugs@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [buildroot 0000788]: psmisc no longer builds
Date: Mon, 12 Feb 2007 05:46:38 -0800	[thread overview]
Message-ID: <108eb4ee70f3d4a32405b979236a1a10@bugs.busybox.net> (raw)


The following issue has been ASSIGNED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=788 
====================================================================== 
Reported By:                likewise
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   788
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             03-18-2006 13:43 PST
Last Modified:              02-12-2007 05:46 PST
====================================================================== 
Summary:                    psmisc no longer builds
Description: 
The shell scripting in the Makefile for psmisc tries to create signames.h
from signames.c through numerous shell commands. That works. The next
command does a sanity check for the HUP signal to appear in the resulting
signames.h. This grep errors with return code 1 (which invokes rm to
remove signames.h again). The Makefile errors out there with 'exit 1':

grep '^{ 1,"HUP" },$$' signames.h >/dev/null || \
                  { rm -f signames.h; exit 1; }


In my case, there is no space after the opening accolade '{' in the
signames.h file (fix 1).

Even then, grep will not match, only when I remove the $$ (EOL) marker.
This might as well be a grep 2.5.1 bug -- please test against other
systems.
====================================================================== 

---------------------------------------------------------------------- 
 likewise - 03-18-06 13:53  
---------------------------------------------------------------------- 
It's the line continuator (\) in the sed command that screws things up
(maybe a sed bug then??); it introduces a newline in the signames.h file.
---
signames.h: signames.c Makefile
               
/home/leon/sandbox/wrap/buildroot/build_i386/staging_dir/bin/i3$          
     tr -s '\t ' ' ' | sort -n -k 3 | sed \
        's:#define SIG\([A-Z]\+[0-9]*\) \([0-9]\+\) *\(\|/\*.*\)$$:{\
\2,"\1" },:p;d' | \
---

Putting it one a single line makes the build work again.

GNU sed version 4.1.4 

---------------------------------------------------------------------- 
 vapier - 03-19-06 00:52  
---------------------------------------------------------------------- 
the $$ is translated by make to just $ when calling grep

ive updated the version to 22.8 as it already has this issue fixed 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-18-06 13:43  likewise       New Issue                                    
03-18-06 13:43  likewise       Status                   new => assigned     
03-18-06 13:43  likewise       Assigned To               => uClibc          
03-18-06 13:53  likewise       Note Added: 0001187                          
03-19-06 00:52  vapier         Note Added: 0001188                          
03-19-06 00:52  vapier         Status                   assigned => closed  
03-19-06 00:52  vapier         Resolution               open => fixed       
02-12-07 05:46  vapier         Status                   closed => assigned  
02-12-07 05:46  vapier         Assigned To              uClibc => buildroot 
======================================================================

                 reply	other threads:[~2007-02-12 13:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=108eb4ee70f3d4a32405b979236a1a10@bugs.busybox.net \
    --to=bugs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.