ref-manual: add usage details about ccache.bbclass
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 16 lines · Michael Opdenacker via lists.yoctoproject.org
Signed-off-by Michael Opdenacker <[email protected]>--- documentation/ref-manual/classes.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)documentation/ref-manual/classes.rst +0
-3@@ -274,10 +274,15 @@ sstate re-use. In order to function, this class requires the The ``ccache`` class enables the C/C++ Compiler Cache for the build. This class is used to give a minor performance boost during the build. -However, using the class can lead to unexpected side-effects. Thus, it -is recommended that you do not use this class. See -https://ccache.samba.org/ for information on the C/C++ Compiler
documentation/ref-manual/classes.rst sstate re-use. In order to function, this class requires the · line 285
Quoted 10 lines
documentation/ref-manual/classes.rst +9
-1-Cache. + +See https://ccache.samba.org/ for information on the C/C++ Compiler +Cache, and the :oe_git:`ccache.bbclass </openembedded-core/tree/meta/classes/ccache.bbclass>` +file for details about how to enable this mechanism in your configuration +file, how to disable it for specific recipes, and how to share ``ccache`` +files between builds. + +However, using the class can lead to unexpected side-effects. Thus, using +this class is not recommended.
I guess it could be controversial to add usage details for a class that the manual recommends not to use. On the other hand, if we keep this class in oe-core, that must be because there are some people who still want to use it. Then, it makes sense to have usage details IMHO.
Any thoughts about this?
Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 18 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Michael Opdenacker via lists.yoctoproject.org
Sent: den 28 januari 2022 16:56
To: [email protected]
Subject: Re: [docs] [PATCH] ref-manual: add usage details about ccache.bbclassQuoted 11 lines · Michael Opdenacker via lists.yoctoproject.org
Signed-off-by Michael Opdenacker <[email protected]>--- documentation/ref-manual/classes.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)documentation/ref-manual/classes.rst +0
-0@@ -274,10 +274,15 @@ sstate re-use. In order to function, this class requires the
Quoted 15 lines
Quoted 5 lines
documentation/ref-manual/classes.rst +0
-3The ``ccache`` class enables the C/C++ Compiler Cache for the build. This class is used to give a minor performance boost during the build. -However, using the class can lead to unexpected side-effects. Thus, it -is recommended that you do not use this class. See -https://ccache.samba.org/ for information on the C/C++ Compilerdocumentation/ref-manual/classes.rst sstate re-use. In order to function, this class requires the · line 285
Quoted 10 lines
documentation/ref-manual/classes.rst +9
-1-Cache. + +See https://ccache.samba.org/ for information on the C/C++ Compiler +Cache, and the :oe_git:`ccache.bbclass </openembedded-core/tree/meta/classes/ccache.bbclass>` +file for details about how to enable this mechanism in your configuration +file, how to disable it for specific recipes, and how to share ``ccache`` +files between builds. + +However, using the class can lead to unexpected side-effects. Thus, using +this class is not recommended.
It would probably be a good idea then to explain what those unexpected side-effects are, or you leave the reader hanging. That way it easier to make an educated choice whether using the class is a good idea or not.
Quoted 9 lines
I guess it could be controversial to add usage details for a class that the manual recommends not to use. On the other hand, if we keep this class in oe-core, that must be because there are some people who still want to use it. Then, it makes sense to have usage details IMHO.
Any thoughts about this?
Cheers
Michael.
//Peter
Hi Peter,
Quoted 29 lines · Peter Kjellerstedt
Quoted 29 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Michael Opdenacker via lists.yoctoproject.org
Sent: den 28 januari 2022 16:56
To: [email protected]
Subject: Re: [docs] [PATCH] ref-manual: add usage details about ccache.bbclassQuoted 22 lines · Michael Opdenacker via lists.yoctoproject.org
Signed-off-by Michael Opdenacker <[email protected]>--- documentation/ref-manual/classes.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)documentation/ref-manual/classes.rst +5
-4@@ -274,10 +274,15 @@ sstate re-use. In order to function, this class requires the The ``ccache`` class enables the C/C++ Compiler Cache for the build. This class is used to give a minor performance boost during the build. -However, using the class can lead to unexpected side-effects. Thus, it -is recommended that you do not use this class. See -https://ccache.samba.org/ for information on the C/C++ Compiler -Cache. + +See https://ccache.samba.org/ for information on the C/C++ Compiler +Cache, and the :oe_git:`ccache.bbclass </openembedded-core/tree/meta/classes/ccache.bbclass>` +file for details about how to enable this mechanism in your configuration +file, how to disable it for specific recipes, and how to share ``ccache``
Quoted 8 lines
Quoted 4 lines
documentation/ref-manual/classes.rst sstate re-use. In order to function, this class requires the · line 285
Quoted 4 lines
documentation/ref-manual/classes.rst +4
-0+files between builds. + +However, using the class can lead to unexpected side-effects. Thus, using +this class is not recommended.It would probably be a good idea then to explain what those unexpected side-effects are, or you leave the reader hanging. That way it easier to make an educated choice whether using the class is a good idea or not.
Thanks for the review. Indeed, I was wondering too. If anyone has details about such issues, I'll be happy to mention them in the documentation.
Thanks in advance
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com