<div dir="ltr">Hi Peter,<br><br>I'll send V2 on monday with:<br>  - patch split<br>  - DEVELOPERS <br>  - fix indentation<br>  - sha256 sig<br>  - AUTORECONF removed<br><br>nsswitch.conf resolve hosts in entries order, so it is important that it resides after files and before the other entries.<br>Sed command comes from Yocto recipe <a href="https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb">https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb</a><br><br>Best regards,<br>Vincent<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-25 19:02 GMT+02:00 Peter Korsgaard <span dir="ltr"><<a href="mailto:peter@korsgaard.com" target="_blank">peter@korsgaard.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>>>>> "Vincent" == Vincent Prince <<a href="mailto:vincent.prince.fr@gmail.com">vincent.prince.fr@gmail.com</a>> writes:<br>
<br>
 > Also fix nss-mdns hook to work with nss-myhostname<br>
<br>
 > Signed-off-by: Vincent Prince <<a href="mailto:vincent.prince.fr@gmail.com">vincent.prince.fr@gmail.com</a>><br>
<br>
</span>Thanks for you contribution! Can you please split this in two patches,<br>
E.G. one to change nss-mdns and one to add nss-myhostname?<br>
<br>
Also please add an entries to the DEVELOPERS file and run<br>
./utils/check-package on your new files, I see a number of strange<br>
indentation issues.<br>
<br>
While you are at it, please also add a sha256 hash for the license file.<br>
<span class=""><br>
 > +<br>
 > +NSS_MYHOSTNAME_VERSION = 0.3<br>
 > +NSS_MYHOSTNAME_SITE = <a href="http://0pointer.de/lennart/projects/nss-myhostname" rel="noreferrer" target="_blank">http://0pointer.de/lennart/<wbr>projects/nss-myhostname</a><br>
 > +NSS_MYHOSTNAME_LICENSE = LGPL-2.1<br>
 > +NSS_MYHOSTNAME_LICENSE_FILES = LICENSE<br>
 > +NSS_MYHOSTNAME_AUTORECONF = YES<br>
<br>
</span>Why? Does the tarball not contain a configure script?<br>
<span class=""><br>
> +<br>
 > +define MYHOSTNAME_SET_NSSWITCH<br>
 > +    $(SED) '/^hosts:/s/\s*\<myhostname\>/<wbr>/' \<br>
 > +            -e 's/\(^hosts:.*\)\(\<files\>\)\<wbr>(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' -r $(TARGET_DIR)/etc/nsswitch.<wbr>conf<br>
 > +endef<br>
<br>
</span>Doesn't nss-myhostname just need to go to the end of the file?<br>
E.G. something like:<br>
<br>
     grep -qw myhostname $(TARGET_DIR)/etc/nsswwitch.<wbr>conf || \<br>
          $(SED) '/\(^hosts:.*\)/\1 myhostname/' $(TARGET_DIR)/etc/nsswitch.<wbr>conf<br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Bye, Peter Korsgaard<br>
</font></span></blockquote></div><br></div>