You are not logged in.

#1 2024-03-21 17:55:43

live4thamuzik
Member
Registered: 2024-02-27
Posts: 73

[SOLVED] MAKEPKG: Error when trying to install FortiClient RPM

Hello,

I am trying to install forticlient_vpn_7.2.2.0753_x86_64.rpm

From what I can see the packages in the AUR are out of date so I downloaded the rpm file directly from Fortinet. (https://www.fortinet.com/support/product-downloads#vpn)

File was downloaded and saved to /home/%USERNAME%/Downloads

I created "PKGBUILD" file in the same directory as the .rpm file. here is the PKGBUILD file:

# Metadata; be sure to set this to reasonable values to not confuse your
# package manager or cause name conflicts with the repositories.
pkgname="forticlient_vpn_7.2.2.0753_x86_64.rpm"
pkgver="7.2.2.0753"
pkgrel="1"
pkgdesc="FortiClient VPN"
arch=("x86_64")

# The RPM file you want to install; place in the same directory as this file.
source=("forticlient_vpn_7.2.2.0753_x86_64.rpm")

# Assuming you're not going to push this to AUR or whatever, you can just skip
# the integrity check here. Otherwise, replace SKIP with the output of
# "sha -a 256 filename.rpm".
sha256sums=("SKIP")

package() {
  # Copy all directories from $srcdir into $pkgdir. $srcdir will already have
  # been populated with the contents of package.rpm, but it also contains a
  # symlink to it, which we don't want to copy; anything in $pkgdir after this
  # command will be installed to your root directory.
  find $srcdir/ -mindepth 1 -maxdepth 1 -type d | xargs cp -r -t "$pkgdir"
}

Here is the error I run into after running "makepkg -si"

[live4thamuzik@archlegion Downloads]$ makepkg -si
==> Making package: forticlient_vpn_7.2.2.0753_x86_64.rpm 7.2.2.0753-1 (Thu 21 Mar 2024 01:47:32 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found forticlient_vpn_7.2.2.0753_x86_64.rpm
==> Validating source files with sha256sums...
    forticlient_vpn_7.2.2.0753_x86_64.rpm ... Skipped
==> Extracting sources...
  -> Extracting forticlient_vpn_7.2.2.0753_x86_64.rpm with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
objcopy: ./opt/forticlient/gui/FortiClient-linux-x64/FortiClient: debuglink section already exists
objcopy: ./opt/forticlient/gui/FortiClient-linux-x64/chrome_crashpad_handler: debuglink section already exists
objcopy: ./opt/forticlient/gui/FortiClient-linux-x64/libEGL.so: debuglink section already exists
objcopy: ./opt/forticlient/gui/FortiClient-linux-x64/libGLESv2.so: debuglink section already exists
objcopy: ./opt/forticlient/gui/FortiClient-linux-x64/libffmpeg.so: debuglink section already exists
objcopy: ./opt/forticlient/gui/FortiClient-linux-x64/libvk_swiftshader.so: debuglink section already exists
objcopy: ./opt/forticlient/tpm2/tpm2_ptool/exe.linux-x86_64-3.7/lib/libbz2-a273e504.so.1.0.6: debuglink section already exists
objcopy: ./opt/forticlient/tpm2/tpm2_ptool/exe.linux-x86_64-3.7/lib/libffi-af4ed708.so.6.0.1: debuglink section already exists
objcopy: ./opt/forticlient/tpm2/tpm2_ptool/exe.linux-x86_64-3.7/lib/liblzma-004595ca.so.5.2.2: debuglink section already exists
objcopy: ./opt/forticlient/tpm2/tpm2_ptool/exe.linux-x86_64-3.7/lib/libreadline-2c5f7b8d.so.6.2: debuglink section already exists
objcopy: ./opt/forticlient/tpm2/tpm2_ptool/exe.linux-x86_64-3.7/lib/libtinfo-10270e32.so.5.9: debuglink section already exists
objcopy: ./opt/forticlient/tpm2/tpm2_ptool/exe.linux-x86_64-3.7/tpm2_ptool.CYyLVI: warning: allocated section `.dynstr' not in segment
objcopy: ./opt/forticlient/tpm2/tpm2_ptool/exe.linux-x86_64-3.7/tpm2_ptool.CYyLVI: warning: allocated section `.dynamic' not in segment
strip: ./opt/forticlient/tpm2/tpm2_ptool/exe.linux-x86_64-3.7/tpm2_ptool.4mJATF: warning: allocated section `.dynstr' not in segment
strip: ./opt/forticlient/tpm2/tpm2_ptool/exe.linux-x86_64-3.7/tpm2_ptool.4mJATF: warning: allocated section `.dynamic' not in segment
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "forticlient_vpn_7.2.2.0753_x86_64.rpm"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Creating package "forticlient_vpn_7.2.2.0753_x86_64.rpm-debug"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: forticlient_vpn_7.2.2.0753_x86_64.rpm 7.2.2.0753-1 (Thu 21 Mar 2024 01:48:45 PM EDT)
==> Installing package forticlient_vpn_7.2.2.0753_x86_64.rpm with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (2) forticlient_vpn_7.2.2.0753_x86_64.rpm-7.2.2.0753-1
             forticlient_vpn_7.2.2.0753_x86_64.rpm-debug-7.2.2.0753-1

Total Installed Size:  442.25 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                  [###################################] 100%
(2/2) checking package integrity                                [###################################] 100%
(2/2) loading package files                                     [###################################] 100%
(2/2) checking for file conflicts                               [###################################] 100%
error: failed to commit transaction (conflicting files)
forticlient_vpn_7.2.2.0753_x86_64.rpm: /lib exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).

Any insight as to what I am doing wrong is greatly appreciated.
-Thanks

(ADDITIONAL INFO)
My initial thought was to chown the ./opt/forticlient/ directory it cannot modify due to permissions however, the directory it is complaining about appears to be in a pkg folder which is created in ~/Downlaods after running makepkg

Last edited by live4thamuzik (2024-10-08 12:42:59)

Offline

#2 2024-03-21 18:21:15

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,091

Re: [SOLVED] MAKEPKG: Error when trying to install FortiClient RPM

Usually there's more needed then just extracting and copying to $pkgdir .

Are you ok with using the *.deb version ?

If yes, use https://aur.archlinux.org/packages/forticlient-vpn , apply the patch in currently  the first comment on that page and you should have 7.2.2.0753 .


Incase you prefer to continue with your PKGBUILD above : add options=(!debug) .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-03-21 18:25:04

live4thamuzik
Member
Registered: 2024-02-27
Posts: 73

Re: [SOLVED] MAKEPKG: Error when trying to install FortiClient RPM

Lone_Wolf wrote:

Usually there's more needed then just extracting and copying to $pkgdir .

Are you ok with using the *.deb version ?

If yes, use https://aur.archlinux.org/packages/forticlient-vpn , apply the patch in currently  the first comment on that page and you should have 7.2.2.0753 .


Incase you prefer to continue with your PKGBUILD above : add options=(!debug) .


I'll give the .deb version a shot. Thanks!

Offline

#4 2024-03-21 18:57:16

loqs
Member
Registered: 2014-03-06
Posts: 18,917

Re: [SOLVED] MAKEPKG: Error when trying to install FortiClient RPM

live4thamuzik wrote:
error: failed to commit transaction (conflicting files)
forticlient_vpn_7.2.2.0753_x86_64.rpm: /lib exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).

Any insight as to what I am doing wrong is greatly appreciated.

You would need to replace "$pkgdir"/lib with "$pkgdir"/usr/lib as /lib is a symlink to /usr/lib provided by the filesystem package.

Offline

Board footer

Powered by FluxBB