Bug 14813 - gawk wont build -- datadir, libexecdir
Summary: gawk wont build -- datadir, libexecdir
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: gawk
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Florian La Roche
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-07-28 17:05 UTC by Michael Tokarev
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-07-28 17:05:43 UTC
Embargoed:


Attachments (Terms of Use)

Description Michael Tokarev 2000-07-28 17:05:41 UTC
Two things. gawk-3.0.5-2

In gawk.spec:
  %configure --libexecdir=%{_libexecdir}/awk --datadir=%{_datadir}/awk
This cause gawk to use /usr/share/awk/awk and /usr/libexec/awk/awk dirs
instead of /usr/{share,libexec}/awk (note double last component).
This is in Makefile.in:
 datadir = @datadir@/awk
 libexecdir = @libexecdir@/awk

Also, in gawk.spec %files:
 %{_prefix}/libexec/awk
 %{_prefix}/share/awk
This should be %{_libexecdir}/awk and %{_datadir}/awk, respectively.

And also one comment.  Many programs (gawk is an example) uses
their own implementation of getopt and regex, and those are in
glibc already.  Should this be considered a (minor) bug?
In gawk, there is "LIBOBJS = getopt.o getopt1.o regex.o" in
Makefile.in.  Maybe this should be "LIBOBJS=@LIBOBJS@" and
a test about regex/getopt in configure? (This is mainly to
gawk maintainers...)

Comment 1 Florian La Roche 2000-08-08 13:44:07 UTC
"configure"-part is fixed.

getopt*.o regex.o: they sometimes are compiled, but do not contain any code, so
there should
be some clever "#ifdef XXX" in the source...




Note You need to log in before you can comment on or make changes to this bug.