[Bug 950031] [NEW] does not allow whitespace on end of foreign-architecture config lines
Wookey
wookey at wookware.org
Fri Mar 9 00:16:30 UTC 2012
+++ Raphaël Hertzog [2012-03-08 19:28 -0000]:
> Hi,
>
> On Thu, 08 Mar 2012, Wookey wrote:
> > If your dpkg config contain a line like:
> >
> > "foreign-architecture i386 "
> > i.e with a space on the end of the line
> > dpkg issues a warning:
> >
> > dpkg: warning: ignoring option --foreign-architecture=i386 : character `
> > ' not allowed
>
> Given that this option is going away in the final multiarch
> implementation (in favor of dpkg --add-architecture), I think it's safe
> to not do anything about this minor glitch.
I knew we got --add-architecure and --remove-architecture. I hadn't
realised that --foreign-architecture was superceded.
> I'd suggest to wontfix it.
Agreed - I thought it was probably different in the Debian version,
given the code changes in this area.
Wookey
--
Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/950031
Title:
does not allow whitespace on end of foreign-architecture config lines
Status in “dpkg” package in Ubuntu:
New
Bug description:
dpkg version 1.16.1.2
If your dpkg config contain a line like:
"foreign-architecture i386 "
i.e with a space on the end of the line
dpkg issues a warning:
dpkg: warning: ignoring option --foreign-architecture=i386 : character
` ' not allowed
it is reading the architecture as "i386 " which is perhaps a bit dim.
To reproduce this my config in /etc/dpkg/dpkg.cfg.d/multiarch was:
foreign-architecture i386
foreign-architecture armel
It does not happen if there is no newline after the "i386 " so you
need either a second config line or a newline to produce the warning.
And the warning comes in this part of the sequenmce when installing a
new packge:
# apt-get install grep-dctrl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'dctrl-tools' instead of 'grep-dctrl'
Suggested packages:
debtags
The following NEW packages will be installed:
dctrl-tools
0 upgraded, 1 newly installed, 0 to remove and 62 not upgraded.
Need to get 83.5 kB of archives.
After this operation, 299 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main dctrl-tools amd64 2.18ubuntu1 [83.5 kB]
Fetched 83.5 kB in 0s (202 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
dpkg: warning: ignoring option --foreign-architecture=i386 : character ` ' not allowed (only letters, digits and characters `-')
Selecting previously unselected package dctrl-tools.
(Reading database ... 14964 files and directories currently installed.)
Unpacking dctrl-tools (from .../dctrl-tools_2.18ubuntu1_amd64.deb) ...
dpkg: warning: ignoring option --foreign-architecture=i386 : character ` ' not allowed (only letters, digits and characters `-')
Setting up dctrl-tools (2.18ubuntu1) ...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/950031/+subscriptions
More information about the foundations-bugs
mailing list