Ошибка при сборке gutenprint-5.2.6 [ решено ]

При обновлении gutenprint до версии 5.2.6 emerge выдает ошибку. Поиск в сети не дал сколь нибудь вменяемой информации, возможно я её просто не увидел, так как с Gentoo-системами еще не сталкивался.
Пробовал собрать вручную, при make install ругается на foomatic и останавливается с теми же ошибками.
Пакеты net-print/foomatic-db и net-print/foomatic-db-engine пересобрал, но результат нулевой.
Подскажите, пожалуйста, направление дальнейшего копательства.

Концовку лога прилагаю:

if test -n "foomatic-data" ; then 
      make install-kit FOOMATIC_DB=foomatic-db/gutenprint-ijs.5.2 ; 
      make install-kit FOOMATIC_DB=foomatic-db/gutenprint-ijs-simplified.5.2 ; 
    fi
make[4]: Entering directory `/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src/foomatic'
if test -n "/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/image/" ; then 
      /bin/mkdir -p /var/calculate/tmp/portage/net-print/gutenprint-5.2.6/image/`/usr/sbin/foomatic-kitload -l` ; 
      /usr/sbin/foomatic-kitload -f -d /var/calculate/tmp/portage/net-print/gutenprint-5.2.6/image/ -k foomatic-db/gutenprint-ijs.5.2 ; 
    else 
      /usr/sbin/foomatic-kitload -f -k foomatic-db/gutenprint-ijs.5.2 ; 
    fi
Can't locate Foomatic/Defaults.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.12.2/i686-linux /usr/lib/perl5/site_perl/5.12.2 /usr/lib/perl5/vendor_perl/5.12.2/i686-linux /usr/lib/perl5/vendor_perl/5.12.2 /usr/lib/perl5/5.12.2/i686-linux /usr/lib/perl5/5.12.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/local/lib/site_perl .) at /usr/sbin/foomatic-kitload line 3.
BEGIN failed--compilation aborted at /usr/sbin/foomatic-kitload line 3.
Can't locate Foomatic/Defaults.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.12.2/i686-linux /usr/lib/perl5/site_perl/5.12.2 /usr/lib/perl5/vendor_perl/5.12.2/i686-linux /usr/lib/perl5/vendor_perl/5.12.2 /usr/lib/perl5/5.12.2/i686-linux /usr/lib/perl5/5.12.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/local/lib/site_perl .) at /usr/sbin/foomatic-kitload line 3.
BEGIN failed--compilation aborted at /usr/sbin/foomatic-kitload line 3.
make[4]:  [install-kit] Ошибка 2
make[4]: Leaving directory `/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src/foomatic'
make[4]: Entering directory `/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src/foomatic'
if test -n "/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/image/" ; then 
      /bin/mkdir -p /var/calculate/tmp/portage/net-print/gutenprint-5.2.6/image/`/usr/sbin/foomatic-kitload -l` ; 
      /usr/sbin/foomatic-kitload -f -d /var/calculate/tmp/portage/net-print/gutenprint-5.2.6/image/ -k foomatic-db/gutenprint-ijs-simplified.5.2 ; 
    else 
      /usr/sbin/foomatic-kitload -f -k foomatic-db/gutenprint-ijs-simplified.5.2 ; 
    fi
Can't locate Foomatic/Defaults.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.12.2/i686-linux /usr/lib/perl5/site_perl/5.12.2 /usr/lib/perl5/vendor_perl/5.12.2/i686-linux /usr/lib/perl5/vendor_perl/5.12.2 /usr/lib/perl5/5.12.2/i686-linux /usr/lib/perl5/5.12.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/local/lib/site_perl .) at /usr/sbin/foomatic-kitload line 3.
BEGIN failed--compilation aborted at /usr/sbin/foomatic-kitload line 3.
Can't locate Foomatic/Defaults.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.12.2/i686-linux /usr/lib/perl5/site_perl/5.12.2 /usr/lib/perl5/vendor_perl/5.12.2/i686-linux /usr/lib/perl5/vendor_perl/5.12.2 /usr/lib/perl5/5.12.2/i686-linux /usr/lib/perl5/5.12.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/local/lib/site_perl .) at /usr/sbin/foomatic-kitload line 3.
BEGIN failed--compilation aborted at /usr/sbin/foomatic-kitload line 3.
make[4]:  [install-kit] Ошибка 2
make[4]: Leaving directory `/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src/foomatic'
make[3]:  [install-data-local] Ошибка 2
make[3]: Leaving directory `/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src/foomatic'
make[2]:  [install-am] Ошибка 2
make[2]: Leaving directory `/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src/foomatic'
make[1]:  [install-recursive] Ошибка 1
make[1]: Leaving directory `/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src'
make:  [install-recursive] Ошибка 1
emake failed
 * ERROR: net-print/gutenprint-5.2.6 failed:
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 3414:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =net-print/gutenprint-5.2.6',
 * the complete build log and the output of 'emerge -pqv =net-print/gutenprint-5.2.6'.
 * The complete build log is located at '/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/temp/build.log'.
 * The ebuild environment file is located at '/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/temp/environment'.
 * S: '/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6'
 * QA Notice: Unrecognized configure options:
 * 
 *  configure: WARNING: unrecognized options: --enable-epson, --with-user-guide, --with-samples, --with-escputil
 *  configure: WARNING: unrecognized options: --enable-epson, --with-user-guide, --with-samples, --with-escputil

 * Messages for package net-print/gutenprint-5.2.6:

 * ERROR: net-print/gutenprint-5.2.6 failed:
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 3414:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";

Начал копать в сторону перла.
Обнаружил, что в системе есть два каталога: /usr/lib/perl5/vendor_perl/5.8.8 в котором есть подкаталог Foomatic и /usr/lib/perl5/vendor_perl/5.12.2 в котором такого подкаталога нет вообще.
Поискав пакеты (emerge --search perl) пересобрал dev-lang/perl-5.12.2-r4, других пакетов с этой версией не нашлось. Проблема не решилась.
Скопировал каталог Foomatic из 5.8.8 в 5.12.2 и gutenprint собрался с таким предупреждением:

* This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *  /usr/lib/gimp/2.0/plug-ins/gutenprint
 *  /usr/share/cups/calibrate.ppm
 *  /usr/sbin/cups-genppdupdate
 *  /usr/sbin/cups-genppd.5.2
 *  /usr/bin/cups-calibrate
 *  /usr/libexec/cups/driver/gutenprint.5.2
 *  /usr/libexec/cups/filter/commandtoepson
 *  /usr/libexec/cups/filter/rastertogutenprint.5.2
 *  /usr/libexec/cups/filter/commandtocanon
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * None of the installed packages claim the file(s).
 * 
 * Package 'net-print/gutenprint-5.2.6' merged despite file collisions.
 * If necessary, refer to your elog messages for the whole content of the
 * above message.

Gimp работает, через gutenprint печатает.

Вопрос такой: Если у кого то были подобные конфликты при установке gutenprint, отпишитесь, пожалуйста не было ли впоследствии конфликтов других пакетов с этими файлами?
Вопрос не праздный, чувствую, что Calculate теперь будет моей основной системой долго. :slight_smile:

Попробуйте выполнить:

perl-cleaner --all

возможно, что бы в будущем при возникновении ошибок (не только с этим пакетом) стоит изучать и выкладывать для изучения другим содержимое отчетов
например после make[4]: [install-kit] Ошибка 2
посмотреть
/var/calculate/tmp/portage/net-print/gutenprint-5.2.6/work/gutenprint-5.2.6/src/foomatic
или для другого пакета, то что высветится после возникновения ошибки?

Выполнил:

perl-cleaner --all

Было обновлено 25 пакетов, файлы в каталоге Foomatic были заменены. Консольный вывод приложен к сообщению.
На всякий случай переустановил gutenprint:

emerge -C gutenprint
emerge -aDN gutenprint

Сообщений об ошибках и предупреждений не было. Пакет работает.
Alexander Tratsevskiy, большое спасибо!

SSid none, как Вы считаете, файлов build.log и environment из /var/calculate/tmp/portage/net-print/gutenprint-5.2.6/temp/ было бы достаточно для данного случая? Или в таких случаях лучше делать резервную копию всего временного каталога (gutenprint-5.2.6)?

cons_perl-cleaner_–all.txt (8.65 KB)