Hi

When we try to build a OpenPKG package for some perl modules, we get the error "Sorry, PREFIX is not supported".

How can we omit the PREFIX option. Or ist there another sulution.

Thanks
Enrico


.
.
+ /opt/local/opkg/bin/perl-openpkg -v -d /opt/local/opkg/RPM/SRC/perl-datetime/Module-Build-0.2607.tar.gz configure build install
++ OpenPKG perl-openpkg 2.0.0 (26-Jan-2004)
++ determined RPM program: /opt/local/opkg/libexec/openpkg/rpm (4.2.1)
++ determined Perl program: /opt/local/opkg/bin/perl (5.8.4)
++ step 2: configure
$ chmod -R u+rw Makefile.PL
$ cp Makefile.PL Makefile.PL.orig
$ sed -e "s:\$^X:'/opt/local/opkg/RPM/TMP/joe-perl-openpkg-perl-datetime/perl.sh':g" <Makefile.PL.orig >Makefile.PL
$ /opt/local/opkg/RPM/TMP/joe-perl-openpkg-perl-datetime/perl.sh Makefile.PL PERL=/opt/local/opkg/RPM/TMP/joe-perl-openpkg-perl-datetime/perl.sh FULLPERL=/opt/local/opkg/RPM/TMP/joe-perl-openpkg-perl-datetime/perl.sh INSTALLDIRS=vendor INSTALLMAN3DIR=none INSTALLSITEMAN3DIR=none INSTALLVENDORMAN3DIR=none DESTDIR=/opt/local/opkg/RPM/TMP/perl-datetime-5.8.4-root PREFIX=/opt/local/opkg </dev/null
Sorry, PREFIX is not supported. See the Module::Build
documentation for 'destdir' or 'install_base' instead.
++ step 3: build
perl-openpkg:ERROR: file "Makefile" not found in working directory at /opt/local/opkg/bin/perl-openpkg line 376.
(No such file or directory)
error: Bad exit status from /opt/local/opkg/RPM/TMP/rpm-tmp.30801 (%install)
RPM build errors:
Bad exit status from /opt/local/opkg/RPM/TMP/rpm-tmp.30801 (%install)
[EMAIL PROTECTED]


our spec file:
#   package information
Name:         perl-datetime

# list of sources
Source0: http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Module-Build-%{V_perl_module_build}.tar.gz


%prep
    %setup -q -c
    %setup -q -T -D -a 0

%build

%install
rm -rf $RPM_BUILD_ROOT
%{l_prefix}/bin/perl-openpkg prepare
%{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
install
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`


%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to