I have an openpkg 1.2 install for which I'd like to compile imapd. There
isn't one readily packaged for 1.2, so I tried rebuilding the 1.3 src.rpm
(actually, I tried 20030731 first).
=======================================================================
$ rpm --rebuild --nodeps imapd-2.1.14-1.3.0.src.rpm
Installing imapd-2.1.14-1.3.0.src.rpm
Executing(%prep): env -i /opt/opkg/1.2/lib/openpkg/bash --norc --noprofile
--posix -e /opt/opkg/1.2/RPM/TMP/rpm-tmp.10354
+ cd /opt/opkg/1.2/RPM/TMP
+ cd /opt/opkg/1.2/RPM/TMP
+ rm -rf cyrus-imapd-2.1.14
+ /opt/opkg/1.2/lib/openpkg/gzip -dc
/opt/opkg/1.2/RPM/SRC/imapd/cyrus-imapd-2.1.14.tar.gz
+ /opt/opkg/1.2/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd cyrus-imapd-2.1.14
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 1226 = 0 ']'
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 1226 = 0 ']'
+ chmod -Rf a+rX,g-w,o-w .
+ echo 'Patch #0 (imapd.patch):'
Patch #0 (imapd.patch):
+ /opt/opkg/1.2/lib/openpkg/patch -p0 -s
+ /opt/opkg/1.2/lib/openpkg/shtool subst -e 's;db-4.1;db;g' configure
+ /opt/opkg/1.2/lib/openpkg/shtool subst -e 's;^\(
*.LIBS..*\)\(\"\],.*\)$;\1 -ldb\2;' perl/imap/Makefile.PL
+ /opt/opkg/1.2/lib/openpkg/shtool subst -e 's;^\(.) exec\) \(perl
.*\)$;\1 /opt/opkg/1.2/bin/\2;' perl/imap/cyradm.sh
+ /opt/opkg/1.2/lib/openpkg/shtool subst -e
's;"/usr/sieve";"/opt/opkg/1.2/var/imapd/sieve";g' imap/lmtpd.c
imap/mbdump.c imap/user.c man/imapd.conf.5 timsieved/actions.c
+ /opt/opkg/1.2/lib/openpkg/shtool install -c -m 644 -e
's;\(@[EMAIL PROTECTED]);/opt/opkg/1.2/RPM/TMP/imapd-2.1.14-root\1;g' '%{l_value'
-s '-a}' /opt/opkg/1.2/RPM/SRC/imapd/imapd.conf imapd.conf-mkimap
shtool:install:Error: multiple sources require destination to be directory
error: Bad exit status from /opt/opkg/1.2/RPM/TMP/rpm-tmp.10354 (%prep)
RPM build errors:
Bad exit status from /opt/opkg/1.2/RPM/TMP/rpm-tmp.10354 (%prep)
$
=======================================================================
Since I used "--nodeps", I realize I'm asking for trouble 8-)
I did try building the 'perl-openpkg' dependency, with similar results.
The '%{l_value' -s '-a}' doesn't look right. I'm wondering if this the
result of something new in openpkg > 1.2 or is something else?
Thanks,
--
Vinod
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]