Re: DSO linking changes for wheezy

2010-11-16 Thread Julien Cristau
On Mon, Nov 15, 2010 at 21:29:07 -0500, Matt Turner wrote:

 On Mon, Nov 15, 2010 at 8:15 PM, Samuel Thibault sthiba...@debian.org wrote:
  Matt Turner, le Mon 15 Nov 2010 19:51:10 -0500, a écrit :
  On Mon, Nov 15, 2010 at 7:24 PM, Roger Leigh rle...@codelibre.net wrote:
   What's the actual problem --as-needed is trying to solve?
  
   The answer is mainly unwanted libraries being linked in as a result
   of using pkg-config (and various other -config variants), though there
   are other, lesser, culprits.  The pkg-config .pc files for gtk, gnome
   and other libraries add in many libraries, most of which aren't
   typically needed.
  
   The solution: fix the .pc files!
  
   Using --as-needed is merely papering over the actual root problem.
   It fixes the symptoms, but it's not addressing the actual cause.
   The number of packages providing broken .pc files is not large, and
   the number breaking due to relying on this brokenness is likely
   just as small.
 
  I can't see why you think --as-needed is fundamentally wrong or 
  unnecessary.
 
  Check out http://www.gentoo.org/proj/en/qa/asneeded.xml
 
  --as-needed has saved tons of time for upgrades like Cairo in Gentoo,
  where Cairo had been linked to glitz which is now useless and gone.
 
  Not a problem, if Cairo was properly exposing the dep.
 
  So
  when people upgraded Cairo, all the software that linked against it
  (and also unnecessarily linked against glitz)
 
  Why did it get linked against glitz?  That's where the problem is.
 
 I think because -lglitz was in cairo's .pc file.
 
That should be fixed by removing -lglitz from cairo's .pc file, not by
passing --as-needed to the linker.

Cheers,
Julien


signature.asc
Description: Digital signature


Re: DSO linking changes for wheezy

2010-11-16 Thread Roger Leigh
On Tue, Nov 16, 2010 at 01:14:09AM +0100, Matthias Klose wrote:
 On 14.11.2010 13:19, Julien Cristau wrote:
 On Fri, Oct 29, 2010 at 15:43:57 +0200, Matthias Klose wrote:

 For wheezy I'm planning to change the linking behaviour for DSOs
 (turning on --as-needed and --no-copy-dt-needed-entries. The
 rationale is summarized in
 http://wiki.debian.org/ToolChain/DSOLinking. I would like to know
 about issues with these changes on some of the Debian ports, and if
 we need to disable one of these changes on some port.

 --no-add-needed sounds like it'll cause a *lot* of build failures for no
 particular gain.  I don't think it's a good idea.

 I think it is. Besides fixing potential bugs, else you'll never be able 
 to use gold as the linker. See the already filed bug reports.

This change is one I can agree with on technical grounds, though it
will cause a great deal of pain in the short term.  Have we got any
estimates on exactly how much breakage will result before the change
gets made?


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please GPG sign your mail.


signature.asc
Description: Digital signature


IBM z/VM + z/Series + Debian

2010-11-16 Thread anandhcoe

Dear Stephen,

Am still not able to sort out the problem. It will be great that if you
clear my doubts that are prevailing,

* What is the size of the debain mirror for s390?
* What size is required in z/vm to install the debian linux?
* In referring to debain mirrors, there are some points reg resync?

Kindly help on the issue..

--- 
Regards,
Anandh



STEPHEN POWELL-2 wrote:
 
 On Thu, 30 Sep 2010 02:09:40 -0400 (EDT), anandhcoe wrote:
 
 Thanks for your valuable suggestion. I had set up an anonymous ftp for
 the installation and yet the problem prevails.The error msg below is
 shown.
 
The specified Debian archive mirror is either not available, or does  
 not have a valid Release file on it. Please try a different mirror.   
 
 Are there any release files or repository file needed for this and in the
 image which i have download i cant find any release file or something
 like
 that.
 
 Could you please help on the issue and let me know if there is any other
 link where i can download the Debain Linux full version with the release
 files..
 
 The installation instructions don't contain much detail on this step.
 Here is what it says:
 
 -
 
 3.6.4. Setting up an installation server
 
 If you don't have a connection to the Internet (either directly or via
 a web proxy) you need to create a local installation server that can
 be accessed from your S/390.  This server keeps all the packages you
 want to install and must make them available using NFS, HTTP or FTP.
 
 The installation server needs to copy the exact directory structure
 from any Debian GNU/Linux mirror, but only the s390 and
 architecture-independent files are required. You can also copy the
 contents of all installation CDs into such a directory tree. 
 
 -
 
 As I said in my previous post, I have no experience installing Debian from
 a private mirror.  I have never used a private mirror because I have never
 needed to use a private mirror.  At my installation, the virtual Linux
 servers
 on z/VM have access to the external internet.  Therefore, I can use a
 public
 mirror for installation.  Therefore, I do.
 
 If due to your installation policy the virtual Linux servers are not
 allowed
 to access a public mirror then you must create a private mirror and
 install
 from that.  Instructions for creating a private mirror can be found here:
 
http://www.debian.org/mirrors/ftpmirror
 
 If you need help creating a private mirror, ask for help on the
 debian-mirrors
 mailing list (debian-mirr...@lists.debian.org).
 
 -- 
   .''`. Stephen Powell
  : :'  :
  `. `'`
`-
 
 
 -- 
 To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/273996600.388799.1285853849788.javamail.r...@md01.wow.synacor.com
 
 
 

-- 
View this message in context: 
http://old.nabble.com/IBM-z-VM-%2B-z-Series-%2B-Debian-tp29786424p30227947.html
Sent from the debian-s390 mailing list archive at Nabble.com.


-- 
To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/30227947.p...@talk.nabble.com



Re: DSO linking changes for wheezy

2010-11-16 Thread Bernhard R. Link
* Kurt Roeckx k...@roeckx.be [101114 14:08]:
 People have been claiming that constructors or init section are a
 possible problem.  I have yet to see an example where it breaks.

The following example is a bit constructed, but shows a silent change
of run-time behaviour if --as-needed is passed:

$ cat  ertest.c 'EOF'
#include stdio.h
#include stdlib.h

#include X11/Xutil.h
#include X11/Intrinsic.h
#include X11/Shell.h

static String fr[] = {
*geometry: 100x100\n,
NULL
};

int main(int argc, String argv[]) {
XtAppContext context;
Widget app_shell;

app_shell = XtOpenApplication(context, ERTEST,
NULL, 0, argc, argv, fr,
applicationShellWidgetClass, NULL, 0);
XtRealizeWidget(app_shell);
XtAppMainLoop(context);
return 0;
}
EOF
$ gcc -o ertest -Wall -O2 ertest.c -lXaw -lXt
$ ./ertest 
$ editres
# Select Commands/Get Tree and click at the window the first program created
$ gcc -o ertest -Wl,--as-needed -Wall -O2 ertest.c -lXaw -lXt
$ ./ertest 
$ editres
# Try it again and it fails now...

Bernhard R. Link
-- 
Never contain programs so few bugs, as when no debugging tools are available!
Niklaus Wirth


-- 
To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20101116100120.ga29...@pcpool00.mathematik.uni-freiburg.de



Re: DSO linking changes for wheezy

2010-11-16 Thread Samuel Thibault
Steve Langasek, le Tue 16 Nov 2010 09:14:40 -0800, a écrit :
 I don't argue that this makes --as-needed *correct* as a default, but I
 think it's clear how using --as-needed may benefit a distribution in terms
 of reducing churn when library dependencies change.

We agree on the second part, but the change of behavior makes it
unacceptable as default, thus making the second part void.

Samuel


-- 
To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20101116174307.gk5...@const.bordeaux.inria.fr



Re: DSO linking changes for wheezy

2010-11-16 Thread Samuel Thibault
Florian Weimer, le Tue 16 Nov 2010 19:49:57 +0100, a écrit :
 * Roland McGrath:
 
  I can't see why you think --as-needed is fundamentally wrong or 
  unnecessary.
 
  It is fundamentally wrong because -lfoo means I demand that the
  initializers of libfoo.so run, whether or not I called anything in it.
 
 So it's more like static linking. 8-)

?!

Initializers are called dynamically, and if you upgrade the library,
the new initializers will be called (and new ones will be called as
well!). I don't see what you see static here.

Samuel


-- 
To UNSUBSCRIBE, email to debian-s390-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20101116191430.gf5...@const.famille.thibault.fr