git: ee6d553d7b6a - main - x11/squeekboard: Unbreak with CARGO_BUILD_TARGET in the environment (D31872)

Tobias Kortkamp tobik at FreeBSD.org
Sat Sep 11 08:24:12 UTC 2021


The branch main has been updated by tobik:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ee6d553d7b6acc679d30b86c717ab42c0efd3459

commit ee6d553d7b6acc679d30b86c717ab42c0efd3459
Author:     Tobias Kortkamp <tobik at FreeBSD.org>
AuthorDate: 2021-09-10 16:59:48 +0000
Commit:     Tobias Kortkamp <tobik at FreeBSD.org>
CommitDate: 2021-09-11 08:21:48 +0000

    x11/squeekboard: Unbreak with CARGO_BUILD_TARGET in the environment (D31872)
    
    cp: ./release/librs.a: No such file or directory
    Traceback (most recent call last):
      File "/wrkdirs/usr/ports/x11/squeekboard/work/squeekboard-8293c5f10dbd5c1fdb071e1f7e4a97a4cd52d592/cargo_build.py", line 45, in <module>
        subprocess.run(['cp', '-a',
      File "/usr/local/lib/python3.8/subprocess.py", line 516, in run
        raise CalledProcessError(retcode, process.args,
    subprocess.CalledProcessError: Command '['cp', '-a', './release/librs.a', PosixPath('/wrkdirs/usr/ports/x11/squeekboard/work/squeekboard-8293c5f10dbd5c1fdb071e1f7e4a97a4cd52d592/_build/src/librs.a')]' returned non-zero exit status 1.
    
    http://package18.nyi.freebsd.org/data/122amd64-default-foo/2021-09-09_14h16m24s/logs/errors/squeekboard-1.14.0_2.log
    
    PR:             258337
---
 x11/squeekboard/files/patch-cargo__build.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/x11/squeekboard/files/patch-cargo__build.py b/x11/squeekboard/files/patch-cargo__build.py
new file mode 100644
index 000000000000..30417b44da24
--- /dev/null
+++ b/x11/squeekboard/files/patch-cargo__build.py
@@ -0,0 +1,19 @@
+--- cargo_build.py.orig	2021-09-10 16:56:00 UTC
++++ cargo_build.py
+@@ -6,6 +6,7 @@ instead of the source tree.
+ """
+ 
+ from pathlib import Path
++import os
+ import shlex
+ import subprocess
+ import sys
+@@ -43,7 +44,7 @@ if out_path:
+     out_basename = out_path.name
+     filename = filename or out_basename
+     subprocess.run(['cp', '-a',
+-        './{}/{}'.format(binary_dir, filename),
++        os.path.join('.', os.getenv('CARGO_BUILD_TARGET', ''), binary_dir, filename),
+         out_path],
+         check=True)
+ 


More information about the dev-commits-ports-main mailing list