Dan Nicholson wrote:

> > This seems to be a workaround for this problem:
> >
> > export INSTALL_USER=root
> > export INSTALL_GROUP=root
> > sed -i '/autoconf/d' Makefile
> > make DEBUG=-DNDEBUG
> > (...)
> > unset INSTALL_USER INSTALL_GROUP
>
> Usually the way you handle setting variables in Makefiles is by
> passing them as an argument. So, you'd do
>
> make DEBUG=-DNDEBUG INSTALL_USER=root INSTALL_GROUP=root

Yes, this is a simpler way to workaround the problem.
I have just noticed the presence of a debian dir in xfsprogs package
and in debian/rules you can read this:

options = export DEBUG=-DNDEBUG DISTRIBUTION=debian \
          INSTALL_USER=root INSTALL_GROUP=root \
          LOCAL_CONFIGURE_OPTIONS=--enable-readline=yes ;
diopts  = $(options) \
          export OPTIMIZER=-Os LOCAL_CONFIGURE_OPTIONS="--enable-gettext=no" ;

It seems that they used this method also to pass the switch --enable-readline
to configure and to disable gettext.
According with ./configure --help the available options are:

--enable-shared=yes/no Enable use of shared libraries default=yes
--enable-gettext=yes/no Enable alternate language support default=yes
--enable-readline=yes/no Enable readline command editing default=no
--enable-editline=yes/no Enable editline command editing default=no
--enable-termcap=yes/no Enable terminal capabilities library default=no

So, for example to pass the switch for enable readline you can do this:

make DEBUG=-DNDEBUG INSTALL_USER=root INSTALL_GROUP=root \
LOCAL_CONFIGURE_OPTIONS="--enable-readline=yes"

> Thanks. Could you do me a favor and add these notes to the bug for
> updating to the most recent xfsprogs?
>
> http://wiki.linuxfromscratch.org/blfs/ticket/2028

I can try, but please check that is done correctly.
(Including my rusty english :-) )

Alessandro
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to