Fedora Linux Support Community & Resources Center
  #1  
Old 20th July 2008, 05:17 PM
RedFedora's Avatar
RedFedora Offline
Registered User
 
Join Date: May 2004
Posts: 503
rpmbuild error on Fedora 9

I have two source packages that I used to compile and build into rpm files on Fedora Core 6. Since I've upgraded to Fedora 9, neither package will make it through the rpmbuild process. The error I get from each package is:

Code:
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/bftpd-2.2
find: invalid predicate `'
error: Bad exit status from /var/tmp/rpm-tmp.83072 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.83072 (%install)
The name of the folder and tmp file changes with each package, but the error is the same.

I've tried editing the build scripts where it uses find, but I can't find anything that helps. Is anyone else getting this error and does anyone know a work around?

Thanks.
__________________
Registered Linux User # 373325
  #2  
Old 21st July 2008, 12:39 AM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
grep for the word "find" in /usr/lib/rpm/find-debuginfo.sh and /var/tmp/rpm-tmp.83072

It would help to see the specfile.
  #3  
Old 22nd July 2008, 12:29 AM
RedFedora's Avatar
RedFedora Offline
Registered User
 
Join Date: May 2004
Posts: 503
Sure, here goes. The results of grepping the rpm.tmp file are
Code:
grep find rpm-tmp.83072
   /usr/lib/rpm/find-debuginfo.sh   "/usr/src/redhat/BUILD/bftpd-2.2"

And here we have the results from grepping the find-debuginfo file

Code:
grep find find-debuginfo.sh
#find-debuginfo.sh - automagically generate debug info and file list
# Usage: find-debuginfo.sh [--strict-build-id] [-g]
find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \
find $RPM_BUILD_ROOT ! -path "${debugdir}/*" -type l -print |
  find "${RPM_BUILD_ROOT}/usr/src/debug" -type d -print0 |
  (cd "${RPM_BUILD_ROOT}/usr/lib"; find debug -type d) |
   test ! -d lib/debug || find lib/debug ! -type d
   test ! -d src/debug || find src/debug -mindepth 1 -maxdepth 1
  (cd "${RPM_BUILD_ROOT}"; find usr/lib/debug -type d) |


Last, but not least, this is the spec file
Code:
%define    name    bftpd
%define    version 2.2
%define    release 1
%define    prefix  /usr

Summary:   A small, fast and easy-to-configure FTP server.
Name:      %{name}
Version:   %{version}
Release:   %{release}
License:   GPL
Group:     System Environment/Daemons
Vendor:    Jesse Smith <jessefrgsmith@yahoo.ca>
URL:       http://bftpd.sourceforge.net/
Source0:   http://bftpd.sourceforge.net/downloads/rpm/%{name}-%{version}.tar.gz
BuildArch: i386
#BuildRoot: /var/tmp/%{name}-root
Provides:  bftpd

%description
A very configurable small FTP server
bftpd is a easy-to-configure and small FTP server that supports chroot
without special directory preparation or configuration. Most FTP commands
are supported.

%prep
%setup

%build
make

%install
make install

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%config(noreplace) %verify(not mtime) /etc/bftpd.conf
%{prefix}/sbin/bftpd
%{prefix}/share/man/man8/bftpd.8

%changelog

Any direction you can give me would be great, thank you.
__________________
Registered Linux User # 373325
  #4  
Old 22nd July 2008, 12:41 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
Here is a bftpd.spec file and also attached are a patch and src.rpm for bftpd, if you are interested in trying them out?

Seve
Attached Files
File Type: patch bftpd-2.0_install.patch (2.2 KB, 130 views)
File Type: rpm bftpd-2.2-1.fc9.src.rpm (128.0 KB, 95 views)
File Type: spec bftpd.spec (1.8 KB, 224 views)
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
  #5  
Old 22nd July 2008, 01:31 PM
RedFedora's Avatar
RedFedora Offline
Registered User
 
Join Date: May 2004
Posts: 503
I'll try that, thank you.
__________________
Registered Linux User # 373325
  #6  
Old 23rd July 2008, 01:18 AM
RedFedora's Avatar
RedFedora Offline
Registered User
 
Join Date: May 2004
Posts: 503
The patches were nice, but I still got the error. A little more digging led me to this line on line 337 of the script /usr/lib/rpm/find-debuginfo.sh

Code:
find "$RPM_BUILD_ROOT"  ! -path "/usr/lib/debug/*.debug" -type f \
It turns out that RPM_BUILD_ROOT is not set and comes up NULL, which caused find to error out. Replacing the variable name with a hard-coded location fixes the problem.
__________________
Registered Linux User # 373325
  #7  
Old 29th August 2012, 08:08 AM
cnd99 Offline
Registered User
 
Join Date: Aug 2012
Location: Home
Posts: 1
windows_7chrome
Re: rpmbuild error on Fedora 9

Do this before you build to fix the problem:


export RPM_BUILD_ROOT=/usr/src/redhat/BUILD/

Enjoy.

Last edited by DBelton; 29th August 2012 at 03:32 PM. Reason: Removed super large fonts that make it hard to read.
  #8  
Old 29th August 2012, 03:33 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: rpmbuild error on Fedora 9

This thread was over 4 years old that you responded to. I would hope that they had their issue fixed before now

Going to close up this really old thread.
Closed Thread

Tags
error, fedora, rpmbuild

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help required re: rpmbuild error on f-spot psyklops Using Fedora 4 21st May 2006 01:28 AM
rpmbuild with php-4.3-4 get error ? bonghongxanh Using Fedora 3 31st March 2005 05:47 PM
rpmbuild error problem? ngkawai81 Using Fedora 0 25th February 2005 03:56 AM


Current GMT-time: 10:42 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat