View previous topic :: View next topic |
Author |
Message |
ckid113 n00b
Joined: 19 Oct 2010 Posts: 42
|
Posted: Mon Sep 10, 2012 7:22 am Post subject: emerge prings lots of warnings every time |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Mon Sep 10, 2012 8:33 am Post subject: |
|
|
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 |
|
|
ckid113 n00b
Joined: 19 Oct 2010 Posts: 42
|
Posted: Fri Sep 14, 2012 5:25 am Post subject: |
|
|
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 |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
|
Back to top |
|
|
ckid113 n00b
Joined: 19 Oct 2010 Posts: 42
|
Posted: Sun Sep 30, 2012 11:44 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|