X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=VaAwjZM R+hB0lJI9UNHI1f+w9tAqsLIFTLV4cYUs5v3Oh5J83vLVr8hUHtwmsjVQlc2eAEJ oAWA0Aa3jBIIirT+oj12RpMcUN8Tve0Kd074Wa70ka7YaJmRMjxhNndUexfOr+Kz Eh44eewjfIkFbd4Oa/Y2vTd3usljEobr1neo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=sbrk4dqKUx12X SaOlBPs+g3Bg3I=; b=QUC/QCyMveUwhk4FeFRJQ/u71VinHZUYRMRtfZzW61klp ytSNRRF/9Ycy62rNTHBhZdHyXxTRc6Xwzm+UE9emmWP2M52UuJVwk5Y58z0/rnln uhcCTCCxgdHApgzyMytjsgGEjczsPs9Ht6GflQ6ijGUwNYWm5pSlso65HoqTOE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f46.google.com X-Received: by 10.60.227.233 with SMTP id sd9mr2552675oec.52.1392256033233; Wed, 12 Feb 2014 17:47:13 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <150738467.20140213025855@mtu-net.ru> References: <150738467 DOT 20140213025855 AT mtu-net DOT ru> From: Michael Verrilli Date: Wed, 12 Feb 2014 20:46:58 -0500 Message-ID: Subject: Re: newt-0.52.16 patches for Cygwin To: Andrey Repin Content-Type: multipart/mixed; boundary=001a1136843e4cd78504f23fde1f X-IsSubscribed: yes --001a1136843e4cd78504f23fde1f Content-Type: text/plain; charset=UTF-8 Ok, I'll try to figure out the NLS support. (Post edit, read the end if you don't care about how I got there, it's resolved). I never really got into building configure scripts, but this is what I'm seeing... When I run configure, I see: checking for gettext in -lc... no checking for gettext in -lintl... no and in configure.ac, I see: AC_ARG_ENABLE([nls], [ --disable-nls compile without NLS support]) if test "x$enable_nls" != "xno"; then AC_CHECK_LIB([c], [gettext], [ ], [ AC_CHECK_LIB([intl], [gettext], [ LIBS="-lintl" AC_SUBST([LIBS])], [ if test "x$enable_nls" != "xcheck"; then AC_MSG_FAILURE([--enable-nls was specified, but the configure check failed]) else enable_nls=no fi ]) ]) if test "x$enable_nls" != "xno"; then AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled]) fi fi It looks to me like... if c.gettext does not exist, check if intl.gettext exists. If that exists, add intl to the lib list, otherwise throw the error I am getting. I would have thought it would detect it in intl, since that is installed. But looking in the cygwin installer, I noticed gettext-0.18.1.1-3 lib. I installed that and the problem is now resolved, only the standard config options for Cygwin are required, thanks for pointing this out. So this would be another dependency in addition to slang (and please let me know if I am doing this wrong, I have a C background from almost 2 decades ago and I'm pretty good with linux but I'm way rusty and out of date). ;-) I also included the patch in case anyone wants to review it and tell me if I am doing something bad. Thanks! On Wed, Feb 12, 2014 at 5:58 PM, Andrey Repin wrote: > Greetings, Michael Verrilli! > >> I have been wanting to write some python using the newt (snack) >> module, so I managed to get it to compile pretty cleanly with some >> minor patching. Is it appropriate for me to submit patches here for >> whoever else might have a need? Or should I try to contact the >> maintainer? > > Depends on the nature of the patches, I say. > If the change is beneficial for a wide audience, it is quite apparent, that > the changes should go upstream. > >> This is the tarball I started with: >> https://fedorahosted.org/releases/n/e/newt/newt-0.52.16.tar.gz > >> I have a patch for the snackmodule.c to allow runtime initializing (4 >> lines of code). Then I needed a bootstrap module (I'm not sure why I >> needed it if it wasn't needed in linux, perhaps I just don't know how >> that works in other environments). Finally a patch to the Makefile.in >> to make it work with Cygwin and install the bootstrap python module. > >> The only other thing to know is when running configure with all the >> standard Cygwin parameters, I needed to --disable-nls. > > Mmm... how much implication this thing cause in reality? > Disabling NLS support doesn't sound too right for me. > >> Oh, and it has a dependency on slang. > >> If patches are appropriate here, let me know and I'll post what I have. > > > -- > WBR, > Andrey Repin (anrdaemon AT yandex DOT ru) 13.02.2014, <02:56> > > Sorry for my terrible english... > --001a1136843e4cd78504f23fde1f Content-Type: application/octet-stream; name="patch.newt-cygwin" Content-Disposition: attachment; filename="patch.newt-cygwin" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hrld54l90 LS0tIE1ha2VmaWxlLmluCTIwMTMtMDgtMDYgMTE6NDY6NDIuMDAwMDAwMDAw IC0wNDAwCisrKyBNYWtlZmlsZS5pbgkyMDE0LTAyLTEyIDE4OjA0OjE2LjI1 MTg2NDEwMCAtMDUwMApAQCAtNTIsNiArNTIsMTAgQEAKIHBrZ2NvbmZpZ2Rp ciA9ICQobGliZGlyKS9wa2djb25maWcKIGluc3Ryb290ID89ICQoREVTVERJ UikKIAoraWZlcSAoJChpbnN0cm9vdCksKQoraW5zdHJvb3QgPSAvLgorZW5k aWYKKwogIy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t CiAKIFNPVVJDRVMgPSAkKHN1YnN0IC5vLC5jLCQoVEVTVE9CSlMpICQoTkRJ QUxPR09CSlMpICQoTElCT0JKUykpCkBAIC05Nyw4ICsxMDEsOCBAQAogCQlQ TEZMQUdTPWAkJHB5Y29uZmlnIC0tbGlic2A7IFwKIAkJZWNobyAkKENDKSAk KFNIQ0ZMQUdTKSAkKENQUEZMQUdTKSAkJFBJRkxBR1MgJCRQQ0ZMQUdTIC1j IC1vICQkdmVyL3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3LDggQEAKIC8qIEludGVnZXIgdG8gcG9pbnRlciwgNjQtYml0LXNh bmUgKi8KICNkZWZpbmUgSTJQKHgpICgodm9pZCAqKShsb25nKSh4KSkKIAor I2RlZmluZSBERUZFUlJFRF9BRERSRVNTKEFERFIpIDAKKwogc3RhdGljIHN0 cnVjdCBjYWxsYmFja1N0cnVjdCBzdXNwZW5kOwogc3RhdGljIHN0cnVjdCBj YWxsYmFja1N0cnVjdCBoZWxwQ2FsbGJhY2s7CiAKQEAgLTEyMyw3ICsxMjUs NyBAQAogfTsKIAogc3RhdGljIFB5VHlwZU9iamVjdCBzbmFja0dyaWRUeXBl ID0gewotICAgICAgICBQeU9iamVjdF9IRUFEX0lOSVQoJlB5VHlwZV9UeXBl KQorICAgICAgICBQeU9iamVjdF9IRUFEX0lOSVQoREVGRVJSRURfQUREUkVT UygmUHlUeXBlX1R5cGUpKQogICAgICAgICAwLCAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIC8qIG9iX3NpemUgKi8KICAgICAgICAgInNuYWNrZ3Jp ZCIsICAgICAgICAgICAgICAgICAgICAvKiB0cF9uYW1lICovCiAgICAgICAg IHNpemVvZihzbmFja0dyaWQpLCAgICAgICAgICAgICAgLyogdHBfc2l6ZSAq LwpAQCAtMTY1LDcgKzE2Nyw3IEBACiB9OwogCiBzdGF0aWMgUHlUeXBlT2Jq ZWN0IHNuYWNrRm9ybVR5cGUgPSB7Ci0gICAgICAgIFB5T2JqZWN0X0hFQURf SU5JVCgmUHlUeXBlX1R5cGUpCisgICAgICAgIFB5T2JqZWN0X0hFQURfSU5J VChERUZFUlJFRF9BRERSRVNTKCZQeVR5cGVfVHlwZSkpCiAgICAgICAgIDAs ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLyogb2Jfc2l6ZSAqLwog ICAgICAgICAic25hY2tmb3JtIiwgICAgICAgICAgICAgICAgICAgIC8qIHRw X25hbWUgKi8KICAgICAgICAgc2l6ZW9mKHNuYWNrRm9ybSksICAgICAgICAg ICAgICAvKiB0cF9zaXplICovCkBAIC0yNTYsNyArMjU4LDcgQEAKIH07CiAK IHN0YXRpYyBQeVR5cGVPYmplY3Qgc25hY2tXaWRnZXRUeXBlID0gewotICAg ICAgICBQeU9iamVjdF9IRUFEX0lOSVQoJlB5VHlwZV9UeXBlKQorICAgICAg ICBQeU9iamVjdF9IRUFEX0lOSVQoREVGRVJSRURfQUREUkVTUygmUHlUeXBl X1R5cGUpKQogICAgICAgICAwLCAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIC8qIG9iX3NpemUgKi8KICAgICAgICAgInNuYWNrd2lkZ2V0IiwgICAg ICAgICAgICAgICAgICAvKiB0cF9uYW1lICovCiAgICAgICAgIHNpemVvZihz bmFja1dpZGdldCksICAgICAgICAgICAgLyogdHBfc2l6ZSAqLwo= --001a1136843e4cd78504f23fde1f Content-Type: text/plain; charset=us-ascii -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --001a1136843e4cd78504f23fde1f--