Не устанавливается пакет из локального оверлея

Пытаюсь поставить пакет из ебилда для wifi свистка, не получается и не могу понять что он хочет

 # USE="-debug" emerge net-wireless/rt2870usb 
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.


Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-wireless/rt2870usb-2.4.0.1-r2 from x-portage
 * 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                            [ ok ]
 * Package:    net-wireless/rt2870usb-2.4.0.1-r2
 * Repository: x-portage
 * USE:        amd64 cdistro_CLD cdistro_desktop elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.38.6-calculate/build
 * Found sources for kernel version:
 *     2.6.38.6-calculate
 * Checking for suitable kernel configuration options...                                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 to /var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/work
>>> Source unpacked in /var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/work
>>> Compiling source in /var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/work/2010_0709_RT2870_Linux_STA_v2.4.0.1 ...

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/local/portage/net-wireless/rt2870usb/files/rt2870usb-2.4.0.1-usb_alloc_free.patch
 *   ( rt2870usb-2.4.0.1-usb_alloc_free.patch )

 * ERROR: net-wireless/rt2870usb-2.4.0.1-r2 failed (compile phase):
 *   Cannot find $EPATCH_SOURCE!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3589:  Called epatch '/usr/local/portage/net-wireless/rt2870usb/files/rt2870usb-2.4.0.1-usb_alloc_free.patch'
 *   environment, line 1386:  Called die
 * The specific snippet of code:
 *               die "Cannot find \$EPATCH_SOURCE!";
 * 
 * If you need support, post the output of 'emerge --info =net-wireless/rt2870usb-2.4.0.1-r2',
 * the complete build log and the output of 'emerge -pqv =net-wireless/rt2870usb-2.4.0.1-r2'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/temp/environment'.
 * S: '/var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/work/2010_0709_RT2870_Linux_STA_v2.4.0.1'

>>> Failed to emerge net-wireless/rt2870usb-2.4.0.1-r2, Log file:

>>>  '/var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/temp/build.log'

 * Messages for package net-wireless/rt2870usb-2.4.0.1-r2:

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/local/portage/net-wireless/rt2870usb/files/rt2870usb-2.4.0.1-usb_alloc_free.patch
 *   ( rt2870usb-2.4.0.1-usb_alloc_free.patch )
 * ERROR: net-wireless/rt2870usb-2.4.0.1-r2 failed (compile phase):
 *   Cannot find $EPATCH_SOURCE!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3589:  Called epatch '/usr/local/portage/net-wireless/rt2870usb/files/rt2870usb-2.4.0.1-usb_alloc_free.patch'
 *   environment, line 1386:  Called die
 * The specific snippet of code:
 *               die "Cannot find \$EPATCH_SOURCE!";
 * 
 * If you need support, post the output of 'emerge --info =net-wireless/rt2870usb-2.4.0.1-r2',
 * the complete build log and the output of 'emerge -pqv =net-wireless/rt2870usb-2.4.0.1-r2'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/temp/environment'.
 * S: '/var/calculate/tmp/portage/net-wireless/rt2870usb-2.4.0.1-r2/work/2010_0709_RT2870_Linux_STA_v2.4.0.1'

У тебя отсутствует файл патча в локальном репозитарии - /usr/local/portage/net-wireless/rt2870usb/files/rt2870usb-2.4.0.1-usb_alloc_free.patch Скорее всего просто в имени ошибся, когда сохранял. У меня норм ставится. Ну, до компиляции доходит, точнее ^_^

И сделай наконец

echo local >/usr/local/portage/profiles/repo_name

Михаил Гагауз wrote:

И сделай наконец

echo local >/usr/local/portage/profiles/repo_name

да некогда , на скорость же не влияет :)))

просто там не хватало еще патчей
Патчи, которые должны входить в последний билд:
rt2870usb-2.4.0.1-usb_alloc_free.patch
rt2870usb-2.4.0.1-unified.patch
rt2870usb-2.4.0.1-netif_stop_queue.patch
rt2870usb-2.4.0.1-nodebug.patch

развитие темы тут

http://www.gentoo.ru/node/22864#comment-169488