xfsprogs: fix dependency on gettext (#47547)
* xfsprogs: fix dependency on gettext * changed dependency on gettext in xfsprogs Co-authored-by: Wouter Deconinck <wdconinc@gmail.com> --------- Co-authored-by: Wouter Deconinck <wdconinc@gmail.com>
This commit is contained in:
parent
acdcd1016a
commit
57a1ebc77e
@ -26,6 +26,7 @@ class Xfsprogs(AutotoolsPackage):
|
|||||||
|
|
||||||
depends_on("libinih")
|
depends_on("libinih")
|
||||||
depends_on("gettext")
|
depends_on("gettext")
|
||||||
|
depends_on("gettext@:0.21.1", when="@:6.3")
|
||||||
depends_on("uuid")
|
depends_on("uuid")
|
||||||
depends_on("util-linux")
|
depends_on("util-linux")
|
||||||
|
|
||||||
@ -33,7 +34,7 @@ def flag_handler(self, name, flags):
|
|||||||
if name == "cflags":
|
if name == "cflags":
|
||||||
if self.spec.satisfies("@:5.4.0 %gcc@10:"):
|
if self.spec.satisfies("@:5.4.0 %gcc@10:"):
|
||||||
flags.append("-fcommon")
|
flags.append("-fcommon")
|
||||||
elif name == "ldlibs":
|
elif name == "ldlibs" or name == "ldflags":
|
||||||
if "intl" in self.spec["gettext"].libs.names:
|
if "intl" in self.spec["gettext"].libs.names:
|
||||||
flags.append("-lintl")
|
flags.append("-lintl")
|
||||||
return build_system_flags(name, flags)
|
return build_system_flags(name, flags)
|
||||||
|
Loading…
Reference in New Issue
Block a user