[opensuse-packaging] build service error (RHEL perl module)
Hi, Does anyone now why I get this error building a perl module? Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.34276 + umask 022 + cd /usr/src/redhat/BUILD + cd Parse-Eyapp-1.46 + %perl_make_install /var/tmp/rpm-tmp.34276: line 23: fg: no job control error: Bad exit status from /var/tmp/rpm-tmp.34276 (%install) The build is a fairly straightforward perl module with a spec file that follows the suse conventions. Targets are RHEL4/5 i586 and x86_64. Does OBS support the perl_* macros for RHEL? Thanks, Daniel -------------------------------- %define cpan_name Parse-Eyapp Name: perl-%cpan_name Version: 1.46 Release: 0 Provides: %cpan_name Requires: perl = %{perl_version} Group: Development/Libraries/Perl License: Artistic URL: http://search.cpan.org/dist/Parse-Eyapp/ Summary: Extensions for Parse::Yapp Source: %cpan_name-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Parse::Eyapp Eyapp yacc/yapp syntax with functionalities like named attributes, EBNF-like expressions, modifiable default action, automatic syntax tree building, semi-automatic abstract syntax tree building, translation schemes, tree regular expressions, tree transformations, scope analysis, support, directed acyclic graphs and a few more. %prep %setup -q -n %cpan_name-%{version} %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" make make test # correct spurious execute permissions #chmod 644 Changes #chmod 644 README %install %perl_make_install %perl_process_packlist %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc Changes MANIFEST README %doc %{_mandir}/man?/* %{perl_vendorlib}/Config %{perl_vendorlib}/auto/Config %{perl_vendorarch}/auto/Config /var/adm/perl-modules/%{name} %changelog -n %{name} * Fri May 08 2009 - dwestervelt@novell - Initial release -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tue, May 19, 2009 at 11:05:01AM -0600, Daniel Westervelt wrote:
Does anyone now why I get this error building a perl module?
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.34276 + umask 022 + cd /usr/src/redhat/BUILD + cd Parse-Eyapp-1.46 + %perl_make_install /var/tmp/rpm-tmp.34276: line 23: fg: no job control error: Bad exit status from /var/tmp/rpm-tmp.34276 (%install)
%perl_make_install is not defined.
The build is a fairly straightforward perl module with a spec file that follows the suse conventions.
Targets are RHEL4/5 i586 and x86_64.
Does OBS support the perl_* macros for RHEL?
If you build for RHEL, you'll get redhat's rpm version installed, so all the macros are there. Of course the SUSE specific macros don't exist, so no %perl_make_install. Just use make DESTDIR=$RPM_BUILD_ROOT install_vendor instead (which is more clear to me anyway...) Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Daniel Westervelt
-
Michael Schroeder