Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-14 Thread proyvind
Internalizing ldconfig also has other benefits, ie. if installing into a guest host a non-native environment, an internal implementation of the most common scriptlet which otherwise would fail because of installing distro environment into an arm chroot, while host being x86_64. In yocto, with

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-13 Thread Jeff Johnson
Agnosticism is fine. Until (of course) rpm needs to handle multilib packaging, selinux policies, debuginfo split binary/source packaging, etc. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-13 Thread Florian Festi
Implementing system details like ldconfig into rpm is not going to happen. We try to keep rpm - especially the rpm core code - as agnostic of the operating system it packages as possible. Using file triggers here is not a perfect solution. Adding triggers that are closer to the needs of ldconfig

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-13 Thread Florian Festi
Closed #405. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/405#event-1518424665___ Rpm-maint mailing list Rpm-maint@lists.rpm

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-03 Thread Jeff Johnson
In lib/rpm triggers.c rpmtriggersSortAndUniq(): The sort uses hdrNum, whose value can change when a package is removed and reinstalled with --justdb (and perhaps with --rebuilddb depending on backend) thereby causing (at least) a different trigger firing order. -- You are receiving this becaus

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-03 Thread Jeff Johnson
There's also redundancy from /lib -> /usr/lib symlink. Try using realpath. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/405#issuecomment-370138436__

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-03 Thread Jeff Johnson
Yuck: file triggers are prefix match only, with no path canonicalization (I.e. removal of multiple slashes etc). You could/should try using fnmatch through rpmio/mire, which could be flipped to using glob/regex patterns by changing an argument. You likely also should forbid partial dir/file pat

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-02 Thread Igor Gnatenko
Well, if you will submit PR I would definitely look at it. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/405#issuecomment-370126290__

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-02 Thread Jeff Johnson
Ok, I've now caught up with the bugzilla discussion, including that you have decided to deploy an incomplete solution and not handle ld.so.conf.d changes (though all the bizarre variants and performance were noted and discussed). IMHO it's still easier to just handle symlink creation and cache u

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-02 Thread Jeff Johnson
For example: those triggers do not handle ld.so.d/* files that also change ld.so.conf contents from alternative paths. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/405

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-02 Thread Jeff Johnson
And you probably do not understand the additional overhead that file triggers impose on installation times, nor the flaws that will inevitably appear in the file trigger code. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-02 Thread Igor Gnatenko
You probably didn't read it carefully: https://src.fedoraproject.org/rpms/glibc/blob/master/f/glibc.spec#_443-455 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/405#issu

[Rpm-maint] [rpm-software-management/rpm] RFE: Fully automate ldconfig handling within rpm (#405)

2018-03-02 Thread Jeff Johnson
(After reading through many complaints about ldconfig overhead on fedora-devel@ ...) RPM has all the necessary information in header metadata to precisely perform what ldconfig does only when necessary without any assistance from /bin/ldconfig or packagers. While the recent proposals to macroi