[12:14] <lamont__> cp -p build-min/bash debian/bash-minimal/bin/bash-minimal
[12:14] <lamont__> make: : Command not found
[12:14] <lamont__> make: *** [binary-minimal]  Error 127
[12:14] <lamont__> doko: ^^^
[12:14] <lamont__> hrm.. maybe doko_ needs this too..
[12:14] <lamont__> cp -p build-min/bash debian/bash-minimal/bin/bash-minimal
[12:14] <lamont__> make: : Command not found
[12:14] <lamont__> make: *** [binary-minimal]  Error 127
[12:15] <doko_> lamont, ?
[12:15] <doko_> lamont__, ?
[12:16] <lamont__> that's bash
[12:17] <lamont__> although I must admit that it's strange
[12:17] <doko_> yes, i386/powerpc/amd64 did succeed ...
[12:18] <lamont__> ok
[07:04] <doko> infinity: please requeue gcc-4.0 on i386
[07:06] <infinity> Done.
[07:07] <doko> hmm, maybe the same for amd64
[07:07] <infinity> (Did that too at the same time)
[01:01] <fabbione> doko: ping?
[01:03] <doko> fabbione: pong
[01:04] <fabbione> doko: do you happen to know if binutils is foobar on ppc?
[01:04] <fabbione> if not, do you have a ppc handy to do a test for me?
[01:05] <doko> a) no, b) sorry, no.
[01:05] <fabbione> ok
[01:05] <fabbione> let me explain the problem
[01:05] <fabbione> perhaps we can reproduce it on davis
[01:06] <fabbione> i compile libfoo with bar support
[01:06] <fabbione> that gets linked properly
[01:06] <fabbione> and i can see from objdump -x |grep NEEDED
[01:06] <fabbione> that bar requires libfoo
[01:07] <fabbione> bar pkg also ships a libbar
[01:07] <fabbione> that's still linked properly
[01:07] <fabbione> now
[01:07] <fabbione> there is libbaz that B-D on libbar-dev
[01:07] <fabbione> meh
[01:07] <fabbione> no sorry
[01:07] <fabbione> wrong example
[01:08] <fabbione> doko: wipe it
[01:08] <fabbione> let's start from scratch
[01:08] <fabbione> with real names
[01:08] <fabbione> i have devmapper that B-D on libselinux1-dev
[01:08] <fabbione> devmapper produces a libdevmapper that's linked with libselinux
[01:08] <fabbione> (verified via objdump
[01:09] <fabbione> and up till here everything is nice and dandy
[01:09] <fabbione> later on comes to play lvm2
[01:09] <fabbione> that B-D on libdevmapper
[01:09] <fabbione> lvm2 has the option to build with or without libselinux
[01:09] <fabbione> the first case is done for the .deb
[01:09] <fabbione> the latter for the .udeb
[01:09] <fabbione> now
[01:10] <fabbione> the interesting part is that lvm2 pulls in selinux only to do a call to:
[01:10] <fabbione> #ifdef HAVE_SELINUX
[01:10] <fabbione>         if (!set_selinux_context(lv_path, S_IFLNK)) {
[01:10] <fabbione>                 stack;
[01:10] <fabbione>                 return 0;
[01:10] <fabbione>         }
[01:10] <fabbione> #endif
[01:10] <fabbione> so if we agree.. lvm2 needs libselinux for set_selinux_context symbol
[01:10] <fabbione> am i right?
[01:10] <fabbione> now
[01:10] <fabbione> the build is done without selinux
[01:11] <fabbione> grep set_selinux_context lvm
[01:11] <fabbione>  | wc -l = 0
[01:11] <fabbione> so the binary doesn't have any reference to that symbol
[01:11] <fabbione> but
[01:11] <fabbione> objdump -x lvm | grep NEEDED
[01:11] <fabbione>   NEEDED      libdevmapper.so.1.01
[01:11] <fabbione>   NEEDED      libdl.so.2
[01:11] <fabbione>   NEEDED      libc.so.6
[01:11] <fabbione>   NEEDED      libselinux.so.1
[01:11] <fabbione> DA DA DA
[01:11] <doko> and it looks ok on other architectures?
[01:11] <fabbione> libselinux is there
[01:11] <fabbione> yes.. it looks ok on other arches and in Debian
[01:12] <fabbione> the problem seems to be Ubuntu specific
[01:12] <fabbione> i did check the build logs and stuff
[01:12] <fabbione> i am sure -DHAVE_SELINUX is not defined
[01:13] <doko> just checked binutils, no powerpc patches in ubuntu
[01:13] <fabbione> what else could it be that causes such a thing?
[01:14] <fabbione> it could also be that Debian has a different binutils?
[01:14] <doko> how is lvm linked?
[01:14] <fabbione> powerpc-linux-gnu-gcc -o lvm dumpconfig.o formats.o lvchange.o lvconvert.o lvcreate.o lvdisplay.o lvextend.o lvmchange.o lvmcmdline.o lvmdiskscan.o lvreduce.o lvremove.o lvrename.o lvresize.o lvscan.o polldaemon.o pvchange.o pvcreate.o pvdisplay.o pvmove.o pvremove.o pvscan.o reporter.o segtypes.o toollib.o vgcfgbackup.o vgcfgrestore.o vgchange.o vgck.o vgcreate.o vgconvert.o vgdisplay.o vgexport.o vgextend.o vgimport.o vgm
[01:14] <fabbione> erge.o vgmknodes.o vgreduce.o vgremove.o vgrename.o vgscan.o vgsplit.o lvm.o -Wl,--export-dynamic -L../lib -L/lib -llvm -ldevmapper -ldl  -rdynamic
[01:14] <fabbione> this is the call to link lvm
[01:15] <doko> is the symbol in liblvm?
[01:15] <fabbione> grep set_selinux_context liblvm.a
[01:15] <fabbione> fabbione@daltanius:/usr/src/lvm2-2.01.14/debian/build/build-udeb/lib$ 
[01:15] <fabbione> nope
[01:15] <fabbione> it's used there if -DHAVE_SELINUX
[01:17] <fabbione> brb
[01:17] <doko> any of the .la files reference the library?
[01:17] <fabbione> hmm
[01:17] <fabbione> fabbione@daltanius:/usr/src/lvm2-2.01.14/debian/build/build-udeb$ find . -name "*.la"
[01:17] <fabbione> fabbione@daltanius:/usr/src/lvm2-2.01.14/debian/build/build-udeb$ 
[01:18] <fabbione> libdevmapper matches.. but that's ok on the other arches
[01:18] <fabbione> or better
[01:18] <fabbione> it matches everywhere
[01:19] <fabbione> but libselinux is not pulled on i386 or amd64
[01:19] <fabbione> i am getting workraved
[01:19] <fabbione> brb
[01:24] <fabbione> re
[01:24] <fabbione> any idea?
[01:26] <doko> no, currently not.
[01:29] <fabbione> ok
[01:29] <fabbione> we will have to ask jbailey to recheck
[01:29] <fabbione> or actuall
[01:29] <fabbione> there is a test i could do
[01:30] <fabbione> trying to use a libdevmapper.a that doesn't use libselinux
[01:31] <fabbione> and see if it actually comes from there
[01:32] <fabbione> yes, it definetely comes from there
[01:33] <fabbione> if i use a libdevmapper without selinux, lvm doesn't NEEDED libselinux
[01:33] <fabbione> this is definetely something to do with binutils
[01:56] <jbailey> fabbione: Sorry, what am I checking?
[01:56] <jbailey> I'm just catching up on the backlog.
[01:58] <fabbione> jbailey: read the backlog.. if there is something not clear i will explain again.. i need to take a break
[02:17] <fabbione> re
[02:18] <jbailey> fabbione: Without having looked it up, my best guess is that it's not a binutils issue so much as somethings reducing the symbols not being used or something.
[02:18] <jbailey> I'll take a look a bit later, I'm still going through email.
[02:19] <fabbione> jbailey: ok. is everything i wrote understandable?
[02:19] <jbailey> Sort of.
[02:19] <fabbione> the pkgs we have in the archive now are all libselinux disabled
[02:19] <fabbione> so you will need to renable them
[02:19] <jbailey> AFAICT, you think seliniux should be in the NEEDED set and it isn'
[02:19] <jbailey> t on PPC.
[02:19] <jbailey> ?
[02:19] <fabbione> the other way around
[02:19] <fabbione> it's NEEDED and it shouldn't
[02:19] <fabbione> but only for the build that explicitly define --disable-selinux
[02:20] <jbailey> Ah, okay.
[02:20] <fabbione> note: build-udeb
[02:20] <jbailey> Can I reproduce this on ppc?
[02:20] <jbailey> Or sparc?
[02:20] <jbailey> Those are my two easily-acceisble dapper machines atm.
[02:20] <fabbione> ppc
[02:20] <fabbione> i386 and amd64 looks ok
[02:20] <fabbione> it seems to be a specific ppc problem
[02:21] <jbailey> Lovely.
[02:21] <jbailey> Always nice to use the faster machine for debugging.
[02:21] <jbailey> =)
[02:21] <fabbione> ehehe
[02:21] <jbailey> And that's lvm2, right?
[02:21] <fabbione> yes
[02:21] <fabbione> you need to start from devmapper
[02:22] <fabbione> enable selinux on devmapper
[02:22] <jbailey> Hmm, silly question.
[02:22] <fabbione> eheh ok :)
[02:22] <jbailey> Lemme get this straight again (sorry, I'm still sleepy.. *g*)
[02:22] <jbailey> I see devmapper has --disable-selinux.
[02:22] <jbailey> And it's still pulling in libselinux anyway?
[02:22] <fabbione> fabbione let's start from scratch start from here
[02:23] <fabbione> fabbione let's start from scratch <- start from here
[02:23] <jbailey> Or perhaps I should grab breakfast. =)
[02:23] <fabbione> exactly
[02:23] <fabbione> wake up first :)
[02:24] <jbailey> a'ight.
[02:59] <jbailey> fabbione: 'kay.  I think I'm awake now.
[03:00] <fabbione> ok
[03:04] <jbailey> So, the ultimate goal here is to enable selinux, or not?
[03:04] <jbailey> doko was saying to me that enabling selinux is a dapper+1 goal.
[03:08] <doko> ehh, no, ssp first ...
[03:09] <doko> jbailey: great that pitti isn't here ...
[03:10] <fabbione> jbailey: ok
[03:10] <fabbione> simple nice and dandy
[03:10] <fabbione> selinux support should be enabled in the .debs
[03:10] <fabbione> but NOT in the udebs
[03:10] <fabbione> on ppc due to something fucking up
[03:10] <fabbione> lvm gets linked with libselinux (the udeb build)
[03:11] <fabbione> it doesn't happen on other arches
[03:11] <fabbione> the build logs are the same
[03:11] <fabbione> there is no HAVE_SELINUX defined
[03:11] <fabbione> nothing in the udeb build uses symbols from libdelinux
[03:11] <fabbione> libselinux
[03:11] <fabbione> the only thing is libdevmapper
[03:11] <fabbione> it uses libselinux
[03:12] <fabbione> libdevmapper is used both for .debs and .udebs build
[03:12] <fabbione> this still doesn't explain why an objdump on PPC shows NEEDED libselinux
[03:12] <fabbione> and it doesn't on other arches
[03:12] <fabbione> this makes lvm2 fails on ppc
[03:14] <fabbione> make more sense now?
[03:17] <fabbione> anyway i need to go offline
[03:17] <fabbione> i might pass by later
[03:18] <jbailey> 'k
[03:18] <jbailey> I'll dig through and get this.
[03:18] <jbailey> See you after your nap. =)
[04:56] <doko> nice one: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25199
[05:04] <jbailey> Jakub's comment: Finding a bug in 1M of assembly is really hard without knowing where exactly
[05:04] <jbailey> to look at.
[05:06] <doko> yes, but he already posted the patch
[05:06] <jbailey> Yes.  Jakub scares me. =)
[05:06] <doko> I like our gcc-opt adding -mtune=pentium4 ...
[06:44] <fabbione> jbailey: ok thanks.. i don't think i can do more debugging really..
[06:44] <jbailey> Yup, it's all good.
[06:44] <fabbione> jbailey: i need to go off for the night.. my wife invited mother and sister
[06:44] <jbailey> I haven't looked at it yet, but I'm having a slow day today.
[06:45] <jbailey> 'kay.  Sometime next week I want to grab you for a server kernel discussionwith benc.
[06:45] <fabbione> jbailey: no problem.. i am pretty sure it's something not related to the pkg itself
[06:45] <jbailey> You're the approver. =)
[06:45] <fabbione> you might notice is that in Debian doesn't happen
[06:45] <fabbione> jbailey: sure
[06:45] <fabbione> let's plan a meeting..
[06:45] <jbailey> After your nap on Monday, maybe?
[06:45] <fabbione> perhaps monday evening around 20:00 UTC would be lovely
[06:45] <fabbione> no after the nap i have the danish exam
[06:46] <jbailey> 20 UTC should be fine.
[06:46] <fabbione> but i will finish early -> early dinner -> put wife to bed and i am up for *
[06:46] <fabbione> jbailey: please coordinate with Ben
[06:46] <fabbione> i need to go offline again now
[06:46] <jbailey> Doing.  G'night, see you around this WE.
[06:46] <fabbione> i might pass by later..
[06:46] <fabbione> not sure yet :/
[06:47] <fabbione> it depends if wife's sister's kids will allow me ;)
[08:42] <lamont__> doko: I think I gave back whatever package it was you wanted given back on hppa/unstable
[08:49] <jbailey> lamont__: I tried a build of glibc cvs last night, requires a newer toolchain.
[08:49] <jbailey> lamont__: I'll do the work on bdale's j5k box for now.
[08:49] <jbailey> (I have root there)
[08:55] <lamont__> 'k