"Tom \"spot\" Callaway" <[EMAIL PROTECTED]> writes:

> The only reason we use mktemp in there is because we couldn't make rpm
> code changes to use the native glibc functions. As to rpm
> --short-circuit, well, I honestly think we should think long and hard
> about whether we want to keep it around.

well, as for mandriva, i think it is mandatory to keep a similar
feature. and since nowadays distributions use build systems, i really
don't see how this can be dangerous. the usefulness to adjustate
%install and %files on big pkgs is quite obvious (my example: gcc)

but i'm not against slowly obsoleting --short-circuit which has some
drawbacks in favor of the following (that mandriva inherited from
conectiva):

# Redefine RPM sections to allow jumping over them using "--without <section>".
# This an interesting alternative to --short-circuit.
# The following are mostly equivalent:
# % rpmbuild -bi --short-circuit foo.spec && rpmbuild -bb --short-circuit 
foo.spec
# % rpmbuild -bb --without build foo.spec

%prep %%prep \
[ %{_with prep} -eq 1 ] || exit 0 \
[ %{_with build} -eq 1 ] || exit 0 \
[ %{_with install} -eq 1 ] || exit 0 \
%{nil}

%build %%build \
[ %{_with install} -eq 1 ] || exit 0 \
[ %{_with build} -eq 1 ] || exit 0 \
%{nil}

%install 
%{?_enable_debug_packages:%{?buildsubdir:%{debug_package_and_restore}}}\
%%install\
[ %{_with install} -eq 1 ] || exit 0 \
%{nil}

%check %%check \
[ %{_with check} -eq 1 ] || exit 0 \
%{nil}
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to