Re: SPECS: mono.spec - handle rpm mono provides/requires - rel 2

2005-08-11 Thread Elan Ruusamäe
why thse are in /usr/bin, while other similiar scripts are in /usr/lib/rpm?

$ l /usr/lib/rpm/find-*-{provides,requires}
-rwxr-xr-x  1 root root 514 Jul  7 02:12 /usr/lib/rpm/find-php-provides
-rwxr-xr-x  1 root root 871 Jul  7 02:12 /usr/lib/rpm/find-php-requires


On Thursday 11 August 2005 21:23, wolf wrote:
 Author: wolf Date: Thu Aug 11 18:23:30 2005 GMT
 Module: SPECS Tag: HEAD
  Log message:
 - handle rpm mono provides/requires
 - rel 2

  Files affected:
 SPECS:
mono.spec (1.130 - 1.131)

  Diffs:

 
 Index: SPECS/mono.spec
 diff -u SPECS/mono.spec:1.130 SPECS/mono.spec:1.131
 --- SPECS/mono.spec:1.130 Thu Aug 11 19:52:36 2005
 +++ SPECS/mono.spec   Thu Aug 11 20:23:24 2005
 @@ -3,13 +3,20 @@
  # Conditional build:
  %bcond_without   nptl# don't use TLS (which effectively 
 requires NPTL
 libs) %bcond_without  static_libs # don't build static libraries
 +%bcond_with  bootstrap   # don't require mono-devel to find req/prov
  #
  %define  _glibver2.4
 +#
 +%if ! %{with bootstrap}
 +%define  __mono_provides /usr/bin/mono-find-provides
 +%define  __mono_requires /usr/bin/mono-find-requires
 +%endif
 +#
  Summary: Common Language Infrastructure implementation
  Summary(pl): Implementacja Common Language Infrastructure
  Name:mono
  Version: 1.1.8.3
 -Release: 1
 +Release: 2
  License: GPL/LGPL/MIT
  Group:   Development/Languages
  #Source0Download: http://www.mono-project.com/Downloads
 @@ -27,7 +34,9 @@
  BuildRequires:   glib2-devel = %{_glibver}
  BuildRequires:   libtool
  BuildRequires:   pkgconfig
 +BuildRequires:   rpm-build = 4.4.2-0.3
  BuildRequires:   rpmbuild(macros) = 1.213
 +%{!?with_bootstrap:BuildRequires:mono-devel}
  ExclusiveArch:   %{ix86} %{x8664} arm hppa ppc s390 s390x sparc sparcv9
 sparc64 # alpha still broken, mips/ia64/m68k disabled in configure
  # note: plain i386 is not supported; mono uses cmpxchg/xadd which require
 i486 @@ -410,6 +419,10 @@
  All persons listed below can be reached at cvs_login@pld-linux.org

  $Log$
 +Revision 1.131  2005/08/11 18:23:24  wolf
 +- handle rpm mono provides/requires
 +- rel 2
 +
  Revision 1.130  2005/08/11 17:52:36  wolf
  - use bash for bash scripts

 

  CVS-web:
 http://cvs.pld-linux.org/SPECS/mono.spec?r1=1.130r2=1.131f=u

 ___
 pld-cvs-commit mailing list
 pld-cvs-commit@lists.pld-linux.org
 http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

-- 
glen
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: SPECS: mono.spec - handle rpm mono provides/requires - rel 2

2005-08-11 Thread Bartosz Taudul
On Thu, Aug 11, 2005 at 09:38:21PM +0300, Elan Ruusamäe wrote:
 why thse are in /usr/bin, while other similiar scripts are in /usr/lib/rpm?
Mono places them there. If it's good or not is open to discussion.

wolf
-- 
  Bartek   .  - Przy drobnych przeliczeniach, które zajmą ci stronę...
  Taudul   :  
  .:
w o l f @ p l d - l i n u x . o r g.:. http://wolf.valkyrie.one.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: SPECS: mono.spec - handle rpm mono provides/requires - rel 2

2005-08-11 Thread Tomasz Wittner
On Thu 11. of August 2005 21:42, Bartosz Taudul wrote:
 On Thu, Aug 11, 2005 at 09:38:21PM +0300, Elan Ruusamäe wrote:
  why thse are in /usr/bin, while other similiar scripts are 
in /usr/lib/rpm?
 Mono places them there. If it's good or not is open to discussion.
I suppose that /usr/bin/mono-find-{provides,requires} are not called directly 
by admin or users but only from other programs (from rpm in this case). In 
such situation, in accordance with FHS 2.3 they should go to %{_libdir}/rpm/

http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA
quote
/usr/lib : Libraries for programming and packages
Purpose

/usr/lib includes object files, libraries, and internal binaries that are not 
intended to be executed directly by users or shell scripts.
/quote

 
 wolf

-- 
Tomasz Wittner
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: SPECS: tao.spec - auto mono prov/req

2005-08-11 Thread Bartosz Taudul
On Thu, Aug 11, 2005 at 10:42:24PM +0300, Elan Ruusamäe wrote:
 i believe proper way of doing it is require some rpmbuild(macros) version 
 (don't forget to document it in PLD-doc/BuildRequires.txt), in case someone 
 backports it to ac-branch 4.4.1 version of rpm
Almost all changes are in rpm's code, not in macros, so I don't see how
it could work. Maybe some BR: rpm(monodep) would be better?

wolf
-- 
  Bartek   .  - Wiecie o czym są Chłopi Reymonta?
  Taudul   :  - O chłopach.
  .:
w o l f @ p l d - l i n u x . o r g.:. http://wolf.valkyrie.one.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: SPECS: tao.spec - auto mono prov/req

2005-08-11 Thread Elan Ruusamäe
On Thursday 11 August 2005 23:29, Bartosz Taudul wrote:
 On Thu, Aug 11, 2005 at 10:42:24PM +0300, Elan Ruusamäe wrote:
  i believe proper way of doing it is require some rpmbuild(macros) version
  (don't forget to document it in PLD-doc/BuildRequires.txt), in case
  someone backports it to ac-branch 4.4.1 version of rpm

 Almost all changes are in rpm's code, not in macros, so I don't see how
 it could work. Maybe some BR: rpm(monodep) would be better?
...or fake revision for it:
$ cvs ci -f -m '- rev 1.234 for mono dep' rpm.macros

 wolf
glen
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: SPECS: tao.spec - auto mono prov/req

2005-08-11 Thread Elan Ruusamäe
On Friday 12 August 2005 00:17, Bartosz Taudul wrote:
 On Fri, Aug 12, 2005 at 12:05:16AM +0300, Elan Ruusamäe wrote:
   Almost all changes are in rpm's code, not in macros, so I don't see how
   it could work. Maybe some BR: rpm(monodep) would be better?
 
  ...or fake revision for it:
  $ cvs ci -f -m '- rev 1.234 for mono dep' rpm.macros

 There were some small changes in macros, so no need to fake. Will
 bumping rpm_macros_rev in rpm.spec and changing BR: rpm-build to
 BR: rpmbuild(macros) be sufficient? How does that work with backporting
 to AC-branch?
yes. true. it won't work until it's really backported. (ie the BR could be 
satisfied but the actual behaviour not)

so perhaps rpmbuild(monoautodeps) is the right choice.

 wolf

-- 
glen
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: SPECS: rpm.spec - rpm-build P: rpmbuild(monoautodeps)

2005-08-11 Thread Paweł Sakowski
On Fri, 2005-08-12 at 01:27 +0200, wolf wrote:
 Author: wolf Date: Thu Aug 11 23:27:10 2005 GMT
 Module: SPECS Tag: HEAD
  Log message:
 - rpm-build P: rpmbuild(monoautodeps)

which doesn't really describe:

 -# because of -fvisibility... related fixes
 -Requires:gcc = 5:4.0.1-0.20050514.2

Was that on purpose?

-- 
Paweł Sakowski [EMAIL PROTECTED]
PLD Linux Distribution

___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: SPECS: rpm.spec - rpm-build P: rpmbuild(monoautodeps)

2005-08-11 Thread Bartosz Taudul
On Fri, Aug 12, 2005 at 01:51:28AM +0200, Paweł Sakowski wrote:
  -# because of -fvisibility... related fixes
  -Requires:  gcc = 5:4.0.1-0.20050514.2
 Was that on purpose?
I can't see anything related to -fvisibility in rpm on HEAD. Furthermore:

% cvs log rpm.macros
revision 1.227
date: 2005/07/07 19:23:35;  author: pluto;  state: Exp;  lines: +1 -1
- -fvisibility-inlines-hidden disabled.

wolf
-- 
  Bartek   .  - Zwróćmy uwagę na wielorakość i różnorodność tego ruchu.
  Taudul   :  
  .:
w o l f @ p l d - l i n u x . o r g.:. http://wolf.valkyrie.one.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en