Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
outdated ebuild ysm-2.7.1??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Wed Jan 15, 2003 10:33 pm    Post subject: outdated ebuild ysm-2.7.1?? Reply with quote

hi there!
i just installed ysm-2.7.1 which is the latest ebuild version.
installed it and run it. almost the first thing it says is: GET THE NEW VERSION 2.8.1!

I got it. build it. run it. It's way better! :D
but the build is located at /usr/local/bin while the ebuild is locatet at /usr/bin. :?
i like much more the ebuild way, but this old version sucks.

is there someone working on 2.8.1 right now :?:
would apprechiate it!

regards
/christian
Back to top
View user's profile Send private message
kutsuya
Retired Dev
Retired Dev


Joined: 21 Oct 2002
Posts: 189

PostPosted: Thu Jan 16, 2003 3:57 am    Post subject: Re: outdated ebuild ysm-2.7.1?? Reply with quote

caefer wrote:

is there someone working on 2.8.1 right now :?:
would apprechiate it!


Hi,

Yes, it looks like someone submitted an ebuild. bug # 12112

bugs.gentoo.org is a great place to look for ebuilds that are not currently in the portage.

Regards,

--Kutsuya
Back to top
View user's profile Send private message
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Thu Jan 16, 2003 5:49 am    Post subject: Reply with quote

hey, you're right! thanks a lot.
is there a way to emerge that ebuild directly?

regards
/christian
Back to top
View user's profile Send private message
kutsuya
Retired Dev
Retired Dev


Joined: 21 Oct 2002
Posts: 189

PostPosted: Thu Jan 16, 2003 11:53 pm    Post subject: How to install a custom ebuild. Reply with quote

I can explain how I would try to do it. I'll assume you haven't set PORTDIR_OVERLAY.

Code:

# nano -w /etc/make.conf


Search for PORTDIR_OVERLAY. It should look similar to this after editing:
Code:

PORTDIR_OVERLAY=/usr/local/portage


If you just did the above, then /usr/local/portage probably doesn't exist yet.

Code:

# mkdir -p /usr/local/portage


Now you have found an updated ebuild you want to custom install. We need to figure out where the correct place to place it is located. In this case we are looking for ysm a ICQ client.

Code:

kutsuya python # emerge ysm -s
Searching...   
[ Results for search key : ysm ]
[ Applications found : 2 ]
 
*  net-im/ysm
      Latest version available: 2.7.1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 83 kB
      Homepage:    http://ysmv7.sourceforge.net/
      Description: A console ICQ client supporting versions 7/8
...

That looks like the ysm we are interested in custom upgrading. Now the data to play close attention to now is net-im/ysm. We need to add that directory into the PORTDIR_OVERLAY path. I'll assume this is a new path. We also need a files/ directory in ysm/, because that is where portage will save the digest and other possible files needed for the ebuild (patches, config files, etc.).

Code:

# mkdir -p /usr/local/portage/net-im/ysm/files
# cd /usr/local/portage/net-im/ysm


It's now time to place the ebuild in the directory we just made. Take a last look at the ebuild to make sure it won't do anything nasty to your system. For example, check the SRC_URI to see if that looks like the correct file you want to install, and look at the bash script for things you wouldn't except. Save the ebuild as ysm-2.8.1.ebuild in the /usr/local/portage/net-im/ysm directory. (I did this in mozilla as a File-Save as...)

Now we check if portage can find it:

Code:

kutsuya ysm # emerge ysm -p

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N   ] net-im/ysm-2.8.1

kutsuya ysm # emerge ysm
Calculating dependencies ...done!
>>> emerge (1 of 1) net-im/ysm-2.8.1 to /
...
>>> Downloading mirror://sourceforge/ysmv7/ysmv7_2_8_1.tar.bz2
mirror://sourceforge/ysmv7/ysmv7_2_8_1.tar.bz2: Unsupported scheme.
!!! Couldn't download ysmv7_2_8_1.tar.bz2. Aborting.



'Unsupported scheme' probably means it doesn't understand 'mirror://' on my box. So let's edit SRC_URI in the new ebuild. Edit ysm-2.8.1.ebuild, and change SRC_URI to:

Code:

SRC_URI="unc.dl.sourceforge.net/sourceforge/ysmv7/${PN}v7_${MY_PV}.tar.bz2"


Now let's try to emerge again:

Code:

kutsuya ysm # emerge ysm -f
Calculating dependencies ...done!
>>> emerge (1 of 1) net-im/ysm-2.8.1 to /
>>> Downloading http://www.ibiblio.org/gentoo/distfiles/ysmv7_2_8_1.tar.bz2
--13:31:37--  http://www.ibiblio.org/gentoo/distfiles/ysmv7_2_8_1.tar.bz2
           => `/usr/portage/distfiles/ysmv7_2_8_1.tar.bz2'
Resolving www.ibiblio.org... done.
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/ysmv7_2_8_1.tar.bz2 [following]
--13:31:38--  http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/ysmv7_2_8_1.tar.bz2
           => `/usr/portage/distfiles/ysmv7_2_8_1.tar.bz2'
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:31:42 ERROR 404: Not Found.

>>> Downloading unc.dl.sourceforge.net/sourceforge/ysmv7/ysmv7_2_8_1.tar.bz2
--13:31:42--  http://unc.dl.sourceforge.net/sourceforge/ysmv7/ysmv7_2_8_1.tar.bz2
           => `/usr/portage/distfiles/ysmv7_2_8_1.tar.bz2'
Resolving unc.dl.sourceforge.net... done.
Connecting to unc.dl.sourceforge.net[152.2.210.121]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 163,525 [application/x-bzip2]

100%[====================================>] 163,525        2.57K/s    ETA 00:00

13:32:46 (2.57 KB/s) - `/usr/portage/distfiles/ysmv7_2_8_1.tar.bz2' saved [163525/163525]

!!! No message digest file found: /usr/local/portage/net-im/ysm/files/digest-ysm-2.8.1
!!! Type "ebuild foo.ebuild digest" to generate a digest.

Not to worry, since ysm-2.8.1.ebuild didn't come by means of 'emerge rsync' it probably don't have a digest for it yet. 'foo' is a made-up programmer's term that you are suppost to replace with whatever should go there.

Code:

kutsuya ysm # ebuild kutsuya ysm # ebuild /usr/local/portage/net-im/ysm/ysm-2.8.1.ebuild digest
>>> Generating digest file...
>>> Computed message digests.


Success! :D If it didn't work for you, check the path and spelling for the ebuild.

Here is what could happen if we don't get a complete download:

Code:

kutsuya ysm # emerge ysm
Calculating dependencies ...done!
>>> emerge (1 of 1) net-im/ysm-2.8.1 to /
>>> md5 ;-) ysmv7_2_8_1.tar.bz2
>>> Unpacking source...
>>> Unpacking ysmv7_2_8_1.tar.bz2

bzip2: Compressed file ends unexpectedly;
   perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
   Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Error exit delayed from previous errors

!!! ERROR: net-im/ysm-2.8.1 failed.
!!! Function unpack, Line 285, Exitcode 2
!!! failure unpacking ysmv7_2_8_1.tar.bz2


NOTE: This problem is caused if you have and incomplete ysm-2.8.1 downloaded. And example

Code:

Resolving unc.dl.sourceforge.net... done.
Connecting to unc.dl.sourceforge.net[152.2.210.121]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 163,525 [application/x-bzip2]

14% [====>                                ] 24,304         2.74K/s    ETA 00:49Killed

kutsuya ysm # emerge ysm
Calculating dependencies ...done!
>>> emerge (1 of 1) net-im/ysm-2.8.1 to /
!!! No message digest file found: /usr/local/portage/net-im/ysm/files/digest-ysm-2.8.1
!!! Type "ebuild foo.ebuild digest" to generate a digest.

kutsuya ysm # ebuild /usr/local/portage/net-im/ysm/ysm-2.8.1.ebuild digest
>>> Generating digest file...
>>> Computed message digests.


To fix this problem you need to delete the ysmv7_2_8_1 file and its digest for it.

Code:
 
 # rm /usr/portage/distfiles/ysmv7_2_8_1.tar.bz2
 # rm /usr/local/portage/net-im/ysm/files/digest-ysm-2.8.1
 # ebuild /usr/local/portage/net-im/ysm/ysm-2.8.1.ebuild digest


Ok, now assuming we have a complete file:

Code:

kutsuya ysm # emerge ysm
Calculating dependencies ...done!
>>> emerge (1 of 1) net-im/ysm-2.8.1 to /
>>> md5 ;-) ysmv7_2_8_1.tar.bz2
>>> Unpacking source...
>>> Unpacking ysmv7_2_8_1.tar.bz2
>>> Source unpacked.
...
>>> Regenerating /etc/ld.so.cache...
>>> net-im/ysm-2.8.1 merged.
>>> Recording net-im/ysm in "world" favorites file...

 net-im/ysm
    selected: none
   protected: 2.8.1
     omitted: none

>>> clean: No packages selected for removal.

>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.


This is a good sign that everything went well. Ysm-2.8.1 is installed.

This process is similar with adding other custom ebuilds.

Becareful and have fun! :D

--Kutsuya

edit: more specific about which files to delete if we have an incomplete download.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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