Author Topic: Update manager : ldconfig error message  (Read 2058 times)

ongoto

  • Guest
Re: Update manager : ldconfig error message
« Reply #30 on: August 08, 2011, 10:27:46 AM »
Neal
Here's the section I'm curious about.  The whole spec is huge.  I'll post it if you need to see the rest.

Code: [Select]
# ldconfig cache
mkdir -p $RPM_BUILD_ROOT%{_var}/cache/ldconfig
touch $RPM_BUILD_ROOT%{_var}/cache/ldconfig/aux-cache

# automatic ldconfig cache update on rpm installs/removals
# (see http://wiki.mandriva.com/en/Rpm_filetriggers)
install -d %buildroot%{_var}/lib/rpm/filetriggers
cat > %buildroot%{_var}/lib/rpm/filetriggers/ldconfig.filter << EOF
^.((/lib|/usr/lib)(64)?/[^/]*\.so\.|/etc/ld.so.conf.d/[^/]*\.conf)
EOF
cat > %buildroot%{_var}/lib/rpm/filetriggers/ldconfig.script << EOF
#!/bin/sh
ldconfig -X
EOF
chmod 755 %buildroot%{_var}/lib/rpm/filetriggers/ldconfig.script

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Update manager : ldconfig error message
« Reply #31 on: August 08, 2011, 10:47:44 AM »
ongoto,
From what you show here, you would need to modify one line to accomplish your goal, I think -- 
Quote
ldconfig -X
to ---
Quote
/sbin/ldconfig -X
   

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Update manager : ldconfig error message
« Reply #32 on: August 08, 2011, 11:01:39 AM »
ongoto,
From what you show here, you would need to modify one line to accomplish your goal, I think --  
Quote
ldconfig -X
to ---
Quote
/sbin/ldconfig -X
 

Hi Neal,

This is what he said.

AS
You gave me another idea.  You mentioned re-packaging glibc.  I downloaded the source and found where the ldconfig.script gets written.  It's in the pclos-glibc-spec.  All that needs to be done is replace ldconfig -X with /sbin/ldconfig -X and rebuild.


Do you have answers to his questions ? :)
Quote
Neal
Would that work? and how much trouble would it be?


« Last Edit: August 08, 2011, 11:03:36 AM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Update manager : ldconfig error message
« Reply #33 on: August 08, 2011, 11:14:00 AM »
It's so easy, you could do it in a minute. As to how it would work, in theory it should work fine. But once installed and seeing use? Only testing its use can tell for sure.

ongoto

  • Guest
Re: Update manager : ldconfig error message
« Reply #34 on: August 08, 2011, 11:19:02 AM »
So it's just a matter of rebuilding glibc.  Then install and test.
I'll give it a shot.

Thanks Neal.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Update manager : ldconfig error message
« Reply #35 on: August 08, 2011, 11:22:03 AM »
So it's just a matter of rebuilding glibc.  Then install and test.
I'll give it a shot.

Thanks Neal.

You're welcome.

ongoto

  • Guest
Re: Update manager : ldconfig error message
« Reply #36 on: August 09, 2011, 07:30:37 AM »
No can do.  pkgutils won't install.  Have to wait.

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Update manager : ldconfig error message
« Reply #37 on: August 09, 2011, 08:54:17 AM »
No can do.  pkgutils won't install.  Have to wait.

Only for testing purpose, manually editing the file /var/lib/rpm/filetriggers/ldconfig.script should be enough.
This change should allow to test the installation of new packages, that, after the change, should run without the ldconfig (not found) issue, no matter if "su", "su -", "gksu", "gksu -l", "kdesu", or "ktsuss" is used.

AS

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Update manager : ldconfig error message
« Reply #38 on: August 09, 2011, 09:13:06 AM »
No can do.  pkgutils won't install.  Have to wait.

add unstable section in synaptic, then it should installable... 

ongoto

  • Guest
Re: Update manager : ldconfig error message
« Reply #39 on: August 09, 2011, 10:02:43 AM »
Thank you Leiche.  I'll give that a try next.

AS
Like you say.  Should give the same result in testing.

ongoto

  • Guest
Re: Update manager : ldconfig error message
« Reply #40 on: August 09, 2011, 07:58:39 PM »
Got it built, produced 10 useless rpms.   :o

glibc has recently been upgraded to 2.13.1-3.  The source rpm I have is 2.12.1-3.  That's all that is available in the apt/SRPM section. So... it's been fun practicing how to package anyway.

If the full pathname substitution proves to work for everyone, then, whoever is maintaining the glibc rpm can take care of it.   :)


Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Update manager : ldconfig error message
« Reply #41 on: August 09, 2011, 08:06:29 PM »
Got it built, produced 10 useless rpms.   :o

LOL ! Almost as many as the useless isos I make ! :D

Quote
glibc has recently been upgraded to 2.13.1-3.  The source rpm I have is 2.12.1-3.  That's all that is available in the apt/SRPM section. So...

no arm... no bacon ?

Quote
If the full pathname substitution proves to work for everyone, then, whoever is maintaining the glibc rpm can take care of it.   :)

I suppose generally the same person whose name in in the changelog of the spec file should be the one who makes the package. :)


melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

ongoto

  • Guest
Re: Update manager : ldconfig error message
« Reply #42 on: August 09, 2011, 08:33:47 PM »
... no bacon... and no candy!   ;D

Just downloaded the new Bonzai.  Gonna go see what kinda trouble I can get myself into with that one. LOL

Have a good day.