Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problem using buildroot, Problem detecting java sdk

 
   Soft32 Home -> Linux -> Partner Relationship Management RSS
Next:  builid RPM files  
Author Message
mebulbal

External


Since: Oct 21, 2007
Posts: 1



(Msg. 1) Posted: Sun Oct 21, 2007 3:53 am
Post subject: Problem using buildroot, Problem detecting java sdk
Archived from groups: linux>redhat>rpm (more info?)

Hi
I have two problems :
1. I am trying to work on another path than /usr/src/redhat/
I have cannot understand why I cant rid of :
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.96933
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD

seems that my system ignores buildroot.

Summary: My latest plan to take over the world
Name: yaron
Version: 8.1
Release: 1
Group: Applications/Communications
License: GPL
AutoReqProv: no
Requires: jdk-1.6.0_01-fcs
Source: /usr/src/redhat/SOURCES/netxplorer.tgz
%description
Itay is my baby
%prep
chmod 775 /etc/sudoers
%setup -n opt
%install
%post


seems that nothing works to put my buildroot.

2. I canot I tried to check java sdk - jdk-1.6.0_01-fcs, but even when
Its installed I get error that I should install it ...

rpm -ivh yaron.rpm
error: Failed dependencies:
jdk-1.6.0_01-fcs is needed by yaron
[nxbuild@ybar-xp1 ~]$ rpm -q jdk
jdk-1.6.0_01-fcs
Back to top
Login to vote
Michal Jaegermann

External


Since: Jul 20, 2003
Posts: 70



(Msg. 2) Posted: Sun Oct 21, 2007 3:41 pm
Post subject: Re: Problem using buildroot, Problem detecting java sdk [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

mebulbal.DeleteThis@gmail.com wrote:
> I have two problems :
> 1. I am trying to work on another path than /usr/src/redhat/

Very good. Working on building new rpms from a root account is
a loosing proposition. Change %_topdir in your own ~/.rpmmacros.

> I have cannot understand why I cant rid of :
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.96933

What this has to do with the above? Run 'rpmbuild --showrc | less'
to see what you have defined now and how. Checks like
'rpm --eval %_topdir' or 'rpm --eval %_builddir' can be of help
too.

> seems that my system ignores buildroot.

It rather appears that there is a misunderstanding what is used for
what.

> Requires: jdk-1.6.0_01-fcs

It appears that you really want

Requires: jdk

or, if that has to be _that_ specific, something like

Requires: jdk = 1.6.0_01-fcs

See
http://docs.fedoraproject.org/drafts/rpm-guide-en/ch05s02.html#id2952678
http://docs.fedoraproject.org/drafts/rpm-guide-en/ch-advanced-packagin...tml#id2

> 2. I canot I tried to check java sdk - jdk-1.6.0_01-fcs, but even when
> Its installed I get error that I should install it ...
>
> rpm -ivh yaron.rpm
> error: Failed dependencies:
> jdk-1.6.0_01-fcs is needed by yaron
> [nxbuild@ybar-xp1 ~]$ rpm -q jdk
> jdk-1.6.0_01-fcs

If there is no mixup in architectures (this is not clear from the
above) then apparently you require a package with a name
"jdk-1.6.0_01-fcs" but you have installed a package with a name "jdk"
and "1.6.0_01-fcs" version (and who knows what release).

Michal
Back to top
Login to vote
yaron

External


Since: Oct 29, 2007
Posts: 1



(Msg. 3) Posted: Mon Oct 29, 2007 3:30 am
Post subject: Re: Problem using buildroot, Problem detecting java sdk [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 21, 10:41 pm, Michal Jaegermann
<mic... RemoveThis @gortel.phys.ualberta.ca> wrote:
> mebul... RemoveThis @gmail.com wrote:
> > I have two problems :
> > 1. I am trying to work on another path than /usr/src/redhat/
>
> Very good. Working on building new rpms from a root account is
> a loosing proposition. Change %_topdir in your own ~/.rpmmacros.
>
> > I have cannot understand why I cant rid of :
> > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.96933
>
> What this has to do with the above? Run 'rpmbuild --showrc | less'
> to see what you have defined now and how. Checks like
> 'rpm --eval %_topdir' or 'rpm --eval %_builddir' can be of help
> too.
>
> > seems that my system ignores buildroot.
>
> It rather appears that there is a misunderstanding what is used for
> what.
>
> > Requires: jdk-1.6.0_01-fcs
>
> It appears that you really want
>
> Requires: jdk
>
> or, if that has to be _that_ specific, something like
>
> Requires: jdk = 1.6.0_01-fcs
>
> Seehttp://docs.fedoraproject.org/drafts/rpm-guide-en/ch05s02.html#id29...78http:
>
> > 2. I canot I tried to check java sdk - jdk-1.6.0_01-fcs, but even when
> > Its installed I get error that I should install it ...
>
> > rpm -ivh yaron.rpm
> > error: Failed dependencies:
> > jdk-1.6.0_01-fcs is needed by yaron
> > [nxbuild@ybar-xp1 ~]$ rpm -q jdk
> > jdk-1.6.0_01-fcs
>
> If there is no mixup in architectures (this is not clear from the
> above) then apparently you require a package with a name
> "jdk-1.6.0_01-fcs" but you have installed a package with a name "jdk"
> and "1.6.0_01-fcs" version (and who knows what release).
>
> Michal

Thanks Michal.
I solved the jdk problem by :
Requires: jdk = 2000:1.6.0_01
I found this on : http://www.redhat.com/archives/rpm-list/2006-August/msg00071.html
As for changing /usr/src/redhat... I am still cheching.\
Thanks anyway.
Mebulbal.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Symbolic link to java problem - I did a fresh install of RH 9 without mozilla. I used Galeon to get Mozilla 1.5 and installed this ok into..

Odd Buildroot problems - Hello All, I'm having problems building a package using the buildroot feature. This package successfully builds when..

problem - hi! I am a newbie to rpm-tar.gz build so when I do a rpm-ba to a .spec file I got this reply from rpm-the packages don'...

more problem with 'Requires' - hello , please also let me know how to write more than one packages in the 'Requires' section of spec file, in the rpm...

RPM 4.1 Problem - Hi there, I have a problem using rpm -4.1, when i try to use it i get messages like these: error: Failed..

Download problem - I have tried 5 times to download the new rpm's for authentication with RHN, but the one that goes with 'gnome' (I can't...
       Soft32 Home -> Linux -> Partner Relationship Management All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]