Mailinglist Archive: opensuse-buildservice (272 mails)

< Previous Next >
[opensuse-buildservice] build_patchrpmcheck_scr issue with %post
  • From: Di Pe <dipeit@xxxxxxxxx>
  • Date: Fri, 19 Nov 2010 04:33:49 -0800
  • Message-id: <AANLkTim2zK0nFr0E4-MfLgbWME2WtuNsFfVgy3xkk0F8@xxxxxxxxxxxxxx>
Hi,

obs does not seem to like this %post section and I cannot figure out
what I have done wrong.

....


https://build.opensuse.org/package/live_build_log?arch=x86_64&package=kstart&project=home:dipe&repository=openSUSE_11.3

Preparing packages for installation...
kstart-3.16-42.1
grep: /root/.bashrc: No such file or directory
grep: /root/.bashrc: No such file or directory
... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
    (using /usr/lib/build/checks-data/check_gcc_output)
    (using //.build.log)
... running 03-check-binary-kernel-log
... running 05-check-invalid-requires
... running 06-check-installtest
... testing for pre/postinstall scripts that are not idempotent
/.build_patchrpmcheck_scr: line 1: /etc/add_prompt_command.sh: No such
file or directory
postinstall script of kstart-3.16-42.1.x86_64.rpm failed
SysRq : Power Off
Power down.


########## SPEC FILE ##################


Name: kstart
Summary: Kerberos kinit variants supporting ticket refreshing
Version: 3.16
#Release: 1.%{rel}
Release: 1
License: MIT
Group: System/Environment/Base
URL: http://www.eyrie.org/~eagle/software/kstart/
Source0: http://archives.eyrie.org/software/kerberos/%{name}-%{version}.tar.gz
Source1: krb5-ticket-renew
Source2: k5start.sh
Source3: add_prompt_command.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: krb5-devel
Requires: krb5-client
Vendor: Stanford University

%description
Kerberos kinit variant supporting ticket refreshing. k5start (for
Kerberos v5) and k4start (for Kerberos v4) can be used instead of kinit to
obtain Kerberos tickets. krenew can renew an existing ticket cache. They
are intended primarily for use with automated processes and support some
additional features useful for that purpose, such as running as a daemon
and refreshing the ticket periodically, checking to see if an existing
ticket has expired, or obtaining an AFS token along with the ticket by
running an external program automatically.

%prep
%setup

%build
PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH" \
%configure --enable-setpag
%{__make}

%install
%{__rm} -rf %{buildroot}
%makeinstall
/bin/mkdir -p -m 755 $RPM_BUILD_ROOT/etc/cron.hourly
/bin/mkdir -p -m 755 $RPM_BUILD_ROOT/etc/profile.d
#cp $RPM_SOURCE_DIR/krb5-ticket-renew.sh $RPM_BUILD_ROOT/etc/cron.hourly/
#chmod 755 $RPM_BUILD_ROOT/etc/cron.hourly/krb5-ticket-renew
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.hourly/krb5-ticket-renew
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d/k5start.sh
install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/add_prompt_command.sh

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
/etc/cron.hourly/krb5-ticket-renew
/etc/add_prompt_command.sh
%{_bindir}/*
%defattr(-, root, root, 0644)
/etc/profile.d/k5start.sh
#%doc LICENSE NEWS README TODO
%{_mandir}/*/*

%post
/etc/add_prompt_command.sh
rm /etc/add_prompt_command.sh
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >