[Bug 1185613] New: groff: .Os macro uses BSD as default
http://bugzilla.opensuse.org/show_bug.cgi?id=1185613 Bug ID: 1185613 Summary: groff: .Os macro uses BSD as default Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: sbrabec@suse.com Reporter: lnussel@suse.com QA Contact: qa-bugs@suse.de CC: werner@suse.com Found By: --- Blocker: --- The .Os macro in man pages when used without parameters produces "BSD". The built-in default for "doc-default-operating-system" in groff needs to be changed, ideally to read /etc/os-release. # man ssh|tail -1 BSD July 15, 2020 BSD # (. /etc/os-release; echo .ds doc-default-operating-system $PRETTY_NAME) >> /usr/share/groff/site-tmac/mdoc.local tw-systemd:/tmp # man ssh|tail -1 openSUSE Tumbleweed July 15, 2020 openSUSE Tumbleweed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185613 http://bugzilla.opensuse.org/show_bug.cgi?id=1185613#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> --- (In reply to Ludwig Nussel from comment #3)
Yes and no. You can't do this during build time:
$ osc rbl openSUSE:Factory groff standard x86_64|grep -B2 -A4 "++ PRETTY_NA" [ 64s] + . /etc/os-release [ 64s] ++ NAME='openSUSE Dummy' [ 64s] ++ PRETTY_NAME='openSUSE Dummy' [ 64s] ++ ID=suse [ 64s] ++ ID_LIKE=suse [ 64s] ++ VERSION_ID=Dummy [ 64s] + sed -i 's:\(doc-volume-operating-system\) BSD:\1 openSUSE Dummy:' tmac/doc-common-u
Hopefully the build with Tumbleweed or a SLES uses an other value for PRETTY_NAME. What happens during openSUSE:Factory build is then secondary. For mksh I use as requested by upstream vendor=OpenBuildService %if 0%{?suse_version} > 0 %if !0%{?is_opensuse} vendor=SLES %else vendor=openSUSE %endif %endif -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185613 http://bugzilla.opensuse.org/show_bug.cgi?id=1185613#c5 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(lnussel@suse.com) | --- Comment #5 from Ludwig Nussel <lnussel@suse.com> --- (In reply to Dr. Werner Fink from comment #4)
[...] Hopefully the build with Tumbleweed or a SLES uses an other value for PRETTY_NAME. What happens during openSUSE:Factory build is then secondary.
Sounds like your mental model on how builds works is not aligned with reality :-) Binary packages of an OBS project are reused in different products. So what's correct to display really depends on what we want. Code stream or actually installed product? Evaluating os-release at run time, ie implement in C code would show the actually installed product. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com