On Tue, Nov 22, 2011 at 10:25:43PM +0100, Michael Stahl wrote: > On 22.11.2011 11:57, Jürgen Schmidt wrote: > > I stumbled over problems using a downloaded epm 4.2 > > (http://www.epmhome.org), build and install it on a Fedora 16 system > > (rpm based). > > > > The epm call failed to build the rpm packages. It seems that epm > > triggers /bin/rpm with some parameters that are not accepted. I don't > > understand why at the moment. > > /bin/rpm on a recent Fedora can not build packages, it can only do the > things necessary on a running system: install etc.; there is an extra > package "rpm-build" with a /usr/bin/rpmbuild program that is used to build > packages.
epm executes rpmbuild here (Fedora 16): /mnt/build/openoffice/apache/trunk/main/instsetoo_native/unxlngx6/OpenOffice/rpm/listfile/en-US/epm_gid_Module_Root_Files_Images.lst --output-dir RPMS -v9 2>&1 | Building target platforms: x86_64 Building for target x86_64 Processing files: ooobasis3.4-images-3.4.0-9584.x86_64 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /mnt/build/openoffice/apache/trunk/main/instsetoo_native/unxlngx6/OpenOffice/rpm/install/en-US_inprogress/RPMS/buildroot Wrote: /mnt/build/openoffice/apache/trunk/main/instsetoo_native/unxlngx6/OpenOffice/rpm/install/en-US_inprogress/RPMS/RPMS/x86_64/ooobasis3.4-images-3.4.0-9584.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.TNTmTG + umask 022 + cd /mnt/build/openoffice/apache/trunk/main/instsetoo_native/unxlngx6/OpenOffice/rpm/install/en-US_inprogress/RPMS/BUILD /var/tmp/rpm-tmp.TNTmTG: line 27: cd: /mnt/build/openoffice/apache/trunk/main/instsetoo_native/unxlngx6/OpenOffice/rpm/install/en-US_inprogress/RPMS/BUILD: No such file or directory PROBLEM: Bad exit status from /var/tmp/rpm-tmp.TNTmTG (%clean) The error is clear: when trying to clean, it cds into a non-existent directory and thus aborts. /var/tmp/rpm-tmp.TNTmTG is also clear about it. Looking at RPMS folder while generating the first package, there is no BUILD folder inside. With the patched epm 3.7 the BUILD folder is there, and removed after the package is built. I'm not sure where the issue is here, the whole thing does not look very rpmbuild standard. In a standard rpmbuild you have a root folder, usually ~/rpmbuild with the following content: RPMS BUILD SOURCES SPECS SRPMS and packages are built inside ~/rpmbuild/BUILD, that's why rpmbuild tries to cd there and clean. Regards -- Ariel Constenla-Haile La Plata, Argentina
pgpWyV8SIjqJb.pgp
Description: PGP signature
