Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mate desktop: emerging mate-common-1.6.2 failed
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
schentuu
n00b
n00b


Joined: 18 Sep 2004
Posts: 29
Location: paderborn, germany

PostPosted: Fri Sep 13, 2013 4:21 pm    Post subject: Mate desktop: emerging mate-common-1.6.2 failed Reply with quote

Hello there!

I ran into a problem when emerging the mate-desktop (using the mate-overlay).
I managed to solve it after some time, but because i was not able to find any solution an the web, i want to present my solution to you.

I would love to have any feedback, because i'm not sure if i did everything right. :?
But it worked ...


Emerge exited while working on mate-base/mate-common-1.6.2.
Code:
alculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 30) mate-base/mate-common-1.6.2 from mate-overlay
>>> Failed to emerge mate-base/mate-common-1.6.2, Log file:
>>>  '/var/tmp/portage/mate-base/mate-common-1.6.2/temp/build.log'
>>> Jobs: 0 of 30 complete, 1 failed                Load avg: 0.20, 0.08, 0.10
 * Package:    mate-base/mate-common-1.6.2
 * Repository: mate-overlay
 * USE:        amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking mate-common-1.6.2.tar.xz to /var/tmp/portage/mate-base/mate-common-1.6.2/work
>>> Source unpacked in /var/tmp/portage/mate-base/mate-common-1.6.2/work
>>> Preparing source in /var/tmp/portage/mate-base/mate-common-1.6.2/work/mate-common-1.6.2 ...

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /var/lib/layman/mate/mate-base/mate-common/files/mate-common-1.6.2-automake-1.14.patch
 *   ( mate-common-1.6.2-automake-1.14.patch )

 * ERROR: mate-base/mate-common-1.6.2::mate-overlay failed (prepare phase):
 *   Cannot find $EPATCH_SOURCE!
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_prepare
 *   environment, line 3168:  Called epatch '/var/lib/layman/mate/mate-base/mate-common/files/mate-common-1.6.2-automake-1.14.patch'
 *   environment, line 1638:  Called die
 * The specific snippet of code:
 *                   die "Cannot find \$EPATCH_SOURCE!";
 *
 * If you need support, post the output of `emerge --info '=mate-base/mate-common-1.6.2::mate-overlay'`,
 * the complete build log and the output of `emerge -pqv '=mate-base/mate-common-1.6.2::mate-overlay'`.
 * The complete build log is located at '/var/tmp/portage/mate-base/mate-common-1.6.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mate-base/mate-common-1.6.2/temp/environment'.
 * Working directory: '/var/tmp/portage/mate-base/mate-common-1.6.2/work/mate-common-1.6.2'
 * S: '/var/tmp/portage/mate-base/mate-common-1.6.2/work/mate-common-1.6.2'

 * Messages for package mate-base/mate-common-1.6.2:

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /var/lib/layman/mate/mate-base/mate-common/files/mate-common-1.6.2-automake-1.14.patch
 *   ( mate-common-1.6.2-automake-1.14.patch )
 * ERROR: mate-base/mate-common-1.6.2::mate-overlay failed (prepare phase):
 *   Cannot find $EPATCH_SOURCE!
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_prepare
 *   environment, line 3168:  Called epatch '/var/lib/layman/mate/mate-base/mate-common/files/mate-common-1.6.2-automake-1.14.patch'
 *   environment, line 1638:  Called die
 * The specific snippet of code:
 *                   die "Cannot find \$EPATCH_SOURCE!";
 *
 * If you need support, post the output of `emerge --info '=mate-base/mate-common-1.6.2::mate-overlay'`,
 * the complete build log and the output of `emerge -pqv '=mate-base/mate-common-1.6.2::mate-overlay'`.
 * The complete build log is located at '/var/tmp/portage/mate-base/mate-common-1.6.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mate-base/mate-common-1.6.2/temp/environment'.
 * Working directory: '/var/tmp/portage/mate-base/mate-common-1.6.2/work/mate-common-1.6.2'
 * S: '/var/tmp/portage/mate-base/mate-common-1.6.2/work/mate-common-1.6.2'


what i found out is that either the ebiuld had an error, or a wrong patchfile was included:

Code:
gentoo ~ # ls -lA /var/lib/layman/mate/mate-base/mate-common/
insgesamt 16
drwxr-xr-x 2 root root 4096 13. Sep 17:46 files
-rw-r--r-- 1 root root  766 11. Sep 21:16 Manifest
-rw-r--r-- 1 root root  592 13. Sep 17:47 mate-common-1.6.2.ebuild
-rw-r--r-- 1 root root  515 11. Sep 21:16 mate-common-1.7.0.ebuild
gentoo ~ # ls -lA /var/lib/layman/mate/mate-base/mate-common/files/
insgesamt 4
-rw-r--r-- 1 root root 3084 11. Sep 21:16 mate-common-1.6.1-automake-1.14.patch
gentoo ~ # cat /var/lib/layman/mate/mate-base/mate-common/mate-common-1.6.2.ebuild | grep epatch
       epatch "${FILESDIR}/${P}-automake-1.14.patch"


As you can see, the mate-common-1.6.2.ebuild contains a line
epatch "${FILESDIR}/${P}-automake-1.14.patch"

There is the problem:
It uses its packetname, which is mate-common-1.6.2 as a part of the filename for the patch.
The result is that it will look for a file named
/var/lib/layman/mate/mate-base/mate-common/files/mate-common-1.6.2-automake-1.14.patch
But there exists only a file named
/var/lib/layman/mate/mate-base/mate-common/files/mate-common-1.6.1-automake-1.14.patch


what i did was editing the ebuild and commented out the line about epatch:

Code:

gentoo ~ # cat /var/lib/layman/mate/mate-base/mate-common/mate-common-1.6.2.ebuild | grep epatch
       epatch "${FILESDIR}/${P}-automake-1.14.patch"
gentoo ~ # vi /var/lib/layman/mate/mate-base/mate-common/mate-common-1.6.2.ebuild
gentoo ~ # cat /var/lib/layman/mate/mate-base/mate-common/mate-common-1.6.2.ebuild | grep epatch
#       epatch "${FILESDIR}/${P}-automake-1.14.patch"


and it worked!

For me it looked like a developer forgot to remove that line from a previous version of the ebuild.
But i'm a bit unsure about the question: would i have needed that patch??

Here is, what the patch i skipped was about:
Code:
gentoo ~ # cat /var/lib/layman/mate/mate-base/mate-common/files/mate-common-1.6.1-automake-1.14.patch

<!-- saved from url=(0097)https://github.com/mate-desktop/mate-common/commit/08f0e4e566039511744fc80ba9976b416722ba12.patch -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body style="zoom: 1;"><pre style="word-wrap: break-word; white-space: pre-wrap;">From 08f0e4e566039511744fc80ba9976b416722ba12 Mon Sep 17 00:00:00 2001
From: Marcel Dijkstra &lt;marcel.dykstra@gmail.com&gt;
Date: Sun, 30 Jun 2013 23:41:12 +0200
Subject: [PATCH] Automake turned 14 on Arch Linux

---
 macros/mate-autogen | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/macros/mate-autogen b/macros/mate-autogen
index d86aca9..c84961e 100644
--- a/macros/mate-autogen
+++ b/macros/mate-autogen
@@ -332,15 +332,16 @@ AUTOHEADER=`echo $AUTOCONF | sed s/autoconf/autoheader/`
 
 case $REQUIRED_AUTOMAKE_VERSION in
     1.4*) automake_progs="automake-1.4" ;;
-    1.5*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6 automake-1.5" ;;
-    1.6*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6" ;;
-    1.7*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7" ;;
-    1.8*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8" ;;
-    1.9*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9" ;;
-    1.10*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10" ;;
-    1.11*) automake_progs="automake-1.13 automake-1.12 automake-1.11" ;;
-    1.12*) automake_progs="automake-1.13 automake-1.12" ;;
-    1.13*) automake_progs="automake-1.13" ;;
+    1.5*) automake_progs="automake-1.14 automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6 automake-1.5" ;;
+    1.6*) automake_progs="automake-1.14 automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6" ;;
+    1.7*) automake_progs="automake-1.14 automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7" ;;
+    1.8*) automake_progs="automake-1.14 automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8" ;;
+    1.9*) automake_progs="automake-1.14 automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9" ;;
+    1.10*) automake_progs="automake-1.14 automake-1.13 automake-1.12 automake-1.11 automake-1.10" ;;
+    1.11*) automake_progs="automake-1.14 automake-1.13 automake-1.12 automake-1.11" ;;
+    1.12*) automake_progs="automake-1.14 automake-1.13 automake-1.12" ;;
+    1.13*) automake_progs="automake-1.14 automake-1.13" ;;
+    1.14*) automake_progs="automake-1.14" ;;
 esac
 version_check automake AUTOMAKE "$automake_progs" $REQUIRED_AUTOMAKE_VERSION \
     "http://ftp.gnu.org/pub/gnu/automake/automake-$REQUIRED_AUTOMAKE_VERSION.tar.gz"
--
1.8.1.6

</pre></body></html>


Thank you for feedback :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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