public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* cygport package has one dependency missing
@ 2015-02-24  9:56 Marcos Vives Del Sol
  2015-02-27  6:24 ` Yaakov Selkowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Marcos Vives Del Sol @ 2015-02-24  9:56 UTC (permalink / raw)
  To: cygwin-apps

File "/usr/share/cygport/cygclass/autotools.cygclass" requires
"autopoint", which is part of "gettext-devel" package but it isn't
specified in the setup.hint, and therefore it doesn't get installed
when selecting "cygport".

I saw an error complaining about "missing autopoint", but I thought
the error was controlled. Apparently it wasn't. The output of
autopoint was used as parameters of "grep", and therefore with no
parameters effectively it was running grep on stdin instead.

I stood still looking at a black screen for around twenty minutes till
I noticed what was going on.

PS: I am not sure if this is the correct mailing list. IMHO it is
since it's not a package bug but a misconfigured setup.hint which is
part of the packaging.

-- 
Marcos Vives Del Sol
https://github.com/socram8888
miniLock: NscWdW8fh2E5SBoRtrnXWrDwmQmwaR5awMKE78tQW1Ffx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cygport package has one dependency missing
  2015-02-24  9:56 cygport package has one dependency missing Marcos Vives Del Sol
@ 2015-02-27  6:24 ` Yaakov Selkowitz
  2015-03-06 15:00   ` Jon TURNEY
  0 siblings, 1 reply; 3+ messages in thread
From: Yaakov Selkowitz @ 2015-02-27  6:24 UTC (permalink / raw)
  To: cygwin-apps

On Tue, 2015-02-24 at 10:55 +0100, Marcos Vives Del Sol wrote:
> File "/usr/share/cygport/cygclass/autotools.cygclass" requires
> "autopoint", which is part of "gettext-devel" package but it isn't
> specified in the setup.hint, and therefore it doesn't get installed
> when selecting "cygport".

If you are building a package with NLS, even manually, you need
gettext-devel installed for msgfmt and friends.  Therefore, this is
technically not a requirement of cygport but a build requirement of your
package, just like any other lib*-devel packages that you need to build
your package.

--
Yaakov




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cygport package has one dependency missing
  2015-02-27  6:24 ` Yaakov Selkowitz
@ 2015-03-06 15:00   ` Jon TURNEY
  0 siblings, 0 replies; 3+ messages in thread
From: Jon TURNEY @ 2015-03-06 15:00 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

On 27/02/2015 06:24, Yaakov Selkowitz wrote:
> On Tue, 2015-02-24 at 10:55 +0100, Marcos Vives Del Sol wrote:
>> File "/usr/share/cygport/cygclass/autotools.cygclass" requires
>> "autopoint", which is part of "gettext-devel" package but it isn't
>> specified in the setup.hint, and therefore it doesn't get installed
>> when selecting "cygport".
>
> If you are building a package with NLS, even manually, you need
> gettext-devel installed for msgfmt and friends.  Therefore, this is
> technically not a requirement of cygport but a build requirement of your
> package, just like any other lib*-devel packages that you need to build
> your package.

I feel this could be handled better, though.  Patch attached.



[-- Attachment #2: 0001-autotools-Avoid-grepping-stdin-if-autopoint-is-not-p.patch --]
[-- Type: text/plain, Size: 973 bytes --]

From f068b6ef468331654442a71d28b29d562a0ef619 Mon Sep 17 00:00:00 2001
From: Jon TURNEY <jon.turney@dronecode.org.uk>
Date: Fri, 27 Feb 2015 20:23:30 +0000
Subject: [PATCH] autotools: Avoid grepping stdin if autopoint is not present
 on PATH

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
---
 cygclass/autotools.cygclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cygclass/autotools.cygclass b/cygclass/autotools.cygclass
index 301bdd3..ac4e467 100644
--- a/cygclass/autotools.cygclass
+++ b/cygclass/autotools.cygclass
@@ -484,7 +484,7 @@ cygautoreconf() {
 
 		# libtool 2.2+ is incompatible with gettext before 0.17
 		# config.rpath is broken wrt dynamic linkage before 0.17
-		eval gettext_$(grep ^version= $(which ${AUTOPOINT}))
+		eval gettext_$(grep ^version= $(which ${AUTOPOINT} || echo /dev/null))
 		if ! __version_at_least 0.17 ${gettext_version}
 		then
 			error "cygautoreconf: at least gettext 0.17 required"
-- 
2.1.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-06 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-24  9:56 cygport package has one dependency missing Marcos Vives Del Sol
2015-02-27  6:24 ` Yaakov Selkowitz
2015-03-06 15:00   ` Jon TURNEY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).