From frank.thommen at embl-heidelberg.de Thu Apr 18 18:08:56 2013 From: frank.thommen at embl-heidelberg.de (Frank Thommen) Date: Thu, 18 Apr 2013 18:08:56 +0200 Subject: [op-sepp] Package dependencies only work on installing but not on removing packages Message-ID: <51701A98.5060101@embl-heidelberg.de> Hi package dependencies are only checked at package installation time, but not when UNinstalling them. We have several time run into issues, because a package has been removed which was required by others. Can you think for an easy way to implement such a check at deinstallation time w/o searching through all META files of all other packages? Cheers frank -- Frank Thommen - Structures IT Management and Support - EMBL Heidelberg frank.thommen at embl-heidelberg.de - +49 6221 387 8353 From frank.thommen at embl-heidelberg.de Fri Apr 19 12:47:11 2013 From: frank.thommen at embl-heidelberg.de (Frank Thommen) Date: Fri, 19 Apr 2013 12:47:11 +0200 Subject: [op-sepp] Package dependencies only work on installing but not on removing packages In-Reply-To: <1D5BCA2E-FB6D-44CE-AFBE-F4CCA6B6876A@oetiker.ch> References: <51701A98.5060101@embl-heidelberg.de> <1D5BCA2E-FB6D-44CE-AFBE-F4CCA6B6876A@oetiker.ch> Message-ID: <517120AF.3000306@embl-heidelberg.de> Hi Tobi, basically I agree and I might go this way. But it requires lots of discipline by the software maintainers (which I can't really rely on here :-). E.g. if an additional dependency (PATH, LD_LIBRARY_PATH, etc.) is added to start.pl after installation, this will not be reflected in the reverse index unless the respective seppadm function (install/webbuild/...) is run. Adding to start.pl /after/ installation happens quite often in the case of complex scientific packages where dependencies appear only at runtime in specific functions (which are only used now and then). Generally I'd need a foolproof mechanism which is probably still to check all META and start.pl files of all other packages when a package is removed. This will require some time but we don't often remove package anyway ;-) Cheers frank On 18.04.13 18:45, Tobi Oetiker wrote: > Frank, > > I guess you would have to build a reverse index, but sinc you could store it like the other indexes which are already being built, this would not be all that difficult. > > cheers > > Tobias Oetiker > tobi at oetiker.ch > 062 775 9902 > > On 18.04.2013, at 11:08, Frank Thommen wrote: > >> Hi >> >> package dependencies are only checked at package installation time, but >> not when UNinstalling them. We have several time run into issues, >> because a package has been removed which was required by others. >> >> Can you think for an easy way to implement such a check at >> deinstallation time w/o searching through all META files of all other >> packages? >> >> Cheers >> frank >> >> -- >> Frank Thommen - Structures IT Management and Support - EMBL Heidelberg >> frank.thommen at embl-heidelberg.de - +49 6221 387 8353 >> >> _______________________________________________ >> op-sepp mailing list >> op-sepp at lists.oetiker.ch >> https://lists.oetiker.ch/cgi-bin/listinfo/op-sepp >> -- Frank Thommen - Structures IT Management and Support - EMBL Heidelberg frank.thommen at embl-heidelberg.de - +49 6221 387 8353 From tobi at oetiker.ch Wed Apr 24 15:55:03 2013 From: tobi at oetiker.ch (Tobias Oetiker) Date: Wed, 24 Apr 2013 15:55:03 +0200 (CEST) Subject: [op-sepp] Package dependencies only work on installing but not on removing packages In-Reply-To: <517120AF.3000306@embl-heidelberg.de> References: <51701A98.5060101@embl-heidelberg.de> <1D5BCA2E-FB6D-44CE-AFBE-F4CCA6B6876A@oetiker.ch> <517120AF.3000306@embl-heidelberg.de> Message-ID: Hoi Frank, Friday Frank Thommen wrote: > Hi Tobi, > > basically I agree and I might go this way. But it requires lots of > discipline by the software maintainers (which I can't really rely on > here :-). E.g. if an additional dependency (PATH, LD_LIBRARY_PATH, > etc.) is added to start.pl after installation, this will not be > reflected in the reverse index unless the respective seppadm function > (install/webbuild/...) is run. Adding to start.pl /after/ installation > happens quite often in the case of complex scientific packages where > dependencies appear only at runtime in specific functions (which are > only used now and then). > > Generally I'd need a foolproof mechanism which is probably still to > check all META and start.pl files of all other packages when a package > is removed. This will require some time but we don't often remove > package anyway ;-) can't do fool proof I guess :-) but this is not realy sepp related ... for all it's worth, a program could use some internal config to access other parts of sepp ... at least if you verified that the dependencies listed in META are satisfied, you might catch some problem, AND peple might be more inclined to track their dependencies properly. cheers tobi > > Cheers > frank > > > On 18.04.13 18:45, Tobi Oetiker wrote: > > Frank, > > > > I guess you would have to build a reverse index, but sinc you could store it like the other indexes which are already being built, this would not be all that difficult. > > > > cheers > > > > Tobias Oetiker > > tobi at oetiker.ch > > 062 775 9902 > > > > On 18.04.2013, at 11:08, Frank Thommen wrote: > > > >> Hi > >> > >> package dependencies are only checked at package installation time, but > >> not when UNinstalling them. We have several time run into issues, > >> because a package has been removed which was required by others. > >> > >> Can you think for an easy way to implement such a check at > >> deinstallation time w/o searching through all META files of all other > >> packages? > >> > >> Cheers > >> frank > >> > >> -- > >> Frank Thommen - Structures IT Management and Support - EMBL Heidelberg > >> frank.thommen at embl-heidelberg.de - +49 6221 387 8353 > >> > >> _______________________________________________ > >> op-sepp mailing list > >> op-sepp at lists.oetiker.ch > >> https://lists.oetiker.ch/cgi-bin/listinfo/op-sepp > >> > > > -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900