Bug 14813

Summary: gawk wont build -- datadir, libexecdir
Product: [Retired] Red Hat Raw Hide Reporter: Michael Tokarev <mjt>
Component: gawkAssignee: Florian La Roche <laroche>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-07-28 17:05:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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...