Find the answer to your Linux question:
Results 1 to 2 of 2
I've been learning how to build rpm packages from this site . I have created the following spec file in my /home/kevin/rpm/cdp directory: Code: # # Example spec file for ...
  1. #1
    Just Joined! KPolulak's Avatar
    Join Date
    Feb 2009
    Location
    New Jersey, USA
    Posts
    42

    Question Problems with rpmbuild

    I've been learning how to build rpm packages from this site.

    I have created the following spec file in my /home/kevin/rpm/cdp directory:
    Code:
    #
    # Example spec file for cdplayer app...
    #
    BuildRoot: /home/kevin/rpm/cdp
    Summary: A CD player app that rocks!
    Name: cdp
    Version: 0.33
    Release: 1
    License: GPL
    Group: Applications/Multimedia
    Source: ftp://ftp.gnomovision.com/pub/cdp/cdp-0.33.tar.gz
    URL: http://gnomovision.com/cdp/cdp.html
    Distribution: WSS Linux
    Vendor: White Soccks Software, Inc.
    Packager: Santa Claus <sclaus@northpole.com>
    
    %description
    It slices!  It dices! It's a CD player app that can't be beat.  By using the resonant frequency of the CD itself, it is able to simulate 20x oversampling.  This leads to sound quality that cannot be equaled with more mundane software...
    
    %prep
    %setup
    
    %build
    make
    
    %install
    make install
    
    %files
    %doc README
    /usr/local/man/man1/cdp.1
    /usr/local/bin/cdp
    (Yes, all that cheesy and embarrassing stuff is from the book)

    I am going through each stage of the build process one at a time but when I issue (from /home/kevin/rpm/cdp/SPECS):
    Code:
    rpmbuild -bp cdp-0.33.spec
    I get this:
    Code:
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.84539          
    + umask 022                                                  
    + cd /usr/src/packages/BUILD                                 
    + cd /usr/src/packages/BUILD                                 
    + rm -rf cdp-0.33                                            
    + /usr/bin/gzip -dc /usr/src/packages/SOURCES/cdp-0.33.tar.gz
    + tar -xvvf -                                                
    drwxr-xr-x vectro/users      0 1999-08-20 11:13 var/tmp/cdp-0.33/
    -rw-r--r-- vectro/users  17982 1995-11-10 01:10 var/tmp/cdp-0.33/COPYING
    -rw-r--r-- vectro/users    627 1995-11-10 01:10 var/tmp/cdp-0.33/ChangeLog
    -rw-r--r-- vectro/users    482 1995-11-10 01:11 var/tmp/cdp-0.33/INSTALL  
    -rw-r--r-- vectro/users   1709 1995-11-10 01:10 var/tmp/cdp-0.33/Makefile 
    -rw-r--r-- vectro/users   1085 1995-11-10 01:10 var/tmp/cdp-0.33/README   
    -rw-r--r-- vectro/users   1164 1995-11-10 01:22 var/tmp/cdp-0.33/cdp-0.33.lsm
    -rw-r--r-- vectro/users   4550 1995-11-10 01:10 var/tmp/cdp-0.33/cdp.1       
    -rw-r--r-- vectro/vectro 21294 1999-08-20 11:13 var/tmp/cdp-0.33/cdp.c       
    -rw-r--r-- vectro/vectro  1894 1999-08-20 11:13 var/tmp/cdp-0.33/cdp.h       
    -rw-r--r-- vectro/users    485 1995-11-10 01:10 var/tmp/cdp-0.33/cdpa.h      
    -rw-r--r-- vectro/users   1789 1995-11-10 01:10 var/tmp/cdp-0.33/color.c     
    -rw-r--r-- vectro/users    755 1995-11-10 01:10 var/tmp/cdp-0.33/color.h     
    -rw-r----- vectro/users  30571 1995-11-10 01:10 var/tmp/cdp-0.33/database.c  
    -rw-r--r-- vectro/users    646 1995-11-10 01:10 var/tmp/cdp-0.33/database.h  
    -rw-r--r-- vectro/users    204 1995-11-10 01:10 var/tmp/cdp-0.33/db.c        
    -rw-r--r-- vectro/users      0 1995-11-10 01:10 var/tmp/cdp-0.33/db.h        
    -rw-r--r-- vectro/users  18180 1995-11-10 01:10 var/tmp/cdp-0.33/display.c   
    -rw-r--r-- vectro/users   1843 1995-11-10 01:10 var/tmp/cdp-0.33/display.h   
    -rw-r--r-- vectro/users   6277 1995-11-10 01:10 var/tmp/cdp-0.33/getline.c   
    -rw-r--r-- vectro/users    829 1995-11-10 01:10 var/tmp/cdp-0.33/getline.h   
    -rw-r--r-- vectro/users  63864 1995-11-10 01:11 var/tmp/cdp-0.33/gmon.out    
    -rw-r--r-- vectro/users  14239 1995-11-10 01:10 var/tmp/cdp-0.33/hardware.c  
    -rw-r--r-- vectro/users   2001 1995-11-10 01:10 var/tmp/cdp-0.33/hardware.h  
    -rw-r--r-- vectro/users   2015 1995-11-10 01:10 var/tmp/cdp-0.33/misc.c      
    -rw-r--r-- vectro/users   1337 1995-11-10 01:10 var/tmp/cdp-0.33/misc.h      
    -rw-r--r-- vectro/users   2720 1995-11-10 01:10 var/tmp/cdp-0.33/struct.h    
    -rw-r--r-- vectro/users    730 1995-11-10 01:10 var/tmp/cdp-0.33/vol.c       
    -rw-r--r-- vectro/users   2806 1995-11-10 01:10 var/tmp/cdp-0.33/volume.c    
    -rw-r--r-- vectro/users   1515 1995-11-10 01:10 var/tmp/cdp-0.33/volume.h    
    -rw-r--r-- vectro/vectro 21379 1999-08-18 17:19 var/tmp/cdp-0.33/cdp.c.orig  
    -rw-r--r-- vectro/vectro  1904 1999-08-18 17:16 var/tmp/cdp-0.33/cdp.h.orig  
    + STATUS=0                                                                   
    + '[' 0 -ne 0 ']'                                                            
    + cd cdp-0.33                                                                
    /var/tmp/rpm-tmp.84539: line 29: cd: cdp-0.33: No such file or directory     
    error: Bad exit status from /var/tmp/rpm-tmp.84539 (%prep)                   
    
    
    RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.84539 (%prep)
    For some reason, it continues to use the default build root (/usr/src/packages) rather than what I set the "BuildRoot" tag to.

  2. #2
    Just Joined!
    Join Date
    Oct 2008
    Posts
    30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...