PATH: rpm
Mikolaj Kucharski
build w kompuart.pl
Śro, 1 Cze 2005, 12:05:57 CEST
Witam,
Ponawiam prosbe o dodanie tych paczy.
Dodatkowo dla rpm.macros dorzucilem:
-----------------------------------------------------------
@@ -580,7 +580,7 @@
else \
CMD="cat%{-e: >&2}" \
fi \
-$CMD %2%{?3: %3} \
+eval $CMD %2%{?3: %3} \
%nil
# useradd/groupadd macros written by glen w pld-linux.org.
----------------------------------------------------------
Dlaczego? Poniewaz:
CMD="cat >&2"
$CMD <<EOF
bla
EOF
cat: >&2: Nie ma takiego pliku ani katalogu
Widac to podczas isntalacji exima.
Prosilbym o maila, jak ktos sie tym zajmie, thx.
Referencje:
http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2005-May/126246.html
--
best regards
q#
-------------- następna część ---------
Index: rpm.macros
===================================================================
RCS file: /cvsroot/SOURCES/rpm.macros,v
retrieving revision 1.158.4.41
diff -u -r1.158.4.41 rpm.macros
--- rpm.macros 27 May 2005 08:14:34 -0000 1.158.4.41
+++ rpm.macros 1 Jun 2005 09:54:22 -0000
@@ -463,21 +463,21 @@
# Python specific macro definitions.
# python main version
-%py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
+%py_ver %([ -e %{__python} ] && echo `%{__python} -c "import sys; print sys.version[:3]"`)
# directories
-%py_prefix %(echo `python -c "import sys; print sys.prefix"`)
-%py_libdir %{py_prefix}/%{_lib}/python%{py_ver}
+%py_prefix %([ -e %{__python} ] && echo `%{__python} -c "import sys; print sys.prefix"`)
+%py_libdir %{py_prefix}/%{_lib}/python%{py_ver}
%py_scriptdir %{py_prefix}/share/python%{py_ver}
-%py_incdir /usr/include/python%{py_ver}
+%py_incdir /usr/include/python%{py_ver}
%py_sitedir %{py_libdir}/site-packages
%py_sitescriptdir %{py_scriptdir}/site-packages
-%py_dyndir %{py_libdir}/lib-dynload
+%py_dyndir %{py_libdir}/lib-dynload
# pure python modules compilation
-%py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%py_comp %{__python} -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
-%py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+%py_ocomp %{__python} -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
# Software written in Python language require Python with main version
%pyrequires_eq() Requires: python(bytecode) = %py_ver %1
@@ -580,7 +580,7 @@
else \
CMD="cat%{-e: >&2}" \
fi \
-$CMD %2%{?3: %3} \
+eval $CMD %2%{?3: %3} \
%nil
# useradd/groupadd macros written by glen w pld-linux.org.
cvs server: I know nothing about rpm-4.3.20040107.tar.bz2
Index: rpm-perl_req-INC_dirs.patch
===================================================================
RCS file: /cvsroot/SOURCES/rpm-perl_req-INC_dirs.patch,v
retrieving revision 1.3
diff -u -r1.3 rpm-perl_req-INC_dirs.patch
--- rpm-perl_req-INC_dirs.patch 23 May 2004 14:49:44 -0000 1.3
+++ rpm-perl_req-INC_dirs.patch 1 Jun 2005 09:55:32 -0000
@@ -1,6 +1,6 @@
---- scripts/perl.req~ 2004-04-16 13:27:10.000000000 +0200
-+++ scripts/perl.req 2004-04-26 23:54:42.128568344 +0200
-@@ -39,8 +39,19 @@
+--- scripts/perl.req~ 2005-05-02 22:41:01.000000000 +0200
++++ scripts/perl.req 2005-05-02 22:46:46.000000000 +0200
+@@ -39,9 +39,20 @@
# by Ken Estes Mail.com kestes w staff.mail.com
@@ -22,6 +22,7 @@
+ if (m=/usr/(sbin|bin|lib|lib64|share|X11R6/(lib|lib64|bin))/=) {
if (! m=(/(doc|man|info|usr/src)/|\.(so|ph|h|html|pod)$)=) {
process_file($_) if -f;
+ }
@@ -53,8 +64,9 @@
}
delete $require{the}; # don't count "use the sth" as perl module
@@ -30,6 +31,6 @@
-foreach $module (sort keys %require) {
+foreach my $module (sort keys %require) {
+ if (length($module) == 0) { next; }
if (length($require{$module}) == 0) {
if ($module =~ /^[0-9._]+$/) {
- print "perl-base >= $module\n";
Index: rpm-perl_req.patch
===================================================================
RCS file: /cvsroot/SOURCES/rpm-perl_req.patch,v
retrieving revision 1.2
diff -u -r1.2 rpm-perl_req.patch
--- rpm-perl_req.patch 12 Jul 2003 20:45:04 -0000 1.2
+++ rpm-perl_req.patch 1 Jun 2005 09:55:32 -0000
@@ -1,7 +1,10 @@
---- rpm-4.2/scripts/perl.req~ Fri Jul 11 11:54:15 2003
-+++ rpm-4.2/scripts/perl.req Sat Jul 12 14:48:40 2003
-@@ -57,7 +57,7 @@
+--- rpm-4.2/scripts/perl.req~ 2005-05-02 22:01:41.000000000 +0200
++++ rpm-4.2/scripts/perl.req 2005-05-02 22:27:42.000000000 +0200
+@@ -55,9 +55,10 @@
+
+
foreach $module (sort keys %require) {
++ if (length($module) == 0) { next; }
if (length($require{$module}) == 0) {
if ($module =~ /^[0-9._]+$/) {
- print "perl >= $module\n";
@@ -9,7 +12,7 @@
} else {
print "perl($module)\n";
}
-@@ -243,11 +243,11 @@
+@@ -253,11 +254,11 @@
# to mean that a particular version of perl is specified
if ($module =~ /5.00/) {
Więcej informacji o liście dyskusyjnej pld-devel-pl