Mailinglist Archive: opensuse-packaging (250 mails)

< Previous Next >
Re: [opensuse-packaging] python modules as noarch
  • From: "Hans-Peter Jansen" <hpj@xxxxxxxxx>
  • Date: Mon, 10 Aug 2009 22:14:49 +0200
  • Message-id: <200908102214.49689.hpj@xxxxxxxxx>
[Intentionally NOT word wrapped - Sorry for those, who suffer from this]

Am Montag, 3. August 2009 schrieb Jan Matejek:

Packages using --record-rpm for keeping filelist should be (and are)
working fine with the new python. They will just install into /usr/lib
on all platforms. If not changed to noarch, it will make installing
32bit and 64bit versions alongside each other impossible - but on the
other hand, you don't need to do it anyway.

There's something wrong with this. "Both" archs are affected, since i586
shouldn't be affected from this at all, I show it here. The exactly same
behavior holds true for x86_64.

The spec contains this:

%{py_requires}
%if %suse_version <= 1110
%define python_sitelib %py_sitedir
%else
BuildArch: noarch
%endif

This seems necessary, because the INSTALLED_FILES miss some files.

Just the interesting excerpts shown:

Building python-logilab-common for
project 'home:frispete:branches:devel:languages:python'
repository 'openSUSE_Factory'
arch 'i586'

+ cd logilab-common-0.43.0
+ python setup.py install --prefix=/usr --record-rpm=INSTALLED_FILES
--root=/var/tmp/python-logilab-common-0.43.0-build

writing list of installed files to 'INSTALLED_FILES'

Processing files: python-logilab-common-0.43.0-12.1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.34560
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd logilab-common-0.43.0
+
DOCDIR=/var/tmp/python-logilab-common-0.43.0-build/usr/share/doc/packages/python-logilab-common
+ export DOCDIR
+ rm -rf
/var/tmp/python-logilab-common-0.43.0-build/usr/share/doc/packages/python-logilab-common
+ /bin/mkdir -p
/var/tmp/python-logilab-common-0.43.0-build/usr/share/doc/packages/python-logilab-common
+ cp -pr ChangeLog README
/var/tmp/python-logilab-common-0.43.0-build/usr/share/doc/packages/python-logilab-common
+ exit 0
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/__init__.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/__init__.pyc
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/__init__.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/__init__.pyc
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/module.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/module.pyc
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/module2.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/module2.pyc
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/noendingnewline.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/noendingnewline.pyc
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/nonregr.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/nonregr.pyc
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/module.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/module.pyc
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/module2.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/module2.pyc
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/noendingnewline.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/noendingnewline.pyc
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/nonregr.py
warning: File listed twice:
/usr/lib/python2.6/site-packages/logilab/common/test/data/nonregr.pyc
Finding Provides: /usr/lib/rpm/find-provides python-logilab-common
Finding Requires: /usr/lib/rpm/find-requires python-logilab-common
Finding Supplements: /usr/lib/rpm/find-supplements python-logilab-common
Requires(rpmlib): rpmlib(VersionedDependencies) <= 3.0.3-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires: /usr/bin/python
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/python-logilab-common-0.43.0-build
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/python-logilab-common-0.43.0-build
Wrote: /usr/src/packages/SRPMS/python-logilab-common-0.43.0-12.1.src.rpm
Wrote:
/usr/src/packages/RPMS/noarch/python-logilab-common-0.43.0-12.1.noarch.rpm

RPMLINT report:
===============
python-logilab-common.noarch: W: files-duplicate
/usr/lib/python2.6/site-packages/logilab/common/test/data/subdir_differ_dir/subdir/toto.txt

/usr/lib/python2.6/site-packages/logilab/common/test/data/reference_dir/subdir/toto.txt:
/usr/lib/python2.6/site-packages/logilab/common/test/data/same_dir/subdir/toto.txt:
/usr/lib/python2.6/site-packages/logilab/common/test/data/file_differ_dir/subdir/toto.txt
python-logilab-common.noarch: W: files-duplicate
/usr/lib/python2.6/site-packages/logilab/common/test/data/same_dir/README
/usr/lib/python2.6/site-packages/logilab/common/test/data/reference_dir/README:
/usr/lib/python2.6/site-packages/logilab/common/test/data/subdir_differ_dir/README:
/usr/lib/python2.6/site-packages/logilab/common/test/data/file_differ_dir/README:
/usr/lib/python2.6/site-packages/logilab/common/test/data/content_differ_dir/README
python-logilab-common.noarch: W: files-duplicate
/usr/lib/python2.6/site-packages/logilab/common/test/data/MyPyPa-0.1.0-py2.5.egg

/usr/lib/python2.6/site-packages/logilab/common/test/data/MyPyPa-0.1.0-py2.5.zip
python-logilab-common.noarch: W: files-duplicate
/usr/lib/python2.6/site-packages/logilab/common/test/data/content_differ_dir/subdir/coin

/usr/lib/python2.6/site-packages/logilab/common/test/data/same_dir/subdir/coin:
/usr/lib/python2.6/site-packages/logilab/common/test/data/subdir_differ_dir/subdir/coin:
/usr/lib/python2.6/site-packages/logilab/common/test/data/reference_dir/subdir/coin
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/subdir_differ_dir/NOTHING
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/module.py
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/normal_file.txt
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/newlines.txt
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/sub/doc.txt
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/write_protected_file.txt
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/sub/momo.py
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/module2.py
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/normal_file.txt
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/spam.txt
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/file_differ_dir/subdirtwo/Hello
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/test.ini
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/nonregr.py
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/file_differ_dir/NOTHING
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/content_differ_dir/NOTHING
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/test2.msg
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/write_protected_file.txt
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/same_dir/NOTHING
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/test1.msg
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/foo.txt
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/find_test/noendingnewline.py
python-logilab-common.noarch: W: zero-length
/usr/lib/python2.6/site-packages/logilab/common/test/data/reference_dir/NOTHING
2 packages and 0 specfiles checked; 0 errors, 26 warnings.

Pete
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References