Re: [PATCH] [RFC] Drop non-x86 debug .config files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 16, 2019 at 10:40 AM Paul Bolle <pebolle@xxxxxxxxxx> wrote:

> Justin Forbes schreef op wo 16-01-2019 om 10:17 [-0600]:
> > Absolutely not true.   Every rawhide build outside of direct rcX
> > builds are debug builds.  Stable releases don't use these files.
>
> But how do those builds hop past this snippet (in kernel.spec):
>     # don't do debug builds on anything but i686 and x86_64
>     %ifnarch i686 x86_64
>     %define with_debug 0
>     %endif
>
> Look at the references to debugbuildsenabled in kernel.spec.  Specifically
for non debug kernels, we build standard kernels and call
generate_all_configs.sh, and then x86 also builds a separate debug kernel.
This is toggled by 'make release' and 'make debug'  and you will see a
changelog entry for every time debug is turned on or off. Again, this only
tends to happen in rawhide.   For debug kernels (most rawhide kernels), all
kernels are debug kernels and we call generate_debug_configs.sh instead.
To save you having to look through them, here is the content of
generate_debug_configs.sh:

#!/bin/sh

for i in kernel-*debug.config; do
base=`echo $i | sed -r s/-?debug//g`
NEW=kernel-$VERSION-`echo $base | cut -d - -f2-`
mv $i $NEW
rm $base
done

The absolute only difference you will see in a build log, is for debug
kernels (approximately 80% of kernels built on rawhide) the logs show

+ cp /builddir/build/SOURCES/merge.pl .
+ cp /builddir/build/SOURCES/generate_all_configs.sh .
+ cp /builddir/build/SOURCES/generate_debug_configs.sh .
+ cp /builddir/build/SOURCES/generate_bls_conf.sh .
+ VERSION=5.0.0
+ ./generate_debug_configs.sh
+ for i in kernel-5.0.0-aarch64*.config
+ mv kernel-5.0.0-aarch64.config kernel-5.0.0-aarch64.config.tmp
+ ./merge.pl /builddir/build/SOURCES/kernel-local
kernel-5.0.0-aarch64.config.tmp
+ rm kernel-5.0.0-aarch64.config.tmp
+ rm -f 'kernel-5.0.0-*debug.config'
+ cp /builddir/build/SOURCES/process_configs.sh .
+ OPTS=
+ OPTS=' -n'
+ OPTS=' -n -c'
+ ./process_configs.sh -n -c kernel 5.0.0

And for non debug standard kernels across standard Fedora releases, or the
rcX-git0.1 kernels in rawhide:

+ cp /builddir/build/SOURCES/merge.pl .
+ cp /builddir/build/SOURCES/generate_all_configs.sh .
+ cp /builddir/build/SOURCES/generate_debug_configs.sh .
+ cp /builddir/build/SOURCES/generate_bls_conf.sh .
+ VERSION=5.0.0
+ ./generate_all_configs.sh
+ for i in kernel-5.0.0-aarch64*.config
+ mv kernel-5.0.0-aarch64-debug.config kernel-5.0.0-aarch64-debug.config.tmp
+ ./merge.pl /builddir/build/SOURCES/kernel-local
kernel-5.0.0-aarch64-debug.config.tmp
+ rm kernel-5.0.0-aarch64-debug.config.tmp
+ for i in kernel-5.0.0-aarch64*.config
+ mv kernel-5.0.0-aarch64.config kernel-5.0.0-aarch64.config.tmp
+ ./merge.pl /builddir/build/SOURCES/kernel-local
kernel-5.0.0-aarch64.config.tmp
+ rm kernel-5.0.0-aarch64.config.tmp
+ cp /builddir/build/SOURCES/process_configs.sh .
+ OPTS=
+ OPTS=' -n'
+ OPTS=' -n -c'
+ ./process_configs.sh -n -c kernel 5.0.0


> Anyway, I couldn't find a build on koji.f.o that uses one of these five
> files.
> Would you have a pointer to a build that does?
>
> https://koji.fedoraproject.org/koji/taskinfo?taskID=32066991 would be the
most recent. There are usually 4 a week on rawhide.  Though to save you
some trouble, the only relevant pieces from the logs are included above.

Justin

Thanks,
>
>
> Paul Bolle
> _______________________________________________
> kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
>
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux