Opened 18 years ago

Closed 18 years ago

#1679 closed defect (wontfix)

bash build with configure options to replace edit Makefile

Reported by: brandon_peirce@… Owned by: lfs-book@…
Priority: low Milestone:
Component: Book Version: 6.1.1
Severity: minor Keywords:
Cc:

Description

Ch 6.37.1. Installation of Bash uses sed to hack a htmldir into Makefile.in. Rather just use htmldir=... on the configure command like so: ./configure htmldir=/usr/share/doc/bash-3.0 --prefix=/usr --bindir=/bin \

--without-bash-malloc --with-installed-readline

This correctly sets htmldir in Makefile and doc/Makefile (have verified).

It would be a big help to those of us building with read-only sources who patch the sources only when essential and unavoidable...

Change History (4)

comment:1 by ken@…, 18 years ago

I'll test this in my current svn build, and I can see that this is more elegant

than using a sed.

But, if you mean that the sources are already extracted on a r/o filesystem,

that sounds like a major variation from the book, so I suspect you have to alter a lot more than just this one instruction.

comment:2 by brandon_peirce@…, 18 years ago

(In reply to comment #1)

that sounds like a major variation from the book, so I suspect you have to alter a lot more than just this one instruction.

Your suspicions are correct, but I submitted believing the approach was nevertheless valid and useful to current LFS. Obviously it should be tested on a standard build setup. BTW, whenever LFS goes that way, the same approach works for bash 3.1

comment:3 by ken@…, 18 years ago

Status: newassigned

Yes, I'm testing with 3.1 in svn. I can't imagine we would ever apply this to

6.1.1 as an errata. I've got to retest (for other reasons) with yesterday's utf8 changes, then I'll put this into svn.

comment:4 by ken@…, 18 years ago

Resolution: wontfix
Status: assignedclosed

Sorry, I'm not going to do this. The wording in the book is quite clear that

installing the documentation is optional. Building with ./configure htmldir=/usr/share/doc/bash-3.1 --prefix... will work even if the documentation hasn't been extracted, BUT in that case it will create an empty /usr/share/doc/bash-3.1 directory - I regard that as a bad thing.

We really don't want to get into alternative sets of configure instructions,

nor into something which could facilitate people who downloaded the docs NOT installing them. The sed works.

Note: See TracTickets for help on using tickets.