Sponsored Content
Operating Systems Linux Red Hat rpmbuild error --- Symlink points to BuildRoot: Post 302571069 by alexzander18 on Sunday 6th of November 2011 01:46:44 AM
Old 11-06-2011
rpmbuild error --- Symlink points to BuildRoot:

hi all,
i am trying to create rpm for bzip2,
in building i am getting following error message. also i am building as non-root user.


Code:
+ rm -rf /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzcmp
+ ln -s -f /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzdiff /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzcmp
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: bzip2-1.0.6-6.i386
error: Symlink points to BuildRoot: /usr/local/bin/bzcmp -> /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzdiff
error: Symlink points to BuildRoot: /usr/local/bin/bzegrep -> /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzgrep
error: Symlink points to BuildRoot: /usr/local/bin/bzfgrep -> /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzgrep
error: Symlink points to BuildRoot: /usr/local/bin/bzless -> /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzmore


RPM build errors:
    Symlink points to BuildRoot: /usr/local/bin/bzcmp -> /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzdiff
    Symlink points to BuildRoot: /usr/local/bin/bzegrep -> /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzgrep
    Symlink points to BuildRoot: /usr/local/bin/bzfgrep -> /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzgrep
    Symlink points to BuildRoot: /usr/local/bin/bzless -> /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzmore



It seams it is creating sybilic links in BUILDROOT.
I have seen similar threads before.But i am still not getting how to solve this problem. perhaps i need to a add some changes to install section of my spec file.
install section sample of my bzip2.spec file is as follows

Code:
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall  DESTDIR=$RPM_BUILD_ROOT   PREFIX=$RPM_BUILD_ROOT/usr/local

%clean

any help will be usefull Smilie

Last edited by pludi; 11-06-2011 at 06:28 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Gnuplot question: how to plot 3D points as colored points in map view?

I have a simple gnuplot question. I have a set of points (list of x,y,z values; irregularly spaced, i.e. no grid) that I want to plot. I want the plot to look like this: - points in map view (no 3D view) - color of each point should depend on its z-value. - I want to define my own color scale -... (0 Replies)
Discussion started by: karman
0 Replies

2. Red Hat

rpmbuild error

Hi, So i am trying to wu-ftpd on my centos 5 Machine I download src.rpm file from redhat site. File name is : wu-ftpd-2.6.1-20.src.rpm This is what i did to install. rpm -ivh wu-ftpd-2.6.1-20.src.rpm cd /usr/src/redhat/SPECS/ after this i ran this command: rpmbuild -bb... (0 Replies)
Discussion started by: email-lalit
0 Replies

3. UNIX for Dummies Questions & Answers

creating symlink

hi... I have a folder<abc> under /root folder. I want to create a symlink such that when i click on folder<abc> under root, should display my home folder (home/krish). Immediate inputs appreciated..... (1 Reply)
Discussion started by: rama.honge
1 Replies

4. AIX

rpmbuild for AIX

Help ! Could someone please tell me where I can get the "rpmbuild" binary for AIX ? I'm on AIX 6.1 and a web site http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/ezinstall.html has the RPM for "rpm-build" but all it contains is a few scripts etc. and it doesn't include... (4 Replies)
Discussion started by: harryw
4 Replies

5. Linux

rpmbuild on CentOS

Hi I have installed Linux CentOS release 5.3 (kernel 2.6.18-128.EL5PAE) on the server with following details : Model : HP ProLiant BL460c G7 After installing OS I’m not able to see the NICs installed on the machine. I installed rpm file from the link: ... (0 Replies)
Discussion started by: girish_shukla
0 Replies

6. Shell Programming and Scripting

ln -s creates symlink in symlink, if [ -f ... ] says file that exists doesn't exist

Hi Forums, I got a little problem, I made a few modifications to the code of the launch script of a testing server(minecraft) and now updating is broken aswell as the automatic directory creation. These Lines somehow create an endless symlink that refers to itself and I don't know how to fix... (0 Replies)
Discussion started by: Xaymar
0 Replies

7. Linux

rpmbuild, how to specify a different source and destination path for files

I'd like to specify a different build and deployment path for files, by default the same path is used for both build and install, I wasn't able to find a way to make these different. With Solaris pkgadd, one can specify different paths in prototype, so I would assume something like that is possible... (0 Replies)
Discussion started by: tiburblium
0 Replies

8. Shell Programming and Scripting

Symlink creation

I am trying to setup my plex server to use symlinks rather than host the movie files. in my storage directory, i have both movies(some in subdirectory of the name and some just in the parent directory) and tvshows, which have subdirectories for each season, which contains the episodes i would... (3 Replies)
Discussion started by: bandion
3 Replies

9. UNIX for Beginners Questions & Answers

Symlink

I know how to create a symlink but I am getting an error message that the file already exists. Also, my symlink doesn't point from target directory to the path correctly, Here is an example of the path to my folder structure path: cd /wkspce/wff/DEV/jobs/DEL the folder structure is: ... (3 Replies)
Discussion started by: dellanicholson
3 Replies
BZGREP(1)						      General Commands Manual							 BZGREP(1)

NAME
bzgrep, bzfgrep, bzegrep - search possibly bzip2 compressed files for a regular expression SYNOPSIS
bzgrep [ grep_options ] [ -e ] pattern filename... bzegrep [ egrep_options ] [ -e ] pattern filename... bzfgrep [ fgrep_options ] [ -e ] pattern filename... DESCRIPTION
Bzgrep is used to invoke the grep on bzip2-compressed files. All options specified are passed directly to grep. If no file is specified, then the standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep. If bzgrep is invoked as bzegrep or bzfgrep then egrep or fgrep is used instead of grep. If the GREP environment variable is set, bzgrep uses it as the grep program to be invoked. For example: for sh: GREP=fgrep bzgrep string files for csh: (setenv GREP fgrep; bzgrep string files) AUTHOR
Charles Levert (charles@comm.polymtl.ca). Adapted to bzip2 by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. SEE ALSO
grep(1), egrep(1), fgrep(1), bzdiff(1), bzmore(1), bzless(1), bzip2(1) BZGREP(1)
All times are GMT -4. The time now is 05:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy