* [LTP] [RFC] Remove {config.h,config.mk,features.mk,}.default ?
@ 2019-11-01 7:35 Petr Vorel
2019-11-04 5:40 ` Yang Xu
0 siblings, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2019-11-01 7:35 UTC (permalink / raw)
To: ltp
Hi,
I wonder if anybody uses include/config.h.default, include/mk/config.mk.default,
include/mk/features.mk.default. Is it their purpose for people who, for some
reason can't run ./configure? (I wonder who'd need it) Can we just drop them?
include/config.h.default is out of sync with include/config.h.in;
include/mk/config.mk.default and include/mk/features.mk.default are synced.
Kind regards,
Petr
^ permalink raw reply [flat|nested] 4+ messages in thread* [LTP] [RFC] Remove {config.h,config.mk,features.mk,}.default ?
2019-11-01 7:35 [LTP] [RFC] Remove {config.h,config.mk,features.mk,}.default ? Petr Vorel
@ 2019-11-04 5:40 ` Yang Xu
2019-11-04 6:23 ` Petr Vorel
0 siblings, 1 reply; 4+ messages in thread
From: Yang Xu @ 2019-11-04 5:40 UTC (permalink / raw)
To: ltp
on 2019/11/01 15:35, Petr Vorel wrote:
> Hi,
>
> I wonder if anybody uses include/config.h.default, include/mk/config.mk.default,
> include/mk/features.mk.default. Is it their purpose for people who, for some
> reason can't run ./configure? (I wonder who'd need it) Can we just drop them?
Hi Petr
Yes. Reading LTP/INSTALL[1], these files are used when we don't use autoconf.
as below:
Using autoconf (preferred):
$ make autotools # This must be run from "$TOP_SRCDIR"!
$ test -d "$TOP_BUILDDIR" || mkdir -p "$TOP_BUILDDIR"
$ cd "$TOP_BUILDDIR" && "$TOP_SRCDIR/configure" \
# [configure args go here, e.g. CC=$CC, LDFLAGS=$LDFLAGS, etc]
Not using autoconf:
$ test -d "$TOP_BUILDDIR" || mkdir -p "$TOP_BUILDDIR"
$ cp "$TOP_SRCDIR/include/config.h.default" \
"$TOP_BUILDDIR/include/config.h"
$ cp "$TOP_SRCDIR/include/mk/config.mk.default" \
"$TOP_BUILDDIR/include/mk/config.mk"
$ cp "$TOP_SRCDIR/include/mk/features.mk.default" \
"$TOP_BUILDDIR/include/mk/features.mk"
[1]https://github.com/linux-test-project/ltp/blob/master/INSTAL
ps:IMO, I don't use these files. Now most distributions have auotconf and we can remove these files.
Thanks
Yang Xu
>
> include/config.h.default is out of sync with include/config.h.in;
> include/mk/config.mk.default and include/mk/features.mk.default are synced.
>
> Kind regards,
> Petr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20191104/fa15eda5/attachment.htm>
^ permalink raw reply [flat|nested] 4+ messages in thread* [LTP] [RFC] Remove {config.h,config.mk,features.mk,}.default ?
2019-11-04 5:40 ` Yang Xu
@ 2019-11-04 6:23 ` Petr Vorel
2019-11-04 6:52 ` Enji Cooper
0 siblings, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2019-11-04 6:23 UTC (permalink / raw)
To: ltp
Hi Xu,
> Yes. Reading LTP/INSTALL[1], these files are used when we don't use autoconf.
> as below:
> Using autoconf (preferred):
> $ make autotools # This must be run from "$TOP_SRCDIR"!
> $ test -d "$TOP_BUILDDIR" || mkdir -p "$TOP_BUILDDIR"
> $ cd "$TOP_BUILDDIR" && "$TOP_SRCDIR/configure" \
> # [configure args go here, e.g. CC=$CC, LDFLAGS=$LDFLAGS, etc]
> Not using autoconf:
> $ test -d "$TOP_BUILDDIR" || mkdir -p "$TOP_BUILDDIR"
> $ cp "$TOP_SRCDIR/include/config.h.default" \
> "$TOP_BUILDDIR/include/config.h"
> $ cp "$TOP_SRCDIR/include/mk/config.mk.default" \
> "$TOP_BUILDDIR/include/mk/config.mk"
> $ cp "$TOP_SRCDIR/include/mk/features.mk.default" \
> "$TOP_BUILDDIR/include/mk/features.mk"
> [1]https://github.com/linux-test-project/ltp/blob/master/INSTAL
> ps:IMO, I don't use these files. Now most distributions have auotconf and we can remove these files.
Thanks for review, I'll send a patch to ML.
> Thanks
> Yang Xu
Kind regards,
Petr
^ permalink raw reply [flat|nested] 4+ messages in thread* [LTP] [RFC] Remove {config.h,config.mk,features.mk,}.default ?
2019-11-04 6:23 ` Petr Vorel
@ 2019-11-04 6:52 ` Enji Cooper
0 siblings, 0 replies; 4+ messages in thread
From: Enji Cooper @ 2019-11-04 6:52 UTC (permalink / raw)
To: ltp
Hi all,
> On Nov 3, 2019, at 22:23, Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi Xu,
>
>> Yes. Reading LTP/INSTALL[1], these files are used when we don't use autoconf.
>> as below:
>> Using autoconf (preferred):
>> $ make autotools # This must be run from "$TOP_SRCDIR"!
>> $ test -d "$TOP_BUILDDIR" || mkdir -p "$TOP_BUILDDIR"
>> $ cd "$TOP_BUILDDIR" && "$TOP_SRCDIR/configure" \
>> # [configure args go here, e.g. CC=$CC, LDFLAGS=$LDFLAGS, etc]
>
>> Not using autoconf:
>
>> $ test -d "$TOP_BUILDDIR" || mkdir -p "$TOP_BUILDDIR"
>> $ cp "$TOP_SRCDIR/include/config.h.default" \
>> "$TOP_BUILDDIR/include/config.h"
>> $ cp "$TOP_SRCDIR/include/mk/config.mk.default" \
>> "$TOP_BUILDDIR/include/mk/config.mk"
>> $ cp "$TOP_SRCDIR/include/mk/features.mk.default" \
>> "$TOP_BUILDDIR/include/mk/features.mk"
>
>> [1]https://github.com/linux-test-project/ltp/blob/master/INSTAL
>
>> ps:IMO, I don't use these files. Now most distributions have auotconf and we can remove these files.
> Thanks for review, I'll send a patch to ML.
The reason for having a non-autoconf path is purely legacy now (like 6-10+ years ago). I vote for axing the support.
Thanks,
-Enji
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-11-04 6:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-01 7:35 [LTP] [RFC] Remove {config.h,config.mk,features.mk,}.default ? Petr Vorel
2019-11-04 5:40 ` Yang Xu
2019-11-04 6:23 ` Petr Vorel
2019-11-04 6:52 ` Enji Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox