RPM Community Forums

Mailing List Message of <rpm-users>

--target behaviour

From: Elan Ruusamäe <glen@delfi.ee>
Date: Mon 11 Feb 2008 - 23:57:41 CET
Message-Id: <200802120057.42242.glen@delfi.ee>
i noticed when using --short-circuit that at some point it started ti write same files twice...

however looks like the behavior is not from --short-circuit, but from multiple times passing --target.

i notice here tree issues:
- multiple times --target passed and rpmbuild called is a feature or bug?
- Building target platforms: display is wrong (leading comma?)
- %{arch} is lost when first time rpm's are written

rpm 4.4.9

00:54:46 glen[pts/9]@ravenous pld/SPECS$ /usr/bin/rpmbuild --target i686 --target noarch -bb test.spec --target noarch
Building target platforms: ,noarch
Executing(%prep): /bin/sh -e /tmp/rpm-tmp.37168
+ umask 022
+ cd /home/users/glen/rpm/pld/BUILD
+ cd /home/users/glen/rpm/pld/BUILD
+ rm -rf kernel-1
+ /bin/mkdir -p kernel-1
+ cd kernel-1
+ echo target: i386
target: i386
+ exit 0
Executing(%install): /bin/sh -e /tmp/rpm-tmp.37168
+ umask 022
+ cd /home/users/glen/rpm/pld/BUILD
+ /bin/rm --interactive=never -rf /tmp/kernel-1-root-glen
+ cd kernel-1
+ /bin/rm --interactive=never -rf /tmp/kernel-1-root-glen
+ rm -rf /tmp/kernel-1-root-glen
+ /usr/lib/rpm/find-debuginfo.sh /home/users/glen/rpm/pld/BUILD/kernel-1
+ exit 0
Processing files: kernel-1-0.1
Processing files: kernel-debuginfo-1-0.1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/kernel-1-root-glen
Wrote: /home/users/glen/rpm/pld/RPMS/kernel-1-0.1..rpm
Wrote: /home/users/glen/rpm/pld/RPMS/kernel-debuginfo-1-0.1..rpm
Executing(%clean): /bin/sh -e /tmp/rpm-tmp.37168
+ umask 022
+ cd /home/users/glen/rpm/pld/BUILD
+ cd kernel-1
+ /bin/rm --interactive=never -rf /tmp/kernel-1-root-glen
+ rm -rf /tmp/kernel-1-root-glen
Executing(%prep): /bin/sh -e /tmp/rpm-tmp.19804
+ umask 022
+ cd /home/users/glen/rpm/pld/BUILD
+ cd /home/users/glen/rpm/pld/BUILD
+ rm -rf kernel-source-1
+ /bin/mkdir -p kernel-source-1
+ cd kernel-source-1
+ /bin/id -u
+ [ 500 = 0 ]
+ true .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo target: noarch
target: noarch
+ exit 0
Executing(%install): /bin/sh -e /tmp/rpm-tmp.19804
+ umask 022
+ cd /home/users/glen/rpm/pld/BUILD
+ /bin/rm --interactive=never -rf /tmp/kernel-source-1-root-glen
+ cd kernel-source-1
+ /bin/rm --interactive=never -rf /tmp/kernel-source-1-root-glen
+ rm -rf /tmp/kernel-source-1-root-glen
+ /usr/lib/rpm/find-debuginfo.sh /home/users/glen/rpm/pld/BUILD/kernel-source-1
+ __spec_install_post_compress_docs
+ __spec_install_post_py_hardlink
Processing files: kernel-source-1-0.1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/kernel-source-1-root-glen
Wrote: /home/users/glen/rpm/pld/RPMS/kernel-source-1-0.1.noarch.rpm
Executing(%clean): /bin/sh -e /tmp/rpm-tmp.19804
+ umask 022
+ cd /home/users/glen/rpm/pld/BUILD
+ cd kernel-source-1
+ /bin/rm --interactive=never -rf /tmp/kernel-source-1-root-glen
+ rm -rf /tmp/kernel-source-1-root-glen
00:54:53 glen[pts/9]@ravenous pld/SPECS$
                                                                   


-- 
glen


Received on Tue Feb 12 08:59:38 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.