Hello community, here is the log from the commit of package smlnj checked in at Thu Mar 1 21:37:27 CET 2007. -------- --- arch/i386/smlnj/smlnj.changes 2006-11-21 14:33:41.000000000 +0100 +++ /mounts/work_src_done/STABLE/smlnj/smlnj.changes 2007-03-01 15:19:33.000000000 +0100 @@ -1,0 +2,5 @@ +Thu Mar 1 15:19:08 CET 2007 - schwab@suse.de + +- Hack to build as non-root. + +------------------------------------------------------------------- Old: ---- minmem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ smlnj.spec ++++++ --- /var/tmp/diff_new_pack.l10128/_old 2007-03-01 21:37:01.000000000 +0100 +++ /var/tmp/diff_new_pack.l10128/_new 2007-03-01 21:37:01.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package smlnj (Version 110.60) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -12,9 +12,9 @@ Name: smlnj Summary: Standard ML of New Jersey Version: 110.60 -Release: 1 +Release: 7 Group: Development/Languages/Other -License: BSD License and BSD-like, Other License(s), see package +License: BSD License and BSD-like URL: http://www.smlnj.org/ Source: smlnj-%{version}.tar.bz2 Patch: config.diff @@ -49,21 +49,29 @@ %install mkdir -p $RPM_BUILD_ROOT%{_libdir}/smlnj -rm -rf %{_libdir}/smlnj -ln -s $RPM_BUILD_ROOT%{_libdir}/smlnj %{_libdir}/smlnj -CFLAGS=$RPM_OPT_FLAGS INSTALLDIR=%{_libdir}/smlnj config/install.sh +CFLAGS=$RPM_OPT_FLAGS INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/smlnj config/install.sh mkdir -p $RPM_BUILD_ROOT%{_bindir} -for f in %{_libdir}/smlnj/bin/*; do - ln -sf $f $RPM_BUILD_ROOT%{_bindir} - echo %{_bindir}/${f##*/} -done > bin-files +n=${RPM_BUILD_ROOT//?/ } +for f in $RPM_BUILD_ROOT%{_libdir}/smlnj/bin/.heap/sml.*; do + perl -pi -e "s|\Q$RPM_BUILD_ROOT\E([^\0]*.)|\1$n|" $f +done +for f in $RPM_BUILD_ROOT%{_libdir}/smlnj/bin/*; do + sed -i -e "s,$RPM_BUILD_ROOT,," $f + ln -sf ${f#$RPM_BUILD_ROOT} $RPM_BUILD_ROOT%{_bindir} +done +for f in $RPM_BUILD_ROOT%{_libdir}/smlnj/bin/.*-sml; do + sed -i -e "s,$RPM_BUILD_ROOT,," $f +done -%files -f bin-files +%files %defattr(-, root, root) %doc %{version}-* HISTORY +%{_bindir}/* %{_libdir}/smlnj -%changelog -n smlnj +%changelog +* Thu Mar 01 2007 - schwab@suse.de +- Hack to build as non-root. * Tue Nov 21 2006 - schwab@suse.de - Update to version 110.60. * Wed Jan 25 2006 - mls@suse.de ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org