[Bug 1013470] [NEW] /usr/include/cups/i18n.h is installed in inadequate place on libcups2-dev

2012-06-14 Thread ITO Nobuaki
Public bug reported:

On Ubuntu 12.04, when I installed libcups2-dev, I've found the file
/usr/include/cups/i18n.h/language-private.h.

This file exists for backward compatibility, but it should be placed on
/usr/include/cups/i18n.h.

i18n.h is file name, not directory name.

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

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

Title:
  /usr/include/cups/i18n.h is installed in inadequate place on
  libcups2-dev

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

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


[Bug 234901] Re: Please apply upstream patch for dpkg-buildsource

2008-05-27 Thread ITO Nobuaki
Thanks for your comment.  I got two points from your message.

1. Using linker flag -Bsymbolic-functions for building library is your
policy.

Certainly it's not bad idea.  It makes shared libraries more robust, so it 
seems to be good manner indeed.
(But ... I wonder why not -Bsymbolic instead of -Bsymbolic-functions.  
Could you tell me the reason?)

2. In some conditions, Samba might not work well if it is built with
-Bsymbolic-functions.

In further update, the flag -Bsymbolic-functions would be removed from
Samba package.


Still now I have to say my opinion:
- The linker flag -Bsymbolic(-functions) is for build-time usage principally.
- Do not force developers to use the flag who link their program against those 
libraries.

As you have already written, dpkg itself doesn't need to be modified.
On the other hand, some of *-config scripts apply build-time LDFLAGS
for --libs configuration.  That make unfortunate consequences.

Upon my little investigation, following programs incorrectly state
-Bsymbolic-functions when they are called with --libs or --ldflags
argument.

- krb5-config in krb5
- cups-config in cupsys
- net-snmp-config in net-snmp
- mysql_config in mysql-dfsg (see 
https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/225741)

More affected packages may exist.  There are many many packages in
Ubuntu, so I could not cover them all.  I think these packages would be
modified.


Not all of packages (having *-config script) are affected.  Some programs (ex. 
pth-config in pth) don't have -Bsymbolic-functions (but was built with 
-Bsymbolic-functions).  And some packages which support pkg-config (ex. 
libssl) have -Bsymbolic-functions in Libs.private, not in Libs.  Good.

-- 
Please apply upstream patch for dpkg-buildsource
https://bugs.launchpad.net/bugs/234901
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 234901] Re: Please apply upstream patch for dpkg-buildsource

2008-05-27 Thread ITO Nobuaki
Thanks for your comment.  I got two points from your message.

1. Using linker flag -Bsymbolic-functions for building library is your
policy.

Certainly it's not bad idea.  It makes shared libraries more robust, so it 
seems to be good manner indeed.
(But ... I wonder why not -Bsymbolic instead of -Bsymbolic-functions.  
Could you tell me the reason?)

2. In some conditions, Samba might not work well if it is built with
-Bsymbolic-functions.

In further update, the flag -Bsymbolic-functions would be removed from
Samba package.


Still now I have to say my opinion:
- The linker flag -Bsymbolic(-functions) is for build-time usage principally.
- Do not force developers to use the flag who link their program against those 
libraries.

As you have already written, dpkg itself doesn't need to be modified.
On the other hand, some of *-config scripts apply build-time LDFLAGS
for --libs configuration.  That make unfortunate consequences.

Upon my little investigation, following programs incorrectly state
-Bsymbolic-functions when they are called with --libs or --ldflags
argument.

- krb5-config in krb5
- cups-config in cupsys
- net-snmp-config in net-snmp
- mysql_config in mysql-dfsg (see 
https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/225741)

More affected packages may exist.  There are many many packages in
Ubuntu, so I could not cover them all.  I think these packages would be
modified.


Not all of packages (having *-config script) are affected.  Some programs (ex. 
pth-config in pth) don't have -Bsymbolic-functions (but was built with 
-Bsymbolic-functions).  And some packages which support pkg-config (ex. 
libssl) have -Bsymbolic-functions in Libs.private, not in Libs.  Good.

-- 
Please apply upstream patch for dpkg-buildsource
https://bugs.launchpad.net/bugs/234901
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


[Bug 234901] [NEW] Please apply upstream patch for dpkg-buildsource

2008-05-25 Thread ITO Nobuaki
Public bug reported:

Binary package hint: dpkg

Release: Ubuntu Hardy (8.04)
Package: dpkg 1.14.16.6ubuntu3

Script dpkg-buildsource includes harmful default option -Wl,-Bsymbolic-
functions for LDFLAGS.

This affects many pkg-config-like mechanizm based programs, such as
krb5-config, mysql-config, net-snmp-config, etc.  And this flag cascades
to other packages such as cupsys, samba, etc, using such packages.

Upstream of dpkg fixed this bug on this commit:
http://git.debian.org/?p=dpkg/dpkg.git;a=commit;h=12617e848c82f2c5809fb2112170177ad9cda4e6

But the version of the source in Ubuntu Hardy differs from it,  So I
created patch having same meaning. (I attached to this report).


Further information:

Linker flag -Bsymbolic(-functions) is for library developers, not for library 
users.
Unintended usage for this flag may break condition on run-time, for example, 
non-correct initialization.


Example:

Samba package was built with -Wl,Bsymbolic-functions flag unintentionally.
(This flag was incorporated by krb5-config and cups-config.)

If you use wins option for host in nsswitch.conf, following simple
program built with -lsmbclient stops accidentally.

#include netdb.h
int main(int argc, char *argv[])
{
gethostbyname(non-existent hostname or NMB hostname);
return 0;
}

(Mechanism: Both of libsmbclient.so and libnss_wins.so include same
source lib/debug.c.  That file has symbol named DEBUGLEVEL_CLASS as
variable, and symbol named debug_add_class as function.  With
-Bsymbolic-functions flag, the symbol debug_add_class is resolved in
each library, but the symbol DEBUGLEVEL_CLASS is commonly allocated
for both of libraries.  Libnss_wins.so falsely recognizes
DEBUGLEVEL_CLASS is already initialized.  And realloc() for
uninitialized area fails.  This is not a samba's bug.  Unintentional use
-Wl,-Bsymbolic-functions fires that bug.)

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

-- 
Please apply upstream patch for dpkg-buildsource
https://bugs.launchpad.net/bugs/234901
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


[Bug 234901] Re: Please apply upstream patch for dpkg-buildsource

2008-05-25 Thread ITO Nobuaki

** Attachment added: dpkg.patch
   http://launchpadlibrarian.net/14708110/dpkg.patch

-- 
Please apply upstream patch for dpkg-buildsource
https://bugs.launchpad.net/bugs/234901
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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