[Bug 313] New: Fix up Gawk install directory

bugzilla at linuxfromscratch.org bugzilla at linuxfromscratch.org
Sat Mar 16 08:16:59 PST 2002


http://bugs.linuxfromscratch.org/show_bug.cgi?id=313

           Summary: Fix up Gawk install directory
           Product: Linux From Scratch
           Version: CVS
          Platform: PC
               URL:
        OS/Version: Other
            Status: NEW
 Status Whiteboard:
          Keywords:
        Resolution:
          Severity: normal
          Priority: P3
         Component: Book
        AssignedTo: lfs-book at linuxfromscratch.org
        ReportedBy: gerard at linuxfromscratch.org


From: Erika Pacholleck <pchllck at nexgo.de>                                       
To: lfs-dev at linuxfromscratch.org                                                
Subject: gawk                                                                   
Date: Fri, 15 Mar 2002 17:59:30 +0100                                           

There needs to be an FHS note as far as I see:                                  
1. /usr/libexec is not compliant                                                
                                                                                
To accept the shared data in /usr/share/awk is not a good                       
choice as I see it. The general name awk should to my view                      
not be used where so many awk versions are "on the market",                     
what would for instance have happened if (assumption) our                       
previous mawk would have used the same way of just putting                      
shared data in awk under mawk -- we would have a mixture of                     
two different programs under a general name where at the                        
same time in /usr/bin we have a fixed link awk pointing to                      
one of them.                                                                    
Short: I think /usr/share/gawk is cleaner due to FHS general                    
line every package gets its own dir.                                            
                                                                                
I do this before configure:                                                     
cd awklib && sed \                                                              
  -e '^datadir/s/awk/gawk/'      \                                              
  -e '^libexedir/s/\/awk//'      \                                              
  Makefile.in > Makefile.in~     \                                              
  && mv Makefile.in~ Makefile.in \                                              
&& cd ..                                                                        
                                                                                
then configure + option --libexecdir=/usr/sbin (I know you                      
prefer bin) and nothing for datas, so I end up in                               
                                                                                
/usr/sbin/{gr,pw}cat                                                            
/usr/share/gawk/assert.awk ... round.awk                                        



--------


I'm not sure yet if I want it to be a seperate FHS note, or make it part of the
mandatory installation instructions. I don't like /usr/share/awk for the same
reasons and it makes a lot more sense to just change it in the main instructions
and make gawk a bit more sane.

Before we sed let's doublecheck we can't just pass a configure option (from the
looks of it we can't but double-check anyways, by the time we get around this a
new gawk may be out for all we know).
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message



More information about the lfs-book mailing list