[Slapt-get-devel] right arch package selection
Andrei Butirsky
butirsky at gmail.com
Mon Oct 10 06:29:07 EDT 2011
On 10.10.2011 01:34, Jason Woodward wrote:
> Hi Andrei,
>
>> I have issue when upgrading from Alien's 'ktown' repository
>> http://alien.slackbook.org/ktown/
>> I have x86_64 system, but when I press 'Mark All Upgrades' in Gslapt, it
>> marks kde packages of wrong i486 architecture. So every time I upgrade
>> kde, I have to manually select all needed kde packages.
>> To deal with the issue I wrote a patch which works for me:
>>
>> --- src/package.c.orig 2011-10-09 18:20:20.000000000 +0400
>> +++ src/package.c 2011-10-09 18:49:57.000000000 +0400
>> @@ -1147,7 +1147,11 @@
>> /* they are equal if the integer values are equal */
>> /* for instance, "1rob" and "1" will be equal
>> */
>> if (atoi(a_build) == atoi(b_build))
>> + {
>> + if (strstr(b, "x86_64"))
>> + return lesser;
>> return equal;
>> + }
>>
>> if (atoi(a_build)< atoi(b_build))
>> return greater;
>>
>> Obviously it is duty hack.
>> It would be fine if you implement more generous approach to solve the
>> problem.
>
> What do you have in your excludes? Do you have i[3456]86 ?
>
If I have i[3456]86 in my excludes, no kde package selected at all after
pressing 'Mark All Upgrades' in Gslapt. Moreover, I even can't select
x86_64 kde packages for installation manually after that - all package
menu items grayed and inaccessible. So I have to restart gslapt if I
press 'Mark All Upgrades' before manually selecting kde package for
installation.
More information about the Slapt-get-devel
mailing list