Apache OpenOffice Install

Hey, I will just start with this…

 ╭─fenris@fenris in repo: zoom on  master [?] as 🧙 took 28m57s
 ╰─λ garuda-inxi
System:
  Kernel: 6.1.69-1-lts arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
    root=UUID=576a4f6d-5c57-475b-8279-4f23d821f833 rw rootflags=subvol=@
    quiet resume=UUID=6feff68d-462f-4c25-aead-653957ef83a3 loglevel=3 ibt=off
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm
    v: 4.18.0 vt: 7 dm: LightDM v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: AZW model: MINI S v: 10 serial: <superuser required>
    UEFI: American Megatrends LLC. v: ADLNV104 date: 02/06/2023
CPU:
  Info: model: Intel N100 bits: 64 type: MCP arch: Alder Lake level: v3
    note: check built: 2021+ process: Intel 7 (10nm ESF) family: 6
    model-id: 0xBE (190) stepping: 0 microcode: 0x12
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 384 KiB
    desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 1x2 MiB L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 776 high: 836 min/max: 700/3400 scaling:
    driver: intel_pstate governor: powersave cores: 1: 727 2: 770 3: 773 4: 836
    bogomips: 6452
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Alder Lake-N [UHD Graphics] driver: i915 v: kernel
    arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports: active: HDMI-A-1
    empty: HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:46d1 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.10 compositor: xfwm v: 4.18.0 driver:
    X: loaded: modesetting alternate: fbdev,intel,vesa dri: iris gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: Acer G247HYL serial: <filter>
    built: 2016 res: 1920x1080 hz: 60 dpi: 93 gamma: 1.2
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  API: Vulkan v: 1.3.274 layers: 5 device: 0 type: integrated-gpu
    name: Intel Graphics (ADL-N) driver: mesa intel v: 23.3.1-arch1.1
    device-ID: 8086:46d1 surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe
    (LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.3.1-arch1.1 (LLVM
    16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Audio:
  Device-1: Intel driver: snd_hda_intel v: kernel
    alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:54c8
    class-ID: 0403
  Device-2: C-Media CM106 Like Sound Device
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-4.2:6 chip-ID: 0d8c:0102 class-ID: 0300
  API: ALSA v: k6.1.69-1-lts status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel CNVi: Wi-Fi driver: N/A modules: iwlwifi bus-ID: 00:14.3
    chip-ID: 8086:54f0 class-ID: 0280
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000
    bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-3: ASIX AX88179 Gigabit Ethernet driver: ax88179_178a type: USB
    rev: 3.0 speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 2-4.1:3
    chip-ID: 0b95:1790 class-ID: ff00 serial: <filter>
  IF: enp0s20f0u4u1 state: down mac: <filter>
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
  IF-ID-2: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-3: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:5 chip-ID: 8087:0026
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
    status: discoverable: no pairing: no
Drives:
  Local Storage: total: 1.81 TiB used: 703 GiB (37.9%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM048-2E7172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5400 serial: <filter> fw-rev: 0001 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Corsair model: Survivor 3.0
    size: 922.46 GiB block-size: physical: 512 B logical: 512 B type: USB
    rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
    fw-rev: 000A scheme: MBR
Partition:
  ID-1: / raw-size: 100 GiB size: 100 GiB (100.00%) used: 12.98 GiB (13.0%)
    fs: btrfs dev: /dev/sda3 maj-min: 8:3
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 584 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 719 GiB size: 719 GiB (100.00%)
    used: 259.48 GiB (36.1%) fs: btrfs dev: /dev/sda4 maj-min: 8:4
  ID-4: /var/log raw-size: 100 GiB size: 100 GiB (100.00%)
    used: 12.98 GiB (13.0%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
  ID-5: /var/tmp raw-size: 100 GiB size: 100 GiB (100.00%)
    used: 12.98 GiB (13.0%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.4 GiB used: 2.37 GiB (15.4%)
    priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 4
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 12 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda2 maj-min: 8:2
Sensors:
  System Temperatures: cpu: 58.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 307 Uptime: 4h 48m wakeups: 0 Memory: total: 16 GiB note: est.
  available: 15.4 GiB used: 4.44 GiB (28.8%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
  pm: pacman pkgs: 1419 libs: 426 tools: pamac,paru,yay Shell: Bash v: 5.2.21
  running-in: xfce4-terminal inxi: 3.3.31
Garuda (2.6.22-1):
  System install date:     2023-12-28
  Last full system update: 2023-12-29 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            vmware-workstation-server.service vmware.service 

I don’t know how I installed Open Office on Garuda before, and I know this is not referring to Garuda… Apache OpenOffice - ArchWiki
However, I’m not sure why sudo pacman -Sy openoffice-bin not available, do I have to use git to load it on there using Snap Craft?

I’d say, use LibreOffice. Package extra/libreoffice-fresh. It’s actually maintained.

3 Likes
paru openoffice-bin
1 aur/openoffice-bin 4.1.14-1 [+44 ~0.08] [Out-of-date: 2023-12-23]
    The Free and Open Productivity Suite
:: Packages to install (eg: 1 2 3, 1-3):
:: 
2 Likes

When I follow through with that, I get this…

╭─fenris@fenris in ~/Downloads/Git Installs took 6ms
 ╰─λ paru openoffice-bin
1 aur/openoffice-bin 4.1.14-1 [+44 ~0.08] [Out-of-date: 2023-12-23]
    The Free and Open Productivity Suite
:: Packages to install (eg: 1 2 3, 1-3):
:: 1-3
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...
:: marked out of date: openoffice-bin

Aur (1)             Old Version  New Version    Make Only
aur/openoffice-bin               4.1.14-1       No

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
/home/fenris/.cache/paru/clone/openoffice-bin/PKGBUILD
# Maintainer: Lari Tikkanen <lartza at outlook dot com>
# Contributor: Bernhard Landauer <[email protected]>
# Contributor: Sibren Vasse <arch at sibrenvasse dot nl>
# Contributor: Dominic Finke <arch at realbig dot de>

## To install different language version adjust the following line.
## available: ast, bg, ca, ca-XR, ca-XV, cs, da, de, el, en-GB, en-US, es, eu, >
_lang=en-US

pkgname=openoffice-bin
_vmaj=4
pkgver=$_vmaj.1.14
pkgrel=1
pkgdesc="The Free and Open Productivity Suite"
arch=('x86_64' 'i686')
url="https://www.openoffice.org"
license=('Apache')
depends=('freetype2'
         'glibc>=2.5'
         'gtk2>=2.10.4'
         'hicolor-icon-theme'
         'desktop-file-utils'
         'shared-mime-info'
         'libxcrypt-compat')
optdepends=('apr-util: adds apr support'
            'java-environment: adds java support'
            'gconf: adds additional gnome support'
            'gstreamer0.10-base: some gstr-plugins to support multimedia conten>
            'mesa: for the OGLTrans extension of impress'
            'mime-types: provides /etc/mime.types'
            'nss: adds support for signed files/macros'
            'python2: adds python support'
            'raptor1: adds rdf support'
            'sqlite: adds sqlite support')
conflicts=('openoffice-base-bin-unstable')
replaces=('openoffice-base-bin' 'openoffice')
backup=("opt/openoffice$_vmaj/program/sofficerc")
options=(!strip docs)
source_x86_64=("https://downloads.apache.org/openoffice/$pkgver/binaries/$_lang>
source_i686=("https://downloads.apache.org/openoffice/$pkgver/binaries/$_lang/A>
sha256sums_x86_64=('680614656e1c5625b39111af37ff2e144b90cf0b3028c6e7d63bbd41ffc>
sha256sums_i686=('f20abdd86b9fbf4518fa80955048c0d6098569d78340b06c9567029509b03>

_source_dirs=$_lang/RPMS

_find_rpms() {
    local dir file
    for dir in "${_source_dirs[@]}"; do
        dir=${srcdir:-src}/${dir}
        ( cd "${dir}" ) # check existing
        for file in $( find "${dir}" -type f -name '*.rpm' ); do
            if ! [[ $file == */desktop-integration/* && $file != *-freedesktop->
                ! [[ $file == */jre-* ]]; then
                echo "${file}"
            elif type -p msg >/dev/null; then
                echo "Skipping ${file##*/}" >&2
            else
                echo "Skipping ${file##*/}" >&2
            fi
        done
    done
}

_ln_s_t() {
    local dir=$1 prefix=$2
    shift 2
    mkdir -p "$dir"
    local file
    for file in "${@}"; do
        readlink -v -e "${file}" >/dev/null # check existing
        ln -s -T /"${file}" "${dir}/${prefix}${file##*/}"
    done
}

package() {
    cd $pkgdir
    local file
        for file in $( _find_rpms ); do
        echo "Extracting ${file##*/}"
        bsdtar -xf "${file}"
    done
    echo "Completing package"
    # remove symlink to avoid conflict with libreoffice-common 3.5.2-1
    # (not used in the desktop files)
    [[ -h usr/bin/soffice ]] && rm -f usr/bin/soffice
    # add licenses (found by find pkg -ipath '*license*')
    _ln_s_t usr/share/licenses/${pkgname} '' \
        opt/openoffice$_vmaj/program/LICENSE
    # Fix python shebang calls
    sed -i -re "1s;^#! *(/usr(/local)?)?/bin/(env +)?python(2[^ ]*)?( |$);#!/us>
        find opt/openoffice$_vmaj/program/python-core-2.7.18/lib -type f -name >
        )
}

I don’t know what I am suppose to do when I get source code like this. No compiler shows up in any of the commands.

I use both LibreOffice and OpenOffice. There are things in OpenOffice that I use that sometimes LibreOffice doesn’t

Well, it’s in AUR but this is a -bin package, nothing to compile.
I did not read it carefully but it unpacks .rpm packages.
Or maybe I misunderstood the question.
Does it install and function if you proceed?

Ah, good to know. Indeed it’s long I don’t use it, last time I checked OpenOffice was quite sitting idle on its hands and not seeing it even packaged I assumed it’s basically abandonware.

No, it doesn’t

Is it possible that it just might not require any changes?

Do the comments at AUR (en) - openoffice-bin help in any way?
I just tried installing it and it fails (always good to report how it fails) with:

curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://downloads.apache.org/openoffice/4.1.14/binaries/en-US/Apache_OpenOffice_4.1.14_Linux_x86-64_install-rpm_en-US.tar.gz
    Aborting...
error: failed to download sources for 'openoffice-bin-4.1.14-1':
error: packages failed to build: openoffice-bin-4.1.14-1

This is mentioned in the comments above.
You can find the PKGBUILD at ~/.cache/paru/clone/openoffice-bin/.

Also, it looks like it requires python2.

No, I can’t get to that stage. What paru does is just bring up the source code and nothing happens. It just sits there, it does nothing.

Sits there, with a : on the last line? Press q then y.

This is what I get…

 ╭─fenris@fenris in ~/Downloads/Git Installs took 5m6s
paru openoffice-bin
1 aur/openoffice-bin 4.1.14-1 [+44 ~0.08] [Out-of-date: 2023-12-23]
    The Free and Open Productivity Suite
:: Packages to install (eg: 1 2 3, 1-3):
:: 1-3
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...
:: marked out of date: openoffice-bin

Aur (1)             Old Version  New Version    Make Only
aur/openoffice-bin               4.1.14-1       No

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
/home/fenris/.cache/paru/clone/openoffice-bin/PKGBUILD
# Maintainer: Lari Tikkanen <lartza at outlook dot com>
# Contributor: Bernhard Landauer <[email protected]>
# Contributor: Sibren Vasse <arch at sibrenvasse dot nl>
# Contributor: Dominic Finke <arch at realbig dot de>

## To install different language version adjust the following line.
## available: ast, bg, ca, ca-XR, ca-XV, cs, da, de, el, en-GB, en-US, es, eu, >
_lang=en-US

pkgname=openoffice-bin
_vmaj=4
pkgver=$_vmaj.1.14
pkgrel=1
pkgdesc="The Free and Open Productivity Suite"
arch=('x86_64' 'i686')
url="https://www.openoffice.org"
license=('Apache')
depends=('freetype2'
         'glibc>=2.5'
         'gtk2>=2.10.4'
         'hicolor-icon-theme'
         'desktop-file-utils'
:: Accept changes? [Y/n]: y
fetching devel info...
==> Making package: openoffice-bin 4.1.14-1 (Sat 30 Dec 2023 03:20:23 AM)
==> Retrieving sources...
  -> Downloading Apache_OpenOffice_4.1.14_Linux_x86-64_install-rpm_en-US.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   196    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://downloads.apache.org/openoffice/4.1.14/binaries/en-US/Apache_OpenOffice_4.1.14_Linux_x86-64_install-rpm_en-US.tar.gz
    Aborting...
error: failed to download sources for 'openoffice-bin-4.1.14-1': 
error: packages failed to build: openoffice-bin-4.1.14-1

 ╭─fenris@fenris in ~/Downloads/Git Installs took 25s
[🔴] × 

And for my next trick…should I try compiling with git clone?

See those comments, the 404 is known and there is instructions to edit the PKGBUILD.
Ask if something not clear.

1 Like

Hell :slight_smile:

Use libreoffice-fresh :smiley:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.