You are not logged in.

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

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,021
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?


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

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

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,151

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.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2024-05-28 13:55:38

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,021
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.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

Board footer

Powered by FluxBB