Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#66541 - add option to "pick" files from one split package to another
Attached to Project:
Pacman
Opened by nathan (ndowens) - Tuesday, 05 May 2020, 01:42 GMT
Last edited by Allan McRae (Allan) - Wednesday, 22 February 2023, 06:47 GMT
Opened by nathan (ndowens) - Tuesday, 05 May 2020, 01:42 GMT
Last edited by Allan McRae (Allan) - Wednesday, 22 February 2023, 06:47 GMT
|
DetailsWasn't sure which category to add this, if this belongs elsewhere please move.
I am wondering if the following function could become part of PKGBUILD/makepkg natively. I found it in another PKGBUILD and it is nice to use to allow split pkgs to move dirs/files easily into other package-*(){} example say we want to move usr/share/docs into package_pkg-doc() package() { .... cd "$pkgdir" pick docs usr/share/docs } package_pkg-doc() { ... mv docs/* "$pkgdir" } pick() { local p="$1" f d; shift for f; do d="$srcdir/$p/${f#$pkgdir/}" mkdir -p "$(dirname "$d")" mv "$f" "$d" rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")" done } |
This task depends upon
Closed by Allan McRae (Allan)
Wednesday, 22 February 2023, 06:47 GMT
Reason for closing: None
Additional comments about closing: Tracked at https://gitlab.archlinux.org/pacman/pacm an/-/issues/16
Wednesday, 22 February 2023, 06:47 GMT
Reason for closing: None
Additional comments about closing: Tracked at https://gitlab.archlinux.org/pacman/pacm an/-/issues/16
build() {
...
}
package() {
make DESTDIR=$pkgdir install
}
package_foo() {
filelist=(usr/share/docs/*)
}
package_bar() {
filelist=(usr/bin/*)
}
Followed by a warning for any files left over in the temporary area from the original package() function.