Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415371 - sys-apps/grep requires itself to build
Summary: sys-apps/grep requires itself to build
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-10 13:23 UTC by Hendrik v. Raven
Modified: 2012-05-10 20:16 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 Hendrik v. Raven 2012-05-10 13:23:03 UTC
grep requires uses tests during the configure phase requiring grep to work.
In case of an nonfunctional grep (p.ex. after a libpcre update destroying shared library linking) it's not possible to rebuild grep without itself. It could be replaced temporarily with busybox if available.

grep contains a Makefile.boot which is designed for that, but requires a handmade config.h to build and seems not very viable.

An option to bootstrap grep without grep (with a hacky perl script to emulate grep or something like that) or a bin version would be nice.

Reproducible: Always

Steps to Reproduce:
1. remove grep
2. emerge sys-apps/grep
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-05-10 13:45:24 UTC
It has been this way for years, regardless it is an upstream issue not a Gentoo Linux issue.
Comment 2 SpanKY gentoo-dev 2012-05-10 20:16:31 UTC
config.h doesn't seem to be the big issue, it's the bundled gnulib code.  feel free to hassle upstream grep about it, but we won't bother trying to fix this ourselves.

you can workaround the issue locally by doing:
  sudo ln -s /bin/busybox /bin/grep