Commit Graph

146 Commits

Author SHA1 Message Date
Đoàn Trần Công Danh ea2839018e setup/archive: non-tar gz/xz fix non non-supplied $dst 2024-01-20 14:30:19 +07:00
oreo639 b8edfe56a5 setup/archive: fix extraction of non-tar gz/bz2/xz/zst archives
Extract archive in the destination directory instead of the source
directory.
2024-01-18 13:44:17 -08:00
Gonzalo Tornaría fc7a5ce24c xbps-src: fix NOCOLORS 2023-12-31 16:05:45 +01:00
Andrew J. Hesford a3c8698631 python3, python3-tkinter: update to 3.12.0
Also mark this installation as "externally managed" to prevent users
from installing system-wide packages using pip.

Closes: #43735.
2023-10-06 12:12:20 -04:00
q66 937272e967 xbps-src: abstract away non-portable stat(1)
This implements semi-portable abstractions for both GNU and BSD
flavors of stat.
2023-09-14 08:48:59 +07:00
q66 4349108b68 setup/git.sh: fix non-portable sed invocation
This lets xbps-src work in non-GNU environments.
2023-09-14 08:48:59 +07:00
Đoàn Trần Công Danh a6c4206699 vsrccopy: fix detection of last argument 2023-08-30 22:48:53 +07:00
Đoàn Trần Công Danh fe0d548527 vsrcextract: drop the heuristic to prefer tar over bsdtar
Only kexec-tools has problem with bsdtar, the heuristic is problematic
with those packages with tar in hostmakedepends
2023-08-28 17:03:37 +07:00
Đoàn Trần Công Danh 77a4de4385 xen: use vsrcextract 2023-08-21 11:27:32 +07:00
Đoàn Trần Công Danh a1d3f7de1d kexec-tools: drop custom do_extract 2023-08-21 11:27:32 +07:00
Đoàn Trần Công Danh 2deec738e1 do-extract: move main logic into helper function 2023-08-21 11:27:32 +07:00
cinerea0 5bb9d7c856 xbps-src: new vopt_feature helper 2023-07-26 20:31:47 +02:00
Đoàn Trần Công Danh 4fcd6a35a9 setup: unset bash exported function
Fix: #45239
2023-07-26 07:58:23 +07:00
classabbyamp 7b4a6ddb05 common/environment/setup/install.sh: support encoding in vman
`vman out/foo.fr.UTF-8.1` should install `usr/share/man/fr.UTF-8/man1/foo.1`,
not `usr/share/man/fr/man1/foo.UTF-8.1`
2023-05-06 10:39:38 -04:00
OpenSauce04 f3888e3b54 xbps-src: Replace non-standard English "unexistent" with "nonexistent" 2023-04-17 12:44:48 -05:00
mhmdanas 0fa47e5979 common: use HTTPS where working. 2023-03-07 07:44:23 +07:00
classabbyamp f134b1d39c common/environment/setup/install.sh: always add log service
- overridable by having a log service at `$pkgname/files/$service/log`
- warns if stderr is not redirected in the main service
- uses a sane default run script with the service name set as tag and
  daemon facility
2023-02-09 21:36:13 -05:00
Piraty d4b50ed2cf
common/environment/setup/misc.sh: fix typo 2023-01-11 22:04:36 +01:00
Gonzalo Tornaría 1d4a9d6c71 xbps-src: keep http_proxy and other lowercase proxy variables 2023-01-04 22:24:13 +07:00
classabbyamp 120dbc7fc6
common/environment/setup/sourcepkg.sh: don't unset $UBUNTU_SITE 2022-12-12 13:42:39 -05:00
Đoàn Trần Công Danh aa3a922c52 env/setup/sourcepkg: fix for multiple env variables' value 2022-12-09 08:31:27 +07:00
Đoàn Trần Công Danh 6174bd6afd env/setup/sourcepkg: unset all exported variables
except known to be good one.

See 581cdacc5b and 253b9f0b98
2022-12-03 17:27:29 +07:00
Đoàn Trần Công Danh 581cdacc5b env/setup/sourcepkg: unset python3 build-helper variables 2022-11-05 20:03:57 +07:00
Andrew J. Hesford 6504d8e133 python3: update to 3.11.0.
Also include bluez headers at build time to allow Bluetooth sockets in
the Python stdlib.

h/t: @sgn
2022-11-05 08:21:20 -04:00
Duncaen 11c93a1e79
common: correctly unset build_option_* variables
We can use the bash feature ${!prefix@}/${!prefix*} which expands to
all variables with the prefix.
This avoids leaking build_options between sourced templates.
2022-07-05 17:22:38 +02:00
classabbyamp 5c6ae7a463 common: add disable_parallel_check 2022-06-23 23:08:03 -05:00
Jami Kettunen 9f7f5629c6 common: unset CMAKE_GENERATOR before sourcing templates
When building dependencies of packages this has to be unset to avoid
using e.g. CMAKE_GENERATOR="Unix Makefiles" for a package which expected
to build with the default of make_cmd=ninja, and would subsequently fail
with "ninja: error: loading 'build.ninja': No such file or directory"
during do_build() if do_configure() generated a Makefile instead of a
build.ninja file.
2022-06-05 17:22:54 -03:00
Michal Vasilek 71b11fdbdb xbps-src: add make_check_pre
$make_check_pre can be used for wrapper commands like xvfb-run or
dbus-run-session which are common ways to make tests work. This way many
templates can avoid defining their own do_check function.
2022-05-04 10:46:53 +02:00
Michal Vasilek 769ea65a5e xbps-src: add strict mode 2022-04-07 20:27:41 +02:00
tibequadorian 9c7a51e6c9 common/environment/setup/misc.sh: add ${VIDEOLAN_SITE} 2022-03-20 08:02:18 +01:00
Joel Beckmeyer f694021f76 common/environment/setup: properly handle symlinks in vsv 2021-10-29 15:40:25 +02:00
Andrew J. Hesford 9b61ec59f9 python3: update to 3.10.0. 2021-10-09 08:00:19 -04:00
Leah Neukirchen 6089ec47be setup/git.sh: fix finding gitdir 2021-09-28 22:03:26 +02:00
Đoàn Trần Công Danh 4b239f5560 setup/git.sh: parser GIT_COMMITTER_DATE with plumbing command
To avoid:
- Commit's signature
- Future change in git log format
- Revision Walk

Close #33165
2021-09-28 22:16:04 +07:00
Đoàn Trần Công Danh b44a69c772 vcompletion: return failure on wrong arguments 2021-08-08 11:24:20 +07:00
Đoàn Trần Công Danh d8e2056a8f xbps-src: retire XBPS_PKGDESTDIR
Historically, PKGDESTDIR was only set during pkg_install, and
XBPS_PKGDESTDIR was set to indicate that we're in subpkg's
pkg_install.

However, from 0b95cb8f5d, (Merge xbps-src code to make it usable in
a standalone mode., 2014-03-22), PKGDESTDIR is always set,
regardless of states.

Let's drop all usages of XBPS_PKGDESTDIR.

While we're at it, error out of vmove is used outside of subpkg.
2021-07-11 16:21:29 +07:00
Enno Boland d2622f0b91
common/environment: update GNOME_SITE to new url 2021-04-09 18:52:36 +02:00
Piotr Wójcik 4ac333c3b1 xbps-src: allow to run without git
This makes possible to binary-bootstrap and build packages
with only base-system using tarball of void-packages.
2021-02-23 18:34:37 +01:00
Đoàn Trần Công Danh f9da7ff3bb vsed: stop collapsing whitespace
MCVE:
	printf '%s  %s\n' a b >afile
	vsed -i -e '/a  b/d' afile

Expect:
- afile should be empty
Actual:
- afile is not empty
2021-02-21 08:33:06 +07:00
Andrew J. Hesford e590822d93 python3: update to 3.9.0. 2020-10-10 10:21:09 -04:00
Đoàn Trần Công Danh b1a6baed7f vopt_bool: use option as default property
Keep it in-line with vopt_with and vopt_enable.
2020-09-18 16:15:19 +02:00
Érico Rolim d5ca039278 common/environment/setup/install.sh: add vcompletion.
Install function for installing shell completions in the appropriate
place according to the shell used.
2020-07-28 04:24:40 +00:00
Piotr Wójcik 3318e17163 tree-wide: make python path variables relative 2020-07-01 20:24:23 +02:00
John 6ce531b231 common: unser PKG_CONFIG before sourcing templates, set PKG_CONFIG also for native 2020-05-29 14:30:06 +02:00
Đoàn Trần Công Danh 2af30cdd78 setup: compute gitrev from outside of chroot
Together with previous commit, `xbps-src` is able to support
git-worktree and shared repository by now.
2020-05-23 06:59:24 +00:00
Đoàn Trần Công Danh 2cd2b99e41 setup: export SOURCE_DATE_EPOCH from outside of chroot
git-worktree(1), and Git shared repository can use a plain text file
named `.git` at the root of working tree, containing `gitdir: <path>` to
point to the real directory that has repository.
See: gitrepository-layout(5).

But, that directory is usually inaccessible inside chroot.

In order to support git-worktree(1) and Git shared repository, compute
SOURCE_DATE_EPOCH from outside of chroot, and the chroot will carry it
over to inside chroot.

I've only tested again xbps-uunshare(1).
2020-05-23 06:59:24 +00:00
Đoàn Trần Công Danh fd61886616 setup/git.sh: prefer git plumbing command
git-ls-files(1) is plumbing command, its output will never change
regardless of configuration, version.

git-status(1) output will be changed depends on configuration.
At least, 986d4dbc7d (common/environment/setup/git.sh: ensure untracked
files are checked., 2017-11-24) was added to address a different output
on `status.showUntrackedFiles`.

By doing this, also reduce a pipe, and a fork-exec.

Technically, git-log(1) is also a porcelain, but I _think_ `%ct` is
stable enough to stay there. If the day has come, that `git-log(1)` can
be replaced with:

    git cat-file commit HEAD |
    sed -ne '/^committer/{s/.* \([0-9]*\) [-+][0-9][0-9][0-9][0-9]$/\1/p;q}'
2020-05-23 06:59:24 +00:00
Đoàn Trần Công Danh 20f9bedefb xbps-src: use $XBPS_GIT_CMD for git 2020-05-23 06:59:24 +00:00
mobinmob 17b5ae8dba common/environment/setup/misc.sh: use https where possible,
remove XORG_HOME variable.
2020-05-18 08:01:34 -07:00
Andrew J. Hesford 596250e4ea xbps-src: remove default python_version
Closes: #21209 [via git-merge-pr]
2020-04-21 18:45:25 -04:00