Dnia poniedziałek, 14 maja 2007, Jakub Bogusz napisał:
> > Tu już nie wiem o co biega. W psmisc.spec dodać konflikty?:
> > Conflicts: Firebird <= 1.5.4.4910
> > Conflicts: heartbeat <= 2.0.8
> > ?
>
> heartbeat i rc-scripts.
> W Firebirdzie jest tylko BR, więc nie dotyczy.
>
Dzięki. Podsyłam poprawione wersje. Te powinny być już ok o ile dobrze
wszystko zrozumiałem.
Tylko zastanawiałem się nad tym heartbeat. W specu ma wersję 0.1. Nie ma go w
żadnym repo więc się zastanawiam czy potrzebie daje do rc-scripts Conflicts?
Jak potrzebnie to czy może mieć podbity release do 0.2 czy podbić do 1 i taki
konflikt wpisać?
Jak nie będzie żadnych ale to poczekam jeden dzień na ewentualne sprzeciwy i
commitne;)
> > Ogólnie nie masz nic przeciwko przeniesieniu do /bin/*?
>
> Nie.
> Sprawdzałem w FHS i LSB, nic nie ma o wymaganym położeniu.
Ogólnie to domyślnie ma lądować do /bin tylko, że w PLD przy budowaniu
wrzucany jest do /sbin. Taki o to wpis w cvs'ie znalazłem:
Revision 1.27 2001/05/06 21:03:13 misiek
- release 2
- fuser place is in /sbin (rc-scripts depend on it)
Ale to chyba przestarzałe i spokojnie może być w /bin pod warunkiem, że się
właśnie w rc-scripts poprawi.
--
Pozdrawiam, Kamil Dziedzic
--- Firebird.spec 28 Feb 2007 12:27:46 -0000 1.50
+++ Firebird.spec 14 May 2007 20:02:39 -0000
@@ -45,6 +45,7 @@
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
+BuildRequires: psmisc >= 22.5-2
BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: unzip
Requires: %{name}-lib = %{version}-%{release}
@@ -204,7 +205,7 @@
LIB_CLIENT_LINK_OPTIONS="-lpthread"
# fb_lock_mgr is started during build - try to stop it (if /proc is mounted...)
-/sbin/fuser -k gen/firebird/bin/fb_lock_mgr 2>/dev/null || :
+fuser -k gen/firebird/bin/fb_lock_mgr 2>/dev/null || :
%install
rm -rf $RPM_BUILD_ROOT
--- heartbeat.spec 13 Feb 2007 07:47:11 -0000 1.72
+++ heartbeat.spec 14 May 2007 20:03:02 -0000
@@ -6,7 +6,7 @@
Summary(pt_BR.UTF-8): Implementa sistema de monitoração (heartbeats) visando Alta Disponibilidade
Name: heartbeat
Version: 2.0.8
-Release: 0.1
+Release: 0.2
License: GPL v2+
Group: Applications/System
Source0: http://linux-ha.org/download/%{name}-%{version}.tar.gz
@@ -47,6 +47,7 @@
Requires(post,postun): /sbin/ldconfig
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
+Requires: psmisc >= 22.5-2
Requires: rc-scripts
Requires: syslogdaemon
Provides: group(haclient)
--- rc-scripts.spec 1 May 2007 01:18:43 -0000 1.259
+++ rc-scripts.spec 14 May 2007 20:02:27 -0000
@@ -11,7 +11,7 @@
Summary(tr.UTF-8): inittab ve /etc/rc.d dosyalarÄą
Name: rc-scripts
Version: 0.4.1.6
-Release: 1
+Release: 2
License: GPL
Group: Base
#Source0: ftp://ftp1.pld-linux.org/people/arekm/software/%{name}-%{version}.tar.gz
@@ -19,6 +19,7 @@
# Source0-md5: 1d6819878e14787491d99dd5bdc847b8
Patch0: %{name}-dev_alias.patch
Patch1: %{name}-sleep.patch
+Patch2: %{name}-fuser.patch
URL: http://svn.pld-linux.org/cgi-bin/viewsvn/rc-scripts/
BuildRequires: autoconf
BuildRequires: automake
@@ -51,7 +52,7 @@
Requires: mount >= 2.12
Requires: net-tools
Requires: procps >= 1:3.2.6-1.1
-Requires: psmisc
+Requires: psmisc >= 22.5-2
Requires: utempter
Requires: util-linux
Provides: initscripts
@@ -98,6 +99,7 @@
%setup -q
%{?with_devalias:%patch0 -p0}
%patch1 -p1
+%patch2 -p1
%build
%{__aclocal}
--- psmisc.spec 25 Apr 2007 15:55:03 -0000 1.90
+++ psmisc.spec 14 May 2007 20:02:07 -0000
@@ -15,7 +15,7 @@
Summary(uk.UTF-8): ĐŁŃиНŃŃи ŃОйОŃи С ĐżŃĐžŃĐľŃаПи
Name: psmisc
Version: 22.5
-Release: 1
+Release: 2
License: GPL
Group: Applications/System
Source0: http://dl.sourceforge.net/psmisc/%{name}-%{version}.tar.gz
@@ -29,10 +29,11 @@
BuildRequires: gettext-devel >= 0.14.1
%{?with_selinux:BuildRequires: libselinux-devel}
BuildRequires: ncurses-devel >= 5.0
+Conflicts: heartbeat < 2.0.8-0.2
+Conflicts: rc-scripts < 0.4.1.6-2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _bindir /bin
-%define _sbindir /sbin
%description
The psmisc package contains utilities for managing processes on your
@@ -108,9 +109,6 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-mkdir $RPM_BUILD_ROOT%{_sbindir}
-mv $RPM_BUILD_ROOT%{_bindir}/fuser $RPM_BUILD_ROOT%{_sbindir}
-
bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
rm -f $RPM_BUILD_ROOT%{_mandir}/README.psmisc-non-english-man-pages
@@ -122,7 +120,6 @@
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS Chang* NEWS README
-%attr(755,root,root) %{_sbindir}/*
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*
%lang(fi) %{_mandir}/fi/man1/*
--- rc-scripts-0.4.1.6/rc.d/rc.shutdown 2007-05-14 18:44:37.000000000 +0200
+++ rc-scripts-0.4.1.6/rc.d/rc.shutdown 2007-05-14 18:43:57.000000000 +0200
@@ -84,7 +84,7 @@
sleep 2
remaining=$(awk '!/(^#| proc | loopfs | devfs | devpts | shm | iso9660 | ramfs | tmpfs | sysfs | securityfs | squashfs |^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts)
[ -z "$remaining" ] && break
- /sbin/fuser -k -m $sig $remaining > /dev/null
+ fuser -k -m $sig $remaining > /dev/null
sleep 5
retry=$(($retry-1))
sig=-9
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl