Bug#722880: /usr/bin/apt-get: Re: apt: Apt fails to solve some dependencies in a multiarch scenario.

2016-01-31 Thread Johannes Schauer
Hi,

Quoting Stepan Golosunov (2016-01-31 08:21:27)
> And no, Arch:all is Arch:armhf on an armhf system. And dpkg does not
> implement any mechanism to change that for one package.

to expand on Stepan's reply:

dpkg distinguishes between the native architecture and the set of foreign
architectures. All arch:all packages implicitly become packages of the
respective native architecture of the system. This in turn means that if a
foreign architecture package depends on an arch:all package, then that arch:all
package has to be marked as multi-arch:foreign because at this point, the
arch:all package is actually a native architecture package. You can read more
about this here:

https://wiki.ubuntu.com/MultiarchSpec#Dependencies_involving_Architecture:_all_packages

and in the cited footnote:

https://wiki.ubuntu.com/MultiarchSpec#fnref-b110b386874a9b24eaecd36fa24653a467ee27c4

So this was basically done because it would be very difficult to teach dpkg how
to do it otherwise and nobody has done the work.

If you want to know more about problems of multiarch and how it could be
improved, you can read these informative wiki pages:

https://wiki.debian.org/HelmutGrohne/MultiarchSpecChanges

https://wiki.debian.org/Multiarch/InterpreterProposal

You might want to reassign this bug to libgtksourceview2.0-common to ask its
maintainers whether marking that package as Multi-Arch:foreign would make sense
or not.

Thanks!

cheers, josch


signature.asc
Description: signature


Bug#722880: /usr/bin/apt-get: Re: apt: Apt fails to solve some dependencies in a multiarch scenario.

2016-01-30 Thread Michal Suchanek
On 30 January 2016 at 10:22, Stepan Golosunov  wrote:
> 30.01.2016 в 01:15:27 +0100 Michal Suchanek написал:
>> I still cannot install arch:i386 package that depends on arch:all
>> package because apt wrongly tries to search for the arch:all package as
>> arch:i386.
>>
>> # apt-get -m  -d install libgtksourceview2.0-0:i386
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> Some packages could not be installed. This may mean that you have
>> requested an impossible situation or if you are using the unstable
>> distribution that some required packages have not yet been created
>> or been moved out of Incoming.
>> The following information may help to resolve the situation:
>>
>> The following packages have unmet dependencies:
>>  libgtksourceview2.0-0:i386 : Depends: libgtksourceview2.0-common:i386 (>= 
>> 2.10) but it is not installable
>>   Depends: libgtksourceview2.0-common:i386 (< 
>> 2.11) but it is not installable
>> E: Unable to correct problems, you have held broken packages.
>
> That's exactly the expected situation given that
> libgtksourceview2.0-common package forbids installation of
> foreign-arch reverse dependencies by not providing a
> "Multi-Arch: foreign" header.
>
> Lack of that header is probably a bug in libgtksourceview2.0-common.
>

Lack of multiarch headers is probably a bug in libgtksourceview2.0 all
right. That would prevent installing the library for two archs. I
install only Arch:i386 and Arch:all package so there should be nothing
preventing the installation. Arch:all is still Arch:all.

Thanks

Michal



Bug#722880: /usr/bin/apt-get: Re: apt: Apt fails to solve some dependencies in a multiarch scenario.

2016-01-30 Thread Stepan Golosunov
30.01.2016 в 01:15:27 +0100 Michal Suchanek написал:
> I still cannot install arch:i386 package that depends on arch:all
> package because apt wrongly tries to search for the arch:all package as
> arch:i386.
> 
> # apt-get -m  -d install libgtksourceview2.0-0:i386
> Reading package lists... Done
> Building dependency tree   
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
> 
> The following packages have unmet dependencies:
>  libgtksourceview2.0-0:i386 : Depends: libgtksourceview2.0-common:i386 (>= 
> 2.10) but it is not installable
>   Depends: libgtksourceview2.0-common:i386 (< 
> 2.11) but it is not installable
> E: Unable to correct problems, you have held broken packages.

That's exactly the expected situation given that
libgtksourceview2.0-common package forbids installation of
foreign-arch reverse dependencies by not providing a
"Multi-Arch: foreign" header.

Lack of that header is probably a bug in libgtksourceview2.0-common.


> Architecture: armhf (armv7l)
> Foreign Architectures: i386



Bug#722880: /usr/bin/apt-get: Re: apt: Apt fails to solve some dependencies in a multiarch scenario.

2016-01-30 Thread Stepan Golosunov
30.01.2016 в 22:50:52 +0100 Michal Suchanek написал:
> On 30 January 2016 at 10:22, Stepan Golosunov  wrote:
> > 30.01.2016 в 01:15:27 +0100 Michal Suchanek написал:
> >> I still cannot install arch:i386 package that depends on arch:all
> >> package because apt wrongly tries to search for the arch:all package as
> >> arch:i386.
> >>
> >> # apt-get -m  -d install libgtksourceview2.0-0:i386
> >> Reading package lists... Done
> >> Building dependency tree
> >> Reading state information... Done
> >> Some packages could not be installed. This may mean that you have
> >> requested an impossible situation or if you are using the unstable
> >> distribution that some required packages have not yet been created
> >> or been moved out of Incoming.
> >> The following information may help to resolve the situation:
> >>
> >> The following packages have unmet dependencies:
> >>  libgtksourceview2.0-0:i386 : Depends: libgtksourceview2.0-common:i386 (>= 
> >> 2.10) but it is not installable
> >>   Depends: libgtksourceview2.0-common:i386 (< 
> >> 2.11) but it is not installable
> >> E: Unable to correct problems, you have held broken packages.
> >
> > That's exactly the expected situation given that
> > libgtksourceview2.0-common package forbids installation of
> > foreign-arch reverse dependencies by not providing a
> > "Multi-Arch: foreign" header.
> >
> > Lack of that header is probably a bug in libgtksourceview2.0-common.
> 
> Lack of multiarch headers is probably a bug in libgtksourceview2.0 all
> right. That would prevent installing the library for two archs. I
> install only Arch:i386 and Arch:all package so there should be nothing
> preventing the installation. Arch:all is still Arch:all.

Yes, lack of Multi-Arch header in libgtksourceview2.0 does prevent
installation of the library for two archs. But I am talking about lack
of Multi-Arch header in libgtksourceview2.0-common, not in
libgtksourceview2.0. And that one forbids installation of foreign
reverse dependencies of libgtksourceview2.0-common. And
libgtksourceview2.0-0:i386 happens to be such a foreign reverse
dependency on an armhf system.

And no, Arch:all is Arch:armhf on an armhf system. And dpkg does not
implement any mechanism to change that for one package.



Bug#722880: /usr/bin/apt-get: Re: apt: Apt fails to solve some dependencies in a multiarch scenario.

2016-01-29 Thread Michal Suchanek
Package: apt
Version: 1.0.9.8.2
Followup-For: Bug #722880


Hello,

I still cannot install arch:i386 package that depends on arch:all
package because apt wrongly tries to search for the arch:all package as
arch:i386.

# apt-get -m  -d install libgtksourceview2.0-0:i386
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgtksourceview2.0-0:i386 : Depends: libgtksourceview2.0-common:i386 (>= 
2.10) but it is not installable
  Depends: libgtksourceview2.0-common:i386 (< 2.11) 
but it is not installable
E: Unable to correct problems, you have held broken packages.


Package: libgtksourceview2.0-common
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 3079
Maintainer: Debian GNOME Maintainers 

Architecture: all
Source: gtksourceview2
Version: 2.10.5-2
Description: common files for the GTK+ syntax highlighting widget
 GtkSourceView is a text widget that extends the standard GTK+ 2.x text widget
 GtkTextView. It improves GtkTextView by implementing syntax highlighting and
 other features typical of a source editor.
 .
 This package contains the language specifications files for Ada, C, C++, C#,
 CSS, ".desktop", ".diff" (patch), Fortran 95, GtkRC, Haskell, HTML, IDL,
 ".ini", Java, JavaScript, LaTeX, Lua, MSIL, Nemerle, Pascal, Perl, PHP, ".po"
 (gettext), Python, R, Ruby, sh, SQL, Tcl, Texinfo, VB.NET, Verilog, VHDL and
 XML.
Homepage: http://projects.gnome.org/gtksourceview/

-- System Information:
Debian Release: 8.3
  APT prefers stable
  APT policy: (901, 'stable'), (512, 'testing'), (510, 'unstable'), (505, 
'experimental'), (500, 'oldstable')
Architecture: armhf (armv7l)
Foreign Architectures: i386

Kernel: Linux 4.5.0-rc1-00069-g44cb9f7 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages apt depends on:
ii  debian-archive-keyring  2014.3
ii  gnupg   1.4.18-7
ii  libapt-pkg4.12  1.0.9.8.2
ii  libc6   2.19-18+deb8u2
ii  libgcc1 1:4.9.2-10
ii  libstdc++6  4.9.2-10

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc 
ii  aptitude0.6.11-1+b1
pn  dpkg-dev
ii  python-apt  0.9.3.12

-- no debconf information