* sanitize.py
@ 2006-09-10 23:49 Jamie Lenehan
2006-09-11 4:10 ` sanitize.py cyril Romain
2006-09-11 22:09 ` sanitize.py cyril Romain
0 siblings, 2 replies; 5+ messages in thread
From: Jamie Lenehan @ 2006-09-10 23:49 UTC (permalink / raw)
To: openembedded-devel
Nice work on sanitize.py, I like it!
Here's a few things I'd like to see changed:
* For initscripts the order should be:
INITSCRIPT_PACKAGES
INITSCRIPT_NAME
INITSCRIPT_PARAMS
since the PACKAGES lists which packages we are going to have
initscripts for while the NAME and PARAMS are repeated for each one
of those packages, like this:
# Main init script starts all deamons
# Seperate init script for watchquagga
INITSCRIPT_PACKAGES = "${PN} ${PN}-watchquagga"
INITSCRIPT_NAME_${PN} = "quagga"
INITSCRIPT_PARAMS_${PN} = "defaults 15 85"
INITSCRIPT_NAME_${PN}-watchquagga = "watchquagga"
INITSCRIPT_PARAMS_${PN}-watchquagga = "defaults 90 10"
Also it seems to split these up when they probably should be kept
together. ie, the above currently comes out as this:
INITSCRIPT_NAME_${PN} = "quagga"
INITSCRIPT_NAME_${PN}-watchquagga = "watchquagga"
# Main init script starts all deamons
# Seperate init script for watchquagga
INITSCRIPT_PACKAGES = "${PN} ${PN}-watchquagga"
INITSCRIPT_PARAMS_${PN} = "defaults 15 85"
INITSCRIPT_PARAMS_${PN}-watchquagga = "defaults 90 10"
* For alternatives the order should be:
ALTERNATIVE_NAME
ALTERNATIVE_PATH
ALTERNATIVE_LINK
ALTERNATIVE_PRIORITY
since NAME and PATH are required while LINK and PRIORITY are
optional. I think it's better to always have the two required entries
first and then the optional ones, like this:
ALTERNATIVE_NAME = "awk"
ALTERNATIVE_PATH = "gawk"
ALTERNATIVE_LINK = "${bindir}/awk"
ALTERNATIVE_PRIORITY = "100"
It also splits these up and they should probably be kept together as
well. ie, the above currently comes out as this:
ALTERNATIVE_LINK = "${bindir}/awk"
ALTERNATIVE_NAME = "awk"
ALTERNATIVE_PATH = "gawk"
ALTERNATIVE_PRIORITY = "100"
* It doesn't know about the PKG variable (the name of the package,
used to prevent debian.bbclass from changing the name to an
internal shared library name.):
## Warning: unknown variable/routine "PKG_${PN}-ospfd = ${PN}-ospfd"
## Warning: unknown variable/routine "PKG_${PN}-ospfclient = ${PN}-ospfclient"
* It doesn't know about pre/post rm/install scripts (maybe it's not
meant to?):
## Warning: unknown variable/routine "pkg_prerm_${PN} () {"
## Warning: unknown variable/routine " ${sysconfdir}/init.d/quagga stop"
## Warning: unknown variable/routine "}"
## Warning: unknown variable/routine "pkg_prerm_${PN}-ospfd () {"
## Warning: unknown variable/routine " ${sysconfdir}/init.d/quagga stop ospfd"
## Warning: unknown variable/routine "}"
--
Jamie Lenehan <lenehan@twibble.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sanitize.py
2006-09-10 23:49 sanitize.py Jamie Lenehan
@ 2006-09-11 4:10 ` cyril Romain
2006-09-11 22:09 ` sanitize.py cyril Romain
1 sibling, 0 replies; 5+ messages in thread
From: cyril Romain @ 2006-09-11 4:10 UTC (permalink / raw)
To: Using the OpenEmbedded metadata to build Linux Distributions
Jamie Lenehan wrote:
> Nice work on sanitize.py, I like it!
>
> Here's a few things I'd like to see changed:
>
> * For initscripts the order should be:
>
> <snip>
>
> * It doesn't know about pre/post rm/install scripts (maybe it's not
> meant to?):
>
> ## Warning: unknown variable/routine "pkg_prerm_${PN} () {"
> ## Warning: unknown variable/routine " ${sysconfdir}/init.d/quagga stop"
> ## Warning: unknown variable/routine "}"
> ## Warning: unknown variable/routine "pkg_prerm_${PN}-ospfd () {"
> ## Warning: unknown variable/routine " ${sysconfdir}/init.d/quagga stop ospfd"
> ## Warning: unknown variable/routine "}"
>
>
Hi Jamie,
Thanks you for your feedback.
I'll work on that asap and keep in touch with you.
FYI, the sanitize script script is going to be part of the bittest
content_checker.
Stay tuned,
Cyril
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sanitize.py
2006-09-10 23:49 sanitize.py Jamie Lenehan
2006-09-11 4:10 ` sanitize.py cyril Romain
@ 2006-09-11 22:09 ` cyril Romain
2006-09-11 22:19 ` sanitize.py cyril Romain
1 sibling, 1 reply; 5+ messages in thread
From: cyril Romain @ 2006-09-11 22:09 UTC (permalink / raw)
To: Using the OpenEmbedded metadata to build Linux Distributions
[-- Attachment #1: Type: text/plain, Size: 3401 bytes --]
Hi Jamie,
Jamie Lenehan wrote:
> Nice work on sanitize.py, I like it!
>
> Here's a few things I'd like to see changed:
>
> * For initscripts the order should be:
>
> INITSCRIPT_PACKAGES
> INITSCRIPT_NAME
> INITSCRIPT_PARAMS
>
> since the PACKAGES lists which packages we are going to have
> initscripts for while the NAME and PARAMS are repeated for each one
> of those packages, like this:
>
> # Main init script starts all deamons
> # Seperate init script for watchquagga
> INITSCRIPT_PACKAGES = "${PN} ${PN}-watchquagga"
> INITSCRIPT_NAME_${PN} = "quagga"
> INITSCRIPT_PARAMS_${PN} = "defaults 15 85"
> INITSCRIPT_NAME_${PN}-watchquagga = "watchquagga"
> INITSCRIPT_PARAMS_${PN}-watchquagga = "defaults 90 10"
>
>
Corrected!
> Also it seems to split these up when they probably should be kept
> together. ie, the above currently comes out as this:
>
> INITSCRIPT_NAME_${PN} = "quagga"
> INITSCRIPT_NAME_${PN}-watchquagga = "watchquagga"
>
> # Main init script starts all deamons
> # Seperate init script for watchquagga
> INITSCRIPT_PACKAGES = "${PN} ${PN}-watchquagga"
>
> INITSCRIPT_PARAMS_${PN} = "defaults 15 85"
> INITSCRIPT_PARAMS_${PN}-watchquagga = "defaults 90 10"
>
>
>
Corrected!
> * For alternatives the order should be:
>
> ALTERNATIVE_NAME
> ALTERNATIVE_PATH
> ALTERNATIVE_LINK
> ALTERNATIVE_PRIORITY
>
> since NAME and PATH are required while LINK and PRIORITY are
> optional. I think it's better to always have the two required entries
> first and then the optional ones, like this:
>
> ALTERNATIVE_NAME = "awk"
> ALTERNATIVE_PATH = "gawk"
> ALTERNATIVE_LINK = "${bindir}/awk"
> ALTERNATIVE_PRIORITY = "100"
>
>
Corrected!
> It also splits these up and they should probably be kept together as
> well. ie, the above currently comes out as this:
>
> ALTERNATIVE_LINK = "${bindir}/awk"
>
> ALTERNATIVE_NAME = "awk"
>
> ALTERNATIVE_PATH = "gawk"
>
> ALTERNATIVE_PRIORITY = "100"
>
>
>
Corrected!
> * It doesn't know about the PKG variable (the name of the package,
> used to prevent debian.bbclass from changing the name to an
> internal shared library name.):
>
> ## Warning: unknown variable/routine "PKG_${PN}-ospfd = ${PN}-ospfd"
> ## Warning: unknown variable/routine "PKG_${PN}-ospfclient = ${PN}-ospfclient"
>
>
PKG key added!
> * It doesn't know about pre/post rm/install scripts (maybe it's not
> meant to?):
>
> ## Warning: unknown variable/routine "pkg_prerm_${PN} () {"
> ## Warning: unknown variable/routine " ${sysconfdir}/init.d/quagga stop"
> ## Warning: unknown variable/routine "}"
> ## Warning: unknown variable/routine "pkg_prerm_${PN}-ospfd () {"
> ## Warning: unknown variable/routine " ${sysconfdir}/init.d/quagga stop ospfd"
> ## Warning: unknown variable/routine "}"
>
>
Corrected! (pkg pre rm/install were missing)
In attachment the new version of sanitize.py. Among the above
corrections, it handles more cases so it is less buggy for sure.
I send it to you as a patch. Can anyone please commit the patch ? (sorry
to ask but I don't have right to commit)
Thank you for pointing that out :-)
Best regards,
Cyril
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sanitize.py
2006-09-11 22:09 ` sanitize.py cyril Romain
@ 2006-09-11 22:19 ` cyril Romain
2006-09-11 23:51 ` sanitize.py Jamie Lenehan
0 siblings, 1 reply; 5+ messages in thread
From: cyril Romain @ 2006-09-11 22:19 UTC (permalink / raw)
To: Using the OpenEmbedded metadata to build Linux Distributions
[-- Attachment #1: Type: text/plain, Size: 3919 bytes --]
Another try for the attachment: the script itself this time.
cyril Romain wrote:
> Hi Jamie,
>
> Jamie Lenehan wrote:
>> Nice work on sanitize.py, I like it!
>>
>> Here's a few things I'd like to see changed:
>>
>> * For initscripts the order should be:
>>
>> INITSCRIPT_PACKAGES
>> INITSCRIPT_NAME
>> INITSCRIPT_PARAMS
>>
>> since the PACKAGES lists which packages we are going to have
>> initscripts for while the NAME and PARAMS are repeated for each one
>> of those packages, like this:
>>
>> # Main init script starts all deamons
>> # Seperate init script for watchquagga
>> INITSCRIPT_PACKAGES = "${PN} ${PN}-watchquagga"
>> INITSCRIPT_NAME_${PN} = "quagga"
>> INITSCRIPT_PARAMS_${PN} = "defaults 15 85"
>> INITSCRIPT_NAME_${PN}-watchquagga = "watchquagga"
>> INITSCRIPT_PARAMS_${PN}-watchquagga = "defaults 90 10"
>>
>>
> Corrected!
>> Also it seems to split these up when they probably should be kept
>> together. ie, the above currently comes out as this:
>>
>> INITSCRIPT_NAME_${PN} = "quagga"
>> INITSCRIPT_NAME_${PN}-watchquagga = "watchquagga"
>>
>> # Main init script starts all deamons
>> # Seperate init script for watchquagga
>> INITSCRIPT_PACKAGES = "${PN} ${PN}-watchquagga"
>>
>> INITSCRIPT_PARAMS_${PN} = "defaults 15 85"
>> INITSCRIPT_PARAMS_${PN}-watchquagga = "defaults 90 10"
>>
>>
>>
> Corrected!
>> * For alternatives the order should be:
>>
>> ALTERNATIVE_NAME
>> ALTERNATIVE_PATH
>> ALTERNATIVE_LINK
>> ALTERNATIVE_PRIORITY
>>
>> since NAME and PATH are required while LINK and PRIORITY are
>> optional. I think it's better to always have the two required entries
>> first and then the optional ones, like this:
>>
>> ALTERNATIVE_NAME = "awk"
>> ALTERNATIVE_PATH = "gawk"
>> ALTERNATIVE_LINK = "${bindir}/awk"
>> ALTERNATIVE_PRIORITY = "100"
>>
>>
> Corrected!
>> It also splits these up and they should probably be kept together as
>> well. ie, the above currently comes out as this:
>>
>> ALTERNATIVE_LINK = "${bindir}/awk"
>>
>> ALTERNATIVE_NAME = "awk"
>>
>> ALTERNATIVE_PATH = "gawk"
>>
>> ALTERNATIVE_PRIORITY = "100"
>>
>>
>>
> Corrected!
>> * It doesn't know about the PKG variable (the name of the package,
>> used to prevent debian.bbclass from changing the name to an
>> internal shared library name.):
>>
>> ## Warning: unknown variable/routine "PKG_${PN}-ospfd =
>> ${PN}-ospfd"
>> ## Warning: unknown variable/routine "PKG_${PN}-ospfclient =
>> ${PN}-ospfclient"
>>
>>
> PKG key added!
>> * It doesn't know about pre/post rm/install scripts (maybe it's not
>> meant to?):
>>
>> ## Warning: unknown variable/routine "pkg_prerm_${PN} () {"
>> ## Warning: unknown variable/routine "
>> ${sysconfdir}/init.d/quagga stop"
>> ## Warning: unknown variable/routine "}"
>> ## Warning: unknown variable/routine "pkg_prerm_${PN}-ospfd () {"
>> ## Warning: unknown variable/routine "
>> ${sysconfdir}/init.d/quagga stop ospfd"
>> ## Warning: unknown variable/routine "}"
>>
>>
> Corrected! (pkg pre rm/install were missing)
>
> In attachment the new version of sanitize.py. Among the above
> corrections, it handles more cases so it is less buggy for sure.
> I send it to you as a patch. Can anyone please commit the patch ?
> (sorry to ask but I don't have right to commit)
>
> Thank you for pointing that out :-)
>
> Best regards,
>
> Cyril
> ------------------------------------------------------------------------
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sanitize.py
2006-09-11 22:19 ` sanitize.py cyril Romain
@ 2006-09-11 23:51 ` Jamie Lenehan
0 siblings, 0 replies; 5+ messages in thread
From: Jamie Lenehan @ 2006-09-11 23:51 UTC (permalink / raw)
To: openembedded-devel
On Tue, Sep 12, 2006 at 12:19:25AM +0200, cyril Romain wrote:
> Another try for the attachment: the script itself this time.
It doesn't seem to be making though the list!
I've tested and submitted this version now though.
The changelog is all mine, so blame me for what that says!
It's working much better on some of my recipes now!
Thanks.
--
Jamie Lenehan <lenehan@twibble.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-09-11 23:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-10 23:49 sanitize.py Jamie Lenehan
2006-09-11 4:10 ` sanitize.py cyril Romain
2006-09-11 22:09 ` sanitize.py cyril Romain
2006-09-11 22:19 ` sanitize.py cyril Romain
2006-09-11 23:51 ` sanitize.py Jamie Lenehan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.