Ticket #185 (closed task: fixed)

Opened 6 years ago

Last modified 6 years ago

module-init-tools creates /share

Reported by: tobias Owned by: clfs-commits@…
Priority: minor Milestone: CLFS Standard 1.2.0
Component: BOOK Version: CLFS Standard GIT
Keywords: Cc:

Description

Due to configuration in this way:

CC="gcc ${BUILD64}" ./configure --prefix="/" \

--enable-zlib

module-init-tools creates /share/man for its man pages. Consider this additional configuration flag:

CC="gcc ${BUILD64}" ./configure --prefix="/" \

--datadir=/usr/share --enable-zlib

Change History

comment:1 in reply to: ↑ description Changed 6 years ago by chris@…

Replying to tobias:

Due to configuration in this way:

CC="gcc ${BUILD64}" ./configure --prefix="/" \

--enable-zlib

module-init-tools creates /share/man for its man pages. Consider this additional configuration flag:

CC="gcc ${BUILD64}" ./configure --prefix="/" \

--datadir=/usr/share --enable-zlib

The --datadir shouldn't be necessary. Check this code in Makefile.in...

mandir = $(shell if [ @mandir@ = $(prefix)/man ]; then if [ $(prefix) = / ]; then echo /usr/share/man; else echo $(prefix)/share/man; fi; else echo @mandir@; fi)

So, if it sees "--prefix=/" then it should set mandir=/usr/share/man.

In fact I know it does because I also have "--prefix=/ --enable-zlib" and no other configure options, and my manpages are in fact in /usr/share/man.

Although I do only have an x86 system so there could be some issue with 64-bit systems that I don't know about...

comment:2 Changed 6 years ago by chris@…

Whoops, sorry...looks like I was looking at an older copy of the book and didn't notice the updated module-init-tools version. The Makefile has been slightly edited, which does result in the creation of /share. Looks like it's due to the addition of ${datarootdir}, rather than just ${mandir}, that screws it up. The Makefile needs to be fixed...not sure how though...just overriding ${datarootdir} or ${datadir} will certainly work though.

Once again, apologies for my invalid comment above.

comment:3 Changed 6 years ago by jciccone

  • Status changed from new to closed
  • Resolution set to fixed

fixed in r4069.

Note: See TracTickets for help on using tickets.