pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56048: pkgsrc/misc/libreoffice: set "OS Environment" on NetBSD,same as FreeBSD.



>Number:         56048
>Category:       pkg
>Synopsis:       pkgsrc/misc/libreoffice: set "OS Environment" on NetBSD,same as FreeBSD.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 09 11:00:00 +0000 2021
>Originator:     Jun Ebihara
>Release:        pkgsrc Mar.9 2021
>Organization:
SOUM Corporation
>Environment:
NetBSD arm64 9.99.80 NetBSD 9.99.80 (GENERIC64) #0: Tue Feb 16 19:46:15 UTC 2021  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm

>Description:
On libreoffice,add NetBSD version to "Environment".

Before:

Help -> About LibreOffice
 Environment: OS: unknown

https://twitter.com/ebijun/status/1368885643971948546

After:

 Environment: OS: NetBSD 9.99

https://twitter.com/ebijun/status/1369235423961092096
>How-To-Repeat:
On NetBSD:

1. make package-install on /usr/pkgsrc/misc/libreoffice
2. Open "Help" -> "About LibreOffice"
 Environment: OS: unknown
>Fix:
https://github.com/ebijun/NetBSD/blob/master/pkgsrc/libreoffice/patch-vcl_unx_generic_app_geninst.cxx

$NetBSD$

Set "OS Environment" on NetBSD,same as FreeBSD.

To Fix:
Help -> About LibreOffice
 Environment: OS: unknown


--- vcl/unx/generic/app/geninst.cxx.org	2021-02-25 12:19:22.000000000 +0000
+++ vcl/unx/generic/app/geninst.cxx
@@ -22,7 +22,7 @@
 #if defined(LINUX)
 #  include <stdio.h>
 #endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 #  include <sys/utsname.h>
 #endif
 
@@ -73,7 +73,7 @@ OUString SalGenericInstance::getOSVersio
         fclose( pVersion );
     }
     return aKernelVer;
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__)
     struct utsname stName;
     if ( uname( &stName ) != 0 )
         return aKernelVer;



Home | Main Index | Thread Index | Old Index