Re: Packaging problems
sudarshan <[email protected]> Wed, 19 Oct 2005 06:56:27 -0700 (PDT)
| Newsgroups | gmane.linux.suse.ia64 |
|---|---|
| Message-ID | <[email protected]> |
--0-1370163975-1129730187=:99452
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi,
I am building my own sample package. I added few files and tried to build rpm package.
Iam adding some more infn on my scripts.These scripts are really not written by me , These were working for Redhat and iam trying them on SUSE.
In example.spec file its this way
%prep
# nothing
%build
#cd $RPM_BUILD_ROOT/../..
#make P=%{ras_ver}
%install
cd $RPM_BUILD_ROOT/../..
Then after executing spec file it runs %prep and %build properly and fails at %install as below.
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.51045
+ umask 022
+ cd /usr/src/packages/BUILD
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.51045
+ umask 022
+ cd /usr/src/packages/BUILD
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.51045
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
+ umask 022
+ cd /usr/src/packages/BUILD
chdir: could not get current directory: getcwd: cannot access parent director
Thanks in advance,
Sudarshan
Jeff Hanson <[email protected]> wrote:
sudarshan wrote:
> Hi, iam trying create packages in SUSE 9 IA64 machine. Iam getting the
> error below.
>
> " Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.23940
> shell-init: could not get current directory: getcwd: cannot access
> parent direct
> ories: No such file or directory "
>
> Has anybody come across with such an error. Please let me know if there
> are good links to know abt packagin in SUSE.
What rpm are you trying to build?
http://www.novell.com/coolsolutions/feature/11256.html is a discussion of
How To Create RPMs and Init Scripts That Are Compatible On Both SUSE Linux and Red Hat Linux
--
-----------------------------------------------------------------------
Jeff Hanson - [email protected] - Field Technical Analyst
You can choose a ready guide in some celestial voice.
If you choose not to decide, you still have made a choice.
You can choose from phantom fears and kindness that can kill;
I will choose a path that's clear
I will choose freewill. - Lee/Lifeson/Peart
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
--0-1370163975-1129730187=:99452
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV>Hi, </DIV>
<DIV>I am building my own sample package. I added few files and tried to build rpm package. </DIV>
<DIV>Iam adding some more infn on my scripts.These scripts are really not written by me , These were working for Redhat and iam trying them on SUSE. </DIV>
<DIV> </DIV>
<DIV>In example.spec file its this way </DIV>
<DIV> </DIV>
<DIV>%prep<BR># nothing</DIV>
<DIV><BR>%build<BR>#cd $RPM_BUILD_ROOT/../..<BR>#make P=%{ras_ver}</DIV>
<DIV> <BR>%install <BR>cd $RPM_BUILD_ROOT/../.. </DIV>
<DIV> </DIV>
<DIV>Then after executing spec file it runs %prep and %build properly and fails at %install as below.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.51045<BR>+ umask 022<BR>+ cd /usr/src/packages/BUILD<BR>+ exit 0<BR>Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.51045<BR>+ umask 022<BR>+ cd /usr/src/packages/BUILD<BR>+ exit 0<BR>Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.51045<BR>shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory<BR>+ umask 022<BR>+ cd /usr/src/packages/BUILD<BR>chdir: could not get current directory: getcwd: cannot access parent director</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks in advance, </DIV>
<DIV>Sudarshan</DIV>
<DIV><BR><BR><B><I>Jeff Hanson <[email protected]></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">sudarshan wrote:<BR>> Hi, iam trying create packages in SUSE 9 IA64 machine. Iam getting the <BR>> error below.<BR>> <BR>> " Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.23940<BR>> shell-init: could not get current directory: getcwd: cannot access <BR>> parent direct<BR>> ories: No such file or directory "<BR>> <BR>> Has anybody come across with such an error. Please let me know if there <BR>> are good links to know abt packagin in SUSE.<BR><BR>What rpm are you trying to build?<BR><BR>http://www.novell.com/coolsolutions/feature/11256.html is a discussion of<BR>How To Create RPMs and Init Scripts That Are Compatible On Both SUSE Linux and Red Hat Linux<BR>-- <BR>-----------------------------------------------------------------------<BR>Jeff Hanson - jhanso
[email protected] - Field Technical Analyst<BR><BR>You can choose a ready guide in some celestial
voice.<BR>If you choose not to decide, you still have made a choice.<BR>You can choose from phantom fears and kindness that can kill;<BR>I will choose a path that's clear<BR>I will choose freewill. - Lee/Lifeson/Peart<BR></BLOCKQUOTE><p>
<hr size=1> <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/">Yahoo! Music Unlimited - Access over 1 million songs. Try it free.</a>
--0-1370163975-1129730187=:99452--