FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Install

 
 
LinkBack Thread Tools
 
Old 10-08-2010, 02:06 PM
manju k
 
Default rpmbuild issue

Hello all,
I am using RedHat 6 Beta on intel 64bit system.


When I build my software with rpmbuild command, the rpms are not getting
generated in the directory specified in rpmmacros file(%_rpmdir)

This is what I am doing..
rpmbuild -bb -vv --buildroot <build root path> --target=x86_64 --rcfile
/tmp/rpmrc /tmp/mySpecfile.spec

# cat /tmp/rpmrc
macrofiles: /tmp/rpmmacros

# cat /tmp/rpmmacros
%_arch {$ARCH}
%_builddir /home/manju/build/mysoftware/temp/install
%_buildshell /bin/sh
%_rpmdir /home/manju/build/mysoftware/dest/ix86_linux24/images/
%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.{$ARCH}.rpm
%_tmppath /home/manju/build/mysoftware/install/tmp

So I expect the rpms to be present under the directory specified by %_rpmdir
but instead they are going to /root/rpmbuild/RPMS/x86_64 directory.How do I
address this ? Anyone has faced the same problem. Is this a bug ?

Thanks and Regards,
manju





_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe
 
Old 10-08-2010, 04:41 PM
Rick Stevens
 
Default rpmbuild issue

On 10/08/2010 07:06 AM, manju k wrote:


Hello all,
I am using RedHat 6 Beta on intel 64bit system.


Haven't used it. The fact it's beta leads one to believe it may have
bugs.


When I build my software with rpmbuild command, the rpms are not getting
generated in the directory specified in rpmmacros file(%_rpmdir)

This is what I am doing..
rpmbuild -bb -vv --buildroot<build root path> --target=x86_64 --rcfile
/tmp/rpmrc /tmp/mySpecfile.spec

# cat /tmp/rpmrc
macrofiles: /tmp/rpmmacros

# cat /tmp/rpmmacros
%_arch {$ARCH}
%_builddir /home/manju/build/mysoftware/temp/install
%_buildshell /bin/sh
%_rpmdir /home/manju/build/mysoftware/dest/ix86_linux24/images/
%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.{$ARCH}.rpm
%_tmppath /home/manju/build/mysoftware/install/tmp

So I expect the rpms to be present under the directory specified by %_rpmdir
but instead they are going to /root/rpmbuild/RPMS/x86_64 directory.How do I
address this ? Anyone has faced the same problem. Is this a bug ?


Judging by your commands above, it looks like you're trying the build
as the root user. I never do that unless absolutely necessary.

By default, rpmbuild builds things in $HOME/rpmbuild as you're seeing,
where "$HOME" is the home directory of the invoking user.

IIRC, the syntax is actually "--rcfile=/tmp/rpmrc" (including the "=").
You could try verifying by

rpmbuild --rcfile /tmp/rpmrc --showrc
and
rpmbuild --rcfile=/tmp/rpmrc --showrc

and seeing if there's a difference. I also think you need a "=" in the
"--buildroot=" option as well.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting ricks@nerd.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- The trouble with troubleshooting is that trouble sometimes -
- shoots back. -
----------------------------------------------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe
 
Old 10-09-2010, 04:53 PM
manju k
 
Default rpmbuild issue

But the command sytax that I am using works perfectly on 32bit systems. On 32bit
system the same command generates the rpm image under the

directory specified by %_rpmdir

I also tried your suggestion specifying "--buildroot=" and --rcfile= But no
change in results. rpm images still go under /root/rpmbuilds....

I feel its a bug.

regards,
manju



----- Original Message ----
From: Rick Stevens <ricks@nerd.com>
To: Getting started with Red Hat Linux <redhat-install-list@redhat.com>
Sent: Fri, October 8, 2010 10:11:34 PM
Subject: Re: rpmbuild issue

On 10/08/2010 07:06 AM, manju k wrote:
>
> Hello all,
> I am using RedHat 6 Beta on intel 64bit system.

Haven't used it. The fact it's beta leads one to believe it may have
bugs.

> When I build my software with rpmbuild command, the rpms are not getting
> generated in the directory specified in rpmmacros file(%_rpmdir)
>
> This is what I am doing..
> rpmbuild -bb -vv --buildroot<build root path> --target=x86_64 --rcfile
> /tmp/rpmrc /tmp/mySpecfile.spec
>
> # cat /tmp/rpmrc
> macrofiles: /tmp/rpmmacros
>
> # cat /tmp/rpmmacros
> %_arch {$ARCH}
> %_builddir /home/manju/build/mysoftware/temp/install
> %_buildshell /bin/sh
> %_rpmdir /home/manju/build/mysoftware/dest/ix86_linux24/images/
> %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.{$ARCH}.rpm
> %_tmppath /home/manju/build/mysoftware/install/tmp
>
> So I expect the rpms to be present under the directory specified by %_rpmdir
> but instead they are going to /root/rpmbuild/RPMS/x86_64 directory.How do I
> address this ? Anyone has faced the same problem. Is this a bug ?

Judging by your commands above, it looks like you're trying the build
as the root user. I never do that unless absolutely necessary.

By default, rpmbuild builds things in $HOME/rpmbuild as you're seeing,
where "$HOME" is the home directory of the invoking user.

IIRC, the syntax is actually "--rcfile=/tmp/rpmrc" (including the "=").
You could try verifying by

rpmbuild --rcfile /tmp/rpmrc --showrc
and
rpmbuild --rcfile=/tmp/rpmrc --showrc

and seeing if there's a difference. I also think you need a "=" in the
"--buildroot=" option as well.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting ricks@nerd.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- The trouble with troubleshooting is that trouble sometimes -
- shoots back. -
----------------------------------------------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe





_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe
 
Old 10-14-2010, 05:16 AM
manju k
 
Default rpmbuild issue

----- Original Message ----
From: manju k <m_a_n_j_u_s_k@yahoo.com>
To: Getting started with Red Hat Linux <redhat-install-list@redhat.com>
Sent: Sat, October 9, 2010 10:23:38 PM
Subject: Re: rpmbuild issue

But the command sytax that I am using works perfectly on 32bit systems. On 32bit

system the same command generates the rpm image under the

directory specified by %_rpmdir

I also tried your suggestion specifying "--buildroot=" and --rcfile= But no
change in results. rpm images still go under /root/rpmbuilds....

I feel its a bug.

regards,
manju



----- Original Message ----
From: Rick Stevens <ricks@nerd.com>
To: Getting started with Red Hat Linux <redhat-install-list@redhat.com>
Sent: Fri, October 8, 2010 10:11:34 PM
Subject: Re: rpmbuild issue

On 10/08/2010 07:06 AM, manju k wrote:
>
> Hello all,
> I am using RedHat 6 Beta on intel 64bit system.

Haven't used it. The fact it's beta leads one to believe it may have
bugs.

> When I build my software with rpmbuild command, the rpms are not getting
> generated in the directory specified in rpmmacros file(%_rpmdir)
>
> This is what I am doing..
> rpmbuild -bb -vv --buildroot<build root path> --target=x86_64 --rcfile
> /tmp/rpmrc /tmp/mySpecfile.spec
>
> # cat /tmp/rpmrc
> macrofiles: /tmp/rpmmacros
>
> # cat /tmp/rpmmacros
> %_arch {$ARCH}
> %_builddir /home/manju/build/mysoftware/temp/install
> %_buildshell /bin/sh
> %_rpmdir /home/manju/build/mysoftware/dest/ix86_linux24/images/
> %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.{$ARCH}.rpm
> %_tmppath /home/manju/build/mysoftware/install/tmp
>
> So I expect the rpms to be present under the directory specified by %_rpmdir
> but instead they are going to /root/rpmbuild/RPMS/x86_64 directory.How do I
> address this ? Anyone has faced the same problem. Is this a bug ?

Judging by your commands above, it looks like you're trying the build
as the root user. I never do that unless absolutely necessary.

By default, rpmbuild builds things in $HOME/rpmbuild as you're seeing,
where "$HOME" is the home directory of the invoking user.

IIRC, the syntax is actually "--rcfile=/tmp/rpmrc" (including the "=").
You could try verifying by

rpmbuild --rcfile /tmp/rpmrc --showrc
and
rpmbuild --rcfile=/tmp/rpmrc --showrc

and seeing if there's a difference. I also think you need a "=" in the
"--buildroot=" option as well.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting ricks@nerd.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- The trouble with troubleshooting is that trouble sometimes -
- shoots back. -
----------------------------------------------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe





_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe





_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe
 
Old 10-14-2010, 02:33 PM
manju k
 
Default rpmbuild issue

The issue got resolved. From rpm package 4.6 onwards the rpmmacros file
specified in rpmfc file is ignored.

so I had to specify the macros using --define option.
i.e. rpmbuild --define "_rpmdir /xyz/xyz/" ... ..




----- Original Message ----
From: manju k <m_a_n_j_u_s_k@yahoo.com>
To: Getting started with Red Hat Linux <redhat-install-list@redhat.com>
Sent: Thu, October 14, 2010 10:46:01 AM
Subject: Re: rpmbuild issue





----- Original Message ----
From: manju k <m_a_n_j_u_s_k@yahoo.com>
To: Getting started with Red Hat Linux <redhat-install-list@redhat.com>
Sent: Sat, October 9, 2010 10:23:38 PM
Subject: Re: rpmbuild issue

But the command sytax that I am using works perfectly on 32bit systems. On 32bit


system the same command generates the rpm image under the

directory specified by %_rpmdir

I also tried your suggestion specifying "--buildroot=" and --rcfile= But no
change in results. rpm images still go under /root/rpmbuilds....

I feel its a bug.

regards,
manju



----- Original Message ----
From: Rick Stevens <ricks@nerd.com>
To: Getting started with Red Hat Linux <redhat-install-list@redhat.com>
Sent: Fri, October 8, 2010 10:11:34 PM
Subject: Re: rpmbuild issue

On 10/08/2010 07:06 AM, manju k wrote:
>
> Hello all,
> I am using RedHat 6 Beta on intel 64bit system.

Haven't used it. The fact it's beta leads one to believe it may have
bugs.

> When I build my software with rpmbuild command, the rpms are not getting
> generated in the directory specified in rpmmacros file(%_rpmdir)
>
> This is what I am doing..
> rpmbuild -bb -vv --buildroot<build root path> --target=x86_64 --rcfile
> /tmp/rpmrc /tmp/mySpecfile.spec
>
> # cat /tmp/rpmrc
> macrofiles: /tmp/rpmmacros
>
> # cat /tmp/rpmmacros
> %_arch {$ARCH}
> %_builddir /home/manju/build/mysoftware/temp/install
> %_buildshell /bin/sh
> %_rpmdir /home/manju/build/mysoftware/dest/ix86_linux24/images/
> %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.{$ARCH}.rpm
> %_tmppath /home/manju/build/mysoftware/install/tmp
>
> So I expect the rpms to be present under the directory specified by %_rpmdir
> but instead they are going to /root/rpmbuild/RPMS/x86_64 directory.How do I
> address this ? Anyone has faced the same problem. Is this a bug ?

Judging by your commands above, it looks like you're trying the build
as the root user. I never do that unless absolutely necessary.

By default, rpmbuild builds things in $HOME/rpmbuild as you're seeing,
where "$HOME" is the home directory of the invoking user.

IIRC, the syntax is actually "--rcfile=/tmp/rpmrc" (including the "=").
You could try verifying by

rpmbuild --rcfile /tmp/rpmrc --showrc
and
rpmbuild --rcfile=/tmp/rpmrc --showrc

and seeing if there's a difference. I also think you need a "=" in the
"--buildroot=" option as well.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting ricks@nerd.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- The trouble with troubleshooting is that trouble sometimes -
- shoots back. -
----------------------------------------------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe





_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe





_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe





_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe
 

Thread Tools




All times are GMT. The time now is 10:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org