Public bug reported:

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) ...

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

+ 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 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       
+ Building dependency tree
  Reading state information... Done
  Note, selecting 'dctrl-tools' instead of 'grep-dctrl'
  Suggested packages:
-   debtags
+   debtags
  The following NEW packages will be installed:
-   dctrl-tools
+   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)    
+ 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) ...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/950031

Title:
  does not allow whitespace on end of foreign-architecture config lines

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/950031/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to