You are not logged in.
So I'm trying to create a very simple pkgbuild for this package that I had originally installed from source: https://github.com/zbm-dev/zfsbootmenu
Here's my PKGBUILD: https://pastebin.com/EM2ZQ1qh
I am installing with
makepkg -si --skipinteg
currently but it shouldn't affect it.
Originally, I got this error:
error: failed to commit transaction (conflicting files)
zfsbootmenu: /bin exists in filesystem (owned by filesystem)
zfsbootmenu: /bin/generate-zbm exists in filesystem
zfsbootmenu: /etc/zfsbootmenu/config.yaml exists in filesystem
zfsbootmenu: /etc/zfsbootmenu/dracut.conf.d/zfsbootmenu.conf exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/module-setup.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/tmux.conf exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfs-chroot.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-countdown.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-exec.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-help.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-input.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-lib.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-parse-commandline.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-preview.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu.sh exists in filesystem
zfsbootmenu: /usr/lib/dracut/modules.d/90zfsbootmenu/zlogtail.sh exists in filesystem
zfsbootmenu: /usr/share/examples/zfsbootmenu/keycache.sh exists in filesystem
zfsbootmenu: /usr/share/examples/zfsbootmenu/xhci-teardown.sh exists in filesystem
Errors occurred, no packages were upgraded.
and I figured this was because I had already installed this once from source, so the files were already there. I deleted them, but I still get
error: failed to commit transaction (conflicting files)
zfsbootmenu: /bin exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.
I have upgraded the filesystem package today if it matters.
Thanks
Last edited by Gekume123 (2021-02-12 04:51:32)
Offline
Files need to be installed to /usr/bin, not to /bin. See if there's an option in the makefile for BINDIR, or if not, just mv it.
Offline
make DESTDIR="$pkgdir/" PREFIX=usr install
Edit:
pkgname=(zfsbootmenu)
pkgver=1.8.1
pkgrel=1
pkgdesc="ZFS Bootloader for root-on-ZFS systems with support for snapshots and native full disk encryption"
arch=(any)
url="https://github.com/zbm-dev/zfsbootmenu"
license=('MIT')
depends=(
'fzf'
'kexec-tools'
'dracut'
'zfs-linux'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/zbm-dev/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('b86e34448ccb43e4c4f2e6cad51886bb97252475318b79e27c963dc42f64e787')
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" PREFIX=usr install
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
Last edited by loqs (2021-02-12 03:37:31)
Offline
@loqs, thanks so much for the help, worked great
And thx for putting the hash too
EDIT: for some reason I can't find generate-zbm in bin or usr bin?
Last edited by Gekume123 (2021-02-12 04:59:03)
Offline
EDIT: for some reason I can't find generate-zbm in bin or usr bin?
Check the package content with pacman -Ql and see if it got perhaps installed somewhere else.
{,META,RE}PKGBUILDS │ pacman-hacks (includes makemetapkg and remakepkg) │ dotfileslocaldir
Offline
Gekume123 wrote:EDIT: for some reason I can't find generate-zbm in bin or usr bin?
Check the package content with pacman -Ql and see if it got perhaps installed somewhere else.
❯ pacman -Ql zfsbootmenu
zfsbootmenu /etc/
zfsbootmenu /etc/zfsbootmenu/
zfsbootmenu /etc/zfsbootmenu/config.yaml
zfsbootmenu /etc/zfsbootmenu/dracut.conf.d/
zfsbootmenu /etc/zfsbootmenu/dracut.conf.d/zfsbootmenu.conf
zfsbootmenu /usr/
zfsbootmenu /usr/lib/
zfsbootmenu /usr/lib/dracut/
zfsbootmenu /usr/lib/dracut/modules.d/
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/module-setup.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/tmux.conf
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfs-chroot.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-countdown.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-exec.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-help.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-input.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-lib.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-parse-commandline.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu-preview.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zfsbootmenu.sh
zfsbootmenu /usr/lib/dracut/modules.d/90zfsbootmenu/zlogtail.sh
zfsbootmenu /usr/share/
zfsbootmenu /usr/share/examples/
zfsbootmenu /usr/share/examples/zfsbootmenu/
zfsbootmenu /usr/share/examples/zfsbootmenu/keycache.sh
zfsbootmenu /usr/share/examples/zfsbootmenu/xhci-teardown.sh
zfsbootmenu /usr/share/licenses/
zfsbootmenu /usr/share/licenses/zfsbootmenu/
zfsbootmenu /usr/share/licenses/zfsbootmenu/LICENSE
zfsbootmenu /usr/share/man/
zfsbootmenu /usr/share/man/man5/
zfsbootmenu /usr/share/man/man5/generate-zbm.5.gz
zfsbootmenu /usr/share/man/man7/
zfsbootmenu /usr/share/man/man7/zfsbootmenu.7.gz
zfsbootmenu /usr/share/man/man8/
zfsbootmenu /usr/share/man/man8/generate-zbm.8.gz
Looks like generate-zbm wasn't added.
I see this when installing
install -m 0755 -t /vault/files/dev/zfsbootmenu/pkg/zfsbootmenuusr/bin/ -D bin/generate-zbm
but I'm not sure why it's not there.
Thx
Offline
install -m 0755 -t /vault/files/dev/zfsbootmenu/pkg/zfsbootmenuusr/bin/ -D bin/generate-zbm
zfsbootmenuusr is the problem .
Check the Makefile at https://github.com/zbm-dev/zfsbootmenu/ … r/Makefile , line 10 .
It misses a / between $(DESTDIR) and $(PREFIX) .
Using sed or patch to correct that line (and reporting it upstream) seems simplest method to workaround it.
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
Check the Makefile at https://github.com/zbm-dev/zfsbootmenu/ … r/Makefile , line 10 .
It misses a / between $(DESTDIR) and $(PREFIX) .
Thanks so much, fixed it. It's just my own PKGBUILD for myself btw
thanks everyone who responded
Last edited by Gekume123 (2021-02-12 20:06:22)
Offline
make DESTDIR="$pkgdir/" PREFIX=usr install
install -m 0755 -t /vault/files/dev/zfsbootmenu/pkg/zfsbootmenuusr/bin/ -D bin/generate-zbm
zfsbootmenuusr is the problem .
Check the Makefile at https://github.com/zbm-dev/zfsbootmenu/ … r/Makefile , line 10 .
It misses a / between $(DESTDIR) and $(PREFIX) .Using sed or patch to correct that line (and reporting it upstream) seems simplest method to workaround it.
Ooooooor, do not set PREFIX to "usr", set it to "/usr" as intended.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Ooooooor, do not set PREFIX to "usr", set it to "/usr" as intended.
It's obvious once you point it out. Can I persuade you to look at https://bbs.archlinux.org/viewtopic.php?id=263533 please.
Offline