gddrescue: Do not build with uClibc-ng 9502/head
authorRosen Penev <rosenp@gmail.com>
Tue, 16 Jul 2019 20:54:09 +0000 (13:54 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 16 Jul 2019 20:54:09 +0000 (13:54 -0700)
From the developer:

It seems that uClibc-ng is defining fgetc, fputc, feof, and ferror as
macros and not including them in std.

IMO this is a bug in uClibc-ng (maybe caused by lack of clarity in the
C++ standard), because even the C functions that are alowed to be
defined as macros (putc, getc) should be included in std for
consistency. Just imagine the chaos if std::getc were defined or
undefined depending on how it is implemented.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/gddrescue/Makefile

index 230a1feebbe51802c82476808111d500f329fd28..527fca23b293031d71cbb47375580accbf16cefe 100644 (file)
@@ -27,7 +27,7 @@ define Package/gddrescue
   CATEGORY:=Utilities
   TITLE:=Data recovery tool
   URL:=https://www.gnu.org/software/ddrescue/
-  DEPENDS:=$(CXX_DEPENDS)
+  DEPENDS:=$(CXX_DEPENDS) @!USE_UCLIBC
 endef
 
 define Package/gddrescue/description