osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: rpmbuild dies with "getOutputFrom():
Broken pipe" - msg#00342

List: linux.redhat.rpm.general

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

On Wed, Oct 30, 2002 at 02:25:30PM -0500, Andrew Leahy wrote:
>
> Hello,
>
> I'm trying to make a .spec file for a package which compiles and
> installs with a simple ./configure && make && make install. However,
> whenever I run "rpmbuild -ba myspec.spec", it fails just before writing
> the .src.rpm with:
>
> Requires(pre): /bin/sh
> Requires(post): /bin/sh
> Requires(preun): /bin/sh
> Requires(postun): /bin/sh
> Requires: /bin/sh /usr/bin/perl libart_lgpl.so.2 libaudiofile.so.0
> libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1)
> libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3) libdl.so.2 libesd.so.0
> libg2c.so.0 libgdk-1.2.so.0 libgdk_imlib.so.1 libgd.so.1.8
> libglib-1.2.so.0 libgmodule-1.2.so.0 libgnome.so.32 libgnomesupport.so.0
> libgnomeui.so.32 libgthread-1.2.so.0 libgtk-1.2.so.0 libICE.so.6
> libjpeg.so.62 libm.so.6 libm.so.6(GLIBC_2.0) libplplotd.so.5
> libpng12.so.0 libpthread.so.0 libpthread.so.0(GLIBC_2.0) libSM.so.6
> libtclmatrixd.so.5 libtcl.so.0 libtk.so.0 libX11.so.6 libXext.so.6
> libXi.so.6 libz.so.1 perl(XML::DOM) perl(XML::Parser)
> Checking for unpackaged file(s): /usr/lib/rpm/check-files %{buildroot}
> getOutputFrom(): Broken pipe
>
> Is there any obvious cause for errors like this? I'm new to this
> business, so any help is appreciated.

You're building a package w/o a build root.

Quick fix is to add to spec file
%undefine __check_files
or
%define __check_files %{nil}

The much better fix is to figger out how to add a build root to your package.

'Tain't hard, see any Red Hat package for what needs to be done in the
specfile. Basically your build needs to support the equivalent of
make DESTDIR=$RPM_BUILD_ROOT install

73 de Jeff

--
Jeff Johnson ARS N3NPQ
jbj@xxxxxxxxxx (jbj@xxxxxxx)
Chapel Hill, NC


Thread at a glance:

Previous Message by Date:

rpmbuild dies with "getOutputFrom(): Broken pipe"

Hello, I'm trying to make a .spec file for a package which compiles and installs with a simple ./configure && make && make install. However, whenever I run "rpmbuild -ba myspec.spec", it fails just before writing the .src.rpm with: Requires(pre): /bin/sh Requires(post): /bin/sh Requires(preun): /bin/sh Requires(postun): /bin/sh Requires: /bin/sh /usr/bin/perl libart_lgpl.so.2 libaudiofile.so.0 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3) libdl.so.2 libesd.so.0 libg2c.so.0 libgdk-1.2.so.0 libgdk_imlib.so.1 libgd.so.1.8 libglib-1.2.so.0 libgmodule-1.2.so.0 libgnome.so.32 libgnomesupport.so.0 libgnomeui.so.32 libgthread-1.2.so.0 libgtk-1.2.so.0 libICE.so.6 libjpeg.so.62 libm.so.6 libm.so.6(GLIBC_2.0) libplplotd.so.5 libpng12.so.0 libpthread.so.0 libpthread.so.0(GLIBC_2.0) libSM.so.6 libtclmatrixd.so.5 libtcl.so.0 libtk.so.0 libX11.so.6 libXext.so.6 libXi.so.6 libz.so.1 perl(XML::DOM) perl(XML::Parser) Checking for unpackaged file(s): /usr/lib/rpm/check-files %{buildroot} getOutputFrom(): Broken pipe Is there any obvious cause for errors like this? I'm new to this business, so any help is appreciated. System: RedHat 8.0 and rpm-4.1-1.06 Thanks for your help. Andrew Leahy

Next Message by Date:

Re: Deprecation of rpm -ba etc. ?

In regard to: Re: Deprecation of rpm -ba etc. ?, Gregory Leblanc said (at...: >On Wed, Oct 23, 2002 at 09:31:43PM -0500, Tim Mooney wrote: >> In regard to: Re: Deprecation of rpm -ba etc. ?, Kurt B. Kaiser said (at...: >> >> >If it were up to me, I'd think up a new name for what rpm -i does to >> >.src.rpm's >> >> --explode >> >> :-) (--prepare-sources-and-patches-for-building-a-binary-rpm is too long, >> and turning that into an acronym like --psapfbabr is too cryptic). > >But that's not what 'rpm -i something.src.rpm' does. Installing an >SRPM just unpacks the sources and spec files. rpm -i something.src.rpm should unpack everything you need to build a binary RPM, including the sources, any patches, and the spec file. Once rpm -i completes, you should be in a position where you can build a binary RPM as the very next step, without needing to do anything else. To me, that's the "prepare" in the argument shown above. Tim -- Tim Mooney mooney@xxxxxxxxxxxxxxxxxxxxxxxxx Information Technology Services (701) 231-1076 (Voice) Room 242-J6, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164

Previous Message by Thread:

rpmbuild dies with "getOutputFrom(): Broken pipe"

Hello, I'm trying to make a .spec file for a package which compiles and installs with a simple ./configure && make && make install. However, whenever I run "rpmbuild -ba myspec.spec", it fails just before writing the .src.rpm with: Requires(pre): /bin/sh Requires(post): /bin/sh Requires(preun): /bin/sh Requires(postun): /bin/sh Requires: /bin/sh /usr/bin/perl libart_lgpl.so.2 libaudiofile.so.0 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3) libdl.so.2 libesd.so.0 libg2c.so.0 libgdk-1.2.so.0 libgdk_imlib.so.1 libgd.so.1.8 libglib-1.2.so.0 libgmodule-1.2.so.0 libgnome.so.32 libgnomesupport.so.0 libgnomeui.so.32 libgthread-1.2.so.0 libgtk-1.2.so.0 libICE.so.6 libjpeg.so.62 libm.so.6 libm.so.6(GLIBC_2.0) libplplotd.so.5 libpng12.so.0 libpthread.so.0 libpthread.so.0(GLIBC_2.0) libSM.so.6 libtclmatrixd.so.5 libtcl.so.0 libtk.so.0 libX11.so.6 libXext.so.6 libXi.so.6 libz.so.1 perl(XML::DOM) perl(XML::Parser) Checking for unpackaged file(s): /usr/lib/rpm/check-files %{buildroot} getOutputFrom(): Broken pipe Is there any obvious cause for errors like this? I'm new to this business, so any help is appreciated. System: RedHat 8.0 and rpm-4.1-1.06 Thanks for your help. Andrew Leahy

Next Message by Thread:

multi-platform package

Hi please excuse my rpm newbieness (i'm also newish to linux too) I'm tasked with makeing an rpm package for an sdk we produce. The sdk is built, using extensive perl scripts, i.e. not by rpm, on a linux box for multiple target platforms -- various linuxes and solares on different chips. Our sdk is mostly sources -- target independent -- but has some binaries included in per-platform subdirectories, e.g. /usr/local/sdkroot/bin/i386-smp-pc-linux2.4.18-3/binfile sdkroot/bin/x86_64-smp-pc-linux2.4.18-3/binfile sdkroot/bin/i386-pc-solaris2.8/binfile sdkroot/bin/sparc-sun-solaris2.7/binfile sdkroot/bin/sparcv9-sun-solaris2.7/binfile all files under sdkroot are part of the sdk, so in the spec file i'm using: %files /usr/local/sdkroot ( with Prefix: /usr/local ) to put all the files into the rpm package. (Sorry, this IS a naive approach, but it's a start... and it's the direction I'm asked to follow.) Our customers need all binaries on a single target machine so they can develop multi-targeted apps. Our build is done on RedHat Linux 7.3. Unfortunately I don't (yet) have any other environments to test the rpm on, but i guess the rpm file will not by default install to platforms other than Linux 2.4.18-3, unless --ignorearch and --ignoreos are used. Maximum RPM shows how to use rpmrc entries to control architecture information, but i can't figure out how to use them to make my package installable to all platforms. I'd really appreciate some pointers and/or examples. And is it possible to have the independence provided by the spec file instead of rpmrc? That would make our solution more portable. thanks Alan -- _______________________________________________ Get your free email from http://mymail.operamail.com Powered by Outblaze
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!