[yast-devel] perl-bindings
Hello, trying to compile yast-$SUBJ package I have following error message: YCP.cc:15:33: error: ycp-ui/YUIComponent.h: No such file or directory On 10.3 that file was part of yast2-core-devel. But now (11.0) I can't found it. I suppose it should be in libyui package, but no success ... Anybody knows? ;-) Thanks, Michal -- Best Regards, Michal Zugec Software developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: mzugec@suse.cz Lihovarska 1060/12 tel: +420 284 028 960 190 00 Praha 9 fax: +420 296 542 374 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Mon, May 26, 2008 at 09:21:44PM +0200, Michal Zugec wrote:
Hello, trying to compile yast-$SUBJ package I have following error message:
YCP.cc:15:33: error: ycp-ui/YUIComponent.h: No such file or directory
On 10.3 that file was part of yast2-core-devel. But now (11.0) I can't found it. I suppose it should be in libyui package, but no success ... Anybody knows? ;-)
Here: $ grep -w ui yast2-perl-bindings.spec.in BuildRequires: blocxx-devel curl-devel gcc-c++ libxcrypt-devel rpm-devel yast2-core-devel yast2-devtools yast2-ycp-ui-bindings-devel BuildRequires: yast2-ycp-ui-bindings-devel >= 2.16.37 Requires: yast2-ycp-ui-bindings >= 2.16.37 You can also use Benji's very useful webpin: http://packages.opensuse-community.org/index.jsp?searchTerm=YUIComponent.h&distro=SUSE_Factory -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Here: $ grep -w ui yast2-perl-bindings.spec.in BuildRequires: blocxx-devel curl-devel gcc-c++ libxcrypt-devel rpm-devel yast2-core-devel yast2-devtools yast2-ycp-ui-bindings-devel BuildRequires: yast2-ycp-ui-bindings-devel >= 2.16.37 Requires: yast2-ycp-ui-bindings >= 2.16.37
Heh, you were just a second faster with your reply :) What about adding some autoconf check to perl-bindings, such as: AC_CHECK_HEADERS([ arbitrary-ycp-ui-header.h ], [], [ AC_MSG_ERROR([Go and install yast2-libyui-devel. Now! ] ) I saw a svn check-in adding header check like this in ncurses recently, and was thinking about adding similar ones with appropriate error msgs to ncurses-pkg, too, just to make a life of those who hand-compile things from svn a bit easier :) B. -- \\\\\ Katarina Machalkova \\\\\\\__o YaST developer __\\\\\\\'/_ & hedgehog painter
On Tuesday 27 May 2008 10:42, Katarina Machalkova wrote:
What about adding some autoconf check to perl-bindings, such as:
AC_CHECK_HEADERS([ arbitrary-ycp-ui-header.h ], [], [ AC_MSG_ERROR([Go and install yast2-libyui-devel. Now! ] )
I saw a svn check-in adding header check like this in ncurses recently, and was thinking about adding similar ones with appropriate error msgs to ncurses-pkg, too, just to make a life of those who hand-compile things from svn a bit easier :)
From ncurses/configure.in.in: ## check for libyui includes AC_LANG_PUSH([C++]) AC_CHECK_HEADERS([YaST2/yui/YWidgetFactory.h], [], [AC_MSG_ERROR([libyui headers not found - install package yast2-libyui-devel!])]) AC_LANG_POP AC_LANG_PUSH([C++]) tells "autoconf" to use C++ for the next checks; otherwise you'll get complaints about STL headers (std::string, std::map, etc.). There is also AC_LANG(), but that one changes the current programming language without any chance to set it back to what was used before (typically C). AC_LANG_PUSH() OTOH pushes the previous one on a stack, AC_LANG_POP restores the previous one. AC_CHECK_HEADERS() above has 3 arguments: - What header file to look for (should be unique in that package, and should not need anything else) - Action if found - none in this case: [] is autoconf/m4 for "empty string" - Action if not found - in this case, throw an error with AC_MSG_ERROR and stop "configure" at that point. Otherwise nobody will notice that anything is wrong with all that blurb the "configure" scripts dump to stdout. See also "info autoconf". It's no rocket science. It just has a weird syntax. ;-) CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Nürnberg, Germany -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Tue, May 27, 2008 at 11:58:52AM +0200, Stefan Hundhammer wrote:
See also "info autoconf".
It's no rocket science. It just has a weird syntax. ;-)
Rich history, mixture of different languages (creole), many dark corners. => definitely voodoo :-) -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (4)
-
Katarina Machalkova
-
Martin Vidner
-
Michal Zugec
-
Stefan Hundhammer