Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge prings lots of warnings every time
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
ckid113
n00b
n00b


Joined: 19 Oct 2010
Posts: 42

PostPosted: Mon Sep 10, 2012 7:22 am    Post subject: emerge prings lots of warnings every time Reply with quote

After `emerge --sync` emerge prints lots of warning messages every time it runs:

Code:

 * NOTE: This error will soon become unconditionally fatal in a future
 * version of Portage, but at this time, it can by made non-fatal by
 * setting FEATURES=-parse-eapi-ebuild-head in make.conf.
 - * EAPI assignment in ebuild 'kde-base/klinkstatus-3.5.10::kde-sunset'
 * does not conform with PMS section 7.3.1 (see bug #402167):
 *    valid EAPI assignment must occur on or before line: 4
 * NOTE: This error will soon become unconditionally fatal in a future
 * version of Portage, but at this time, it can by made non-fatal by
 * setting FEATURES=-parse-eapi-ebuild-head in make.conf.
 - * EAPI assignment in ebuild 'kde-base/kspaceduel-3.5.10::kde-sunset'
 * does not conform with PMS section 7.3.1 (see bug #402167):
 *    valid EAPI assignment must occur on or before line: 4
 * NOTE: This error will soon become unconditionally fatal in a future
 * version of Portage, but at this time, it can by made non-fatal by
 * setting FEATURES=-parse-eapi-ebuild-head in make.conf.
... done!


Printing these messages takes a lot of time. Is there any way to remove this? I can see all messages are related to kde-sunset overlay however I cannot stop using it as I require software from KDE 3 and I believe KDE 4 is not good at all.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Mon Sep 10, 2012 8:33 am    Post subject: Reply with quote

if you like to hide them, add FEATURES=-parse-eapi-ebuild-head to make.conf (states in the error), else you can open a bug to the overlay's maintainers to fix it (if possible)
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
ckid113
n00b
n00b


Joined: 19 Oct 2010
Posts: 42

PostPosted: Fri Sep 14, 2012 5:25 am    Post subject: Reply with quote

Let me know what to do to fix it. It's easier to fix myself then waiting for someone to fix it. It seems fixing is only a matter of changing name of variable in ebuild files or moving it somewhere.
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Fri Sep 14, 2012 5:30 am    Post subject: Reply with quote

I'm not into kde, but there is a fork of kde3 that will be replacing kde-sunset in gentoo from what I've seen.


Trinity is kde-3.5 based.

here's a gentoo forum topic: https://forums.gentoo.org/viewtopic-t-857813-start-25.html
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
ckid113
n00b
n00b


Joined: 19 Oct 2010
Posts: 42

PostPosted: Sun Sep 30, 2012 11:44 am    Post subject: Reply with quote

FEATURES=-parse-eapi-ebuild-head to make.conf doesn't help.

I discovered that the reason for these annoying error messages is that in new version of emerge 'EAPI=(digit)' should be before anything else (except comments). I wrote script that moves it here, but I do not know how to regenerate EBUILD checksums within Manifest as `ebuild ./path/to/ebuild manifest --force` starts to fetch all distribution files to calculate their checksums as well. But I need only EBUILD checksum to be changed.

[code=php]
#!/usr/bin/env php
<?php

$dh1 = opendir('./') or die("Couldn't open current directory\n");
while (false !== ($subDir = readdir($dh1))) {
if ($subDir == '.' || $subDir == '..') continue;
if (!is_dir($subDir)) continue;

$dh2 = opendir("./{$subDir}/");
if ($dh2 === false) {
echo "Failed to open directory './{$subDir}/\n";
continue;
}
while (false !== ($s2Dir = readdir($dh2))) {
if ($s2Dir == '.' || $s2Dir == '..') continue;
if (!is_dir("./{$subDir}/{$s2Dir}/")) continue;

$dh3 = opendir("./{$subDir}/{$s2Dir}/");
if ($dh3 === false) {
echo "Failed to open directory './{$subDir}/{$s2Dir}/\n";
continue;
}
while (false !== ($ebDir = readdir($dh3))) {
if ($ebDir == '.' || $ebDir == '..') continue;
if (!is_file("./{$subDir}/{$s2Dir}/$ebDir")) continue;
if (!preg_match('#\\.ebuild$#Duis', $ebDir)) continue;

$file = file_get_contents("./{$subDir}/{$s2Dir}/{$ebDir}");
if (preg_match('#^EAPI="(\\d+)"#m', $file, $m)) {
echo "Processing ./{$subDir}/{$s2Dir}/{$ebDir}:\n";
$file = preg_replace('#^EAPI="(\\d+)"#m', '', $file);
$file = "EAPI=\"{$m[1]}\"\n".$file;
file_put_contents("./{$subDir}/{$s2Dir}/{$ebDir}", $file);
#passthru("ebuild ./{$subDir}/{$s2Dir}/{$ebDir} manifest --force");
echo "Done\n----------------------------------------------\n";
}
}
closeDir($dh3);
}
closedir($dh2);
}
closedir($dh1);
[/code]
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