You are not logged in.

#1 2024-05-28 08:55:21

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,111
Website

[WORKAROUND] makechrootpkg not forwarding -D to makepkg

So I have the following issue:

[build@der-geraet ~]$ ls
mfgtools  networkmanager-fortisslvpn  pdfchain  repo  rustrover  setserial  teams  teams-for-linux
[build@der-geraet ~]$ makechrootpkg -cr /var/build -- --dir teams-for-linux 
==> ERROR: This must be run in a directory containing a PKGBUILD.
[build@der-geraet ~]$ makechrootpkg -cr /var/build -- -D teams-for-linux 
==> ERROR: This must be run in a directory containing a PKGBUILD.
[build@der-geraet ~]$ cd teams-for-linux/
[build@der-geraet teams-for-linux]$ makechrootpkg -cr /var/build 
==> Synchronizing chroot copy [/var/build/root] -> [build]...done
==> Making package: teams-for-linux 1.4.37-1 (Tue May 28 10:52:37 2024)
==> Retrieving sources...
  -> Found teams-for-linux-1.4.37.tar.gz
  -> Found teams-for-linux.desktop
==> Validating source files with sha256sums...
    teams-for-linux-1.4.37.tar.gz ... Passed
    teams-for-linux.desktop ... Passed
^C^C==> ERROR: Aborting...
[build@der-geraet teams-for-linux]$ ^C

Why is makechrootpkg not forwarding the directory to makepkg?


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#2 2024-05-28 09:43:26

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [WORKAROUND] makechrootpkg not forwarding -D to makepkg

man makechrootpkg wrote:

Run this script in a directory containing a PKGBUILD to build a package inside a clean chroot

Seems to be intentional and makepkg also expects to be called from a directory where PKGBUILD (or buildscript) is present .


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-05-28 13:55:38

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,111
Website

Re: [WORKAROUND] makechrootpkg not forwarding -D to makepkg

Well, that's a bummer.
I worked around this with a script that does a cd before invoking makechrootpkg for now.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

Board footer

Powered by FluxBB