[opensuse-factory] Whither logger
Anybody know where logger(1) went? https://build.opensuse.org/package/live_build_log/openSUSE%3AFactory/twilio-... Thanks, -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 01.09.2014 um 18:43 schrieb Archie Cobbs:
Anybody know where logger(1) went?
https://build.opensuse.org/package/live_build_log/openSUSE%3AFactory/twilio-...
logger seems to be part of util-linux-systemd nowadays. But coolo added today to the Factory prjconf FileProvides: /bin/logger util-linux-systemd So you should be able to require /bin/logger (or util-linux-systemd). Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Mon, Sep 1, 2014 at 11:52 AM, Wolfgang Rosenauer <wolfgang@rosenauer.org> wrote:
Thanks... but in e.g. 13.1 logger is /usr/bin/logger, not /bin/logger... So then won't this package (and every other package that uses logger(1)) still need a conditional test for factory vs. others? -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tue, Sep 2, 2014 at 8:27 AM, Stephan Kulow <coolo@suse.de> wrote:
My mistake: `which logger` says /usr/bin/logger, but I didn't realize there is also a symlink /bin/logger -> /usr/bin/logger. However, now 13.1 doesn't build with either /bin/logger or /usr/bin/logger as the requirement: Building twilio-utils.spec for openSUSE_13.1/i586 Getting buildinfo from server and store to /home/archie/obs/network:telephony/twilio-utils/.osc/_buildinfo-openSUSE_13.1-i586.xml Getting buildconfig from server and store to /home/archie/obs/network:telephony/twilio-utils/.osc/_buildconfig-openSUSE_13.1-i586 buildinfo is broken... it says: unresolvable: nothing provides /bin/logger Building twilio-utils.spec for openSUSE_13.1/i586 Getting buildinfo from server and store to /home/archie/obs/network:telephony/twilio-utils/.osc/_buildinfo-openSUSE_13.1-i586.xml Getting buildconfig from server and store to /home/archie/obs/network:telephony/twilio-utils/.osc/_buildconfig-openSUSE_13.1-i586 buildinfo is broken... it says: unresolvable: nothing provides /usr/bin/logger So it still appears a conditional test of some kind will be necessary... unless I'm still missing something. Thanks, -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 02.09.2014 15:35, Archie Cobbs wrote:
So it still appears a conditional test of some kind will be necessary... unless I'm still missing something.
You can add this to your prj's prjconf %if %suse_version < 1320 FileProvides: /bin/logger util-linux %endif Greetings, Stephan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tue, Sep 2, 2014 at 8:38 AM, Stephan Kulow <coolo@suse.de> wrote:
Except (a) I don't think I have the rights to do that (network:telephony and/or factory) and (b) shouldn't this problem be solved in a more global way so that every other program that requires logger(1) will not face the same issue? Apologies if I'm missing something; I have not mucked with prjconf before. Thanks, -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tue, Sep 2, 2014 at 10:17 AM, Jan Engelhardt <jengelh@inai.de> wrote:
Which takes us neatly right back to where this whole thread started :) In summary... it appears the best I can do is this conditional, package-specific solution, unless someone has a more elegant one. %if %suse_version < 1320 Requires: util-linux %else Requires: util-linux-systemd %endif Thanks, -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 09/02/2014 09:09 PM, Archie Cobbs wrote:
From your build log: [ 157s] checking for logger... no [ 157s] configure: error: logger not found I'm far from being an expert on this, and I don't know twilio-utils, but why would a package need a logger at *build time*? Have a nice day, Berny -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wed, Sep 3, 2014 at 2:43 AM, Bernhard Voelker <mail@bernhard-voelker.de> wrote:
This is a very common portability trick: locate a utility via AC_PATH_PROG() at build time, instead of making non-portable assumptions about its location that will only fail at runtime. logger(1) is a perfect example - e.g. it could be in /bin/logger or /usr/bin/logger, and in openSUSE it's in fact in both locations (with a symlink), but on other Linux systems... who knows?? Hence the use of AC_PATH_PROG() to find it at build time. -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wed, Sep 3, 2014 at 9:30 AM, Stephan Kulow <coolo@suse.de> wrote:
Yeah - that's the whole point :) In any case, it is the reverse situation which is more critical. If you DON'T check for it at build time, then if it's NOT there you'll only discover the error at runtime. With the ./configure test, you discover the problem at build time instead. This is the whole point of using ./configure - figure out where stuff is at build time (or figure out that stuff can't be found and report an error), so that the following assertion is true: IF the thing builds successfully, THEN it will work properly at runtime - no matter what O/S you build it on. -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 03.09.2014 16:49, Archie Cobbs wrote:
The problem with this: if your program hard codes the path in the binary, your spec file doesn't need to require util-linux but the exact path hardcoded. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wed, Sep 3, 2014 at 9:51 AM, Stephan Kulow <coolo@suse.de> wrote:
Fine - except I already tried that and it didn't work and there's no way for me to fix it! We are going in circles; see previous loop here: http://lists.opensuse.org/opensuse-factory/2014-09/msg00027.html http://lists.opensuse.org/opensuse-factory/2014-09/msg00033.html http://lists.opensuse.org/opensuse-factory/2014-09/msg00034.html -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wed, 03 Sep 2014, 17:06:21 +0200, Archie Cobbs wrote:
I'm not sure if the build environment has a sane default setup wrt/ repositories, but if it had, we could just evaluate "zypper what-provides $(type -p logger)", and use the output as the real value for Requires:, no? Cheers. l8er manfred
El 01/09/14 a las #4, Archie Cobbs escribió:
Logger is in util-linux-systemd package.. this is because "logger" now logs to the journal. -- Cristian "I don't know the key to success, but the key to failure is trying to please everybody." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 01.09.2014 um 18:43 schrieb Archie Cobbs:
Anybody know where logger(1) went?
https://build.opensuse.org/package/live_build_log/openSUSE%3AFactory/twilio-...
logger seems to be part of util-linux-systemd nowadays. But coolo added today to the Factory prjconf FileProvides: /bin/logger util-linux-systemd So you should be able to require /bin/logger (or util-linux-systemd). Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Mon, Sep 1, 2014 at 11:52 AM, Wolfgang Rosenauer <wolfgang@rosenauer.org> wrote:
Thanks... but in e.g. 13.1 logger is /usr/bin/logger, not /bin/logger... So then won't this package (and every other package that uses logger(1)) still need a conditional test for factory vs. others? -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tue, Sep 2, 2014 at 8:27 AM, Stephan Kulow <coolo@suse.de> wrote:
My mistake: `which logger` says /usr/bin/logger, but I didn't realize there is also a symlink /bin/logger -> /usr/bin/logger. However, now 13.1 doesn't build with either /bin/logger or /usr/bin/logger as the requirement: Building twilio-utils.spec for openSUSE_13.1/i586 Getting buildinfo from server and store to /home/archie/obs/network:telephony/twilio-utils/.osc/_buildinfo-openSUSE_13.1-i586.xml Getting buildconfig from server and store to /home/archie/obs/network:telephony/twilio-utils/.osc/_buildconfig-openSUSE_13.1-i586 buildinfo is broken... it says: unresolvable: nothing provides /bin/logger Building twilio-utils.spec for openSUSE_13.1/i586 Getting buildinfo from server and store to /home/archie/obs/network:telephony/twilio-utils/.osc/_buildinfo-openSUSE_13.1-i586.xml Getting buildconfig from server and store to /home/archie/obs/network:telephony/twilio-utils/.osc/_buildconfig-openSUSE_13.1-i586 buildinfo is broken... it says: unresolvable: nothing provides /usr/bin/logger So it still appears a conditional test of some kind will be necessary... unless I'm still missing something. Thanks, -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 02.09.2014 15:35, Archie Cobbs wrote:
So it still appears a conditional test of some kind will be necessary... unless I'm still missing something.
You can add this to your prj's prjconf %if %suse_version < 1320 FileProvides: /bin/logger util-linux %endif Greetings, Stephan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tue, Sep 2, 2014 at 8:38 AM, Stephan Kulow <coolo@suse.de> wrote:
Except (a) I don't think I have the rights to do that (network:telephony and/or factory) and (b) shouldn't this problem be solved in a more global way so that every other program that requires logger(1) will not face the same issue? Apologies if I'm missing something; I have not mucked with prjconf before. Thanks, -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (7)
-
Archie Cobbs
-
Bernhard Voelker
-
Cristian Rodríguez
-
Jan Engelhardt
-
Manfred Hollstein
-
Stephan Kulow
-
Wolfgang Rosenauer