You are not logged in.

#1 2022-01-12 02:47:33

averon
Member
Registered: 2017-04-27
Posts: 4

Request: PKGBUILD review (python-marshmallow-oneofschema)

Hi there, first time AUR contributor here.

I've locally built and installed dbt-core and would like to contribute what I've packaged. marshmallow-oneofschema is the first program I'd like to contribute. Here's the PKGBUILD:

# Maintainer: Robert Baldwin <robert.baldwin@protonmail.com>

_name=marshmallow-oneofschema
pkgname=python-$_name
pkgver=3.0.1
pkgrel=1
pkgdesc='Schema (de)multiplexing for marshmallow'
arch=('any')
url='https://github.com/marshmallow-code/marshmallow-oneofschema'
license=('MIT')
depends=('python' 'python-marshmallow')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/$_name-$pkgver.tar.gz")
sha256sums=('62cd2099b29188c92493c2940ee79d1bf2f2619a71721664e5a98ec2faa58237')

build() {
  cd "$_name-$pkgver"
  python setup.py build
}

package() {
  cd "$_name-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

Ideally, I'd like to achieve a reproducible build. I'm encountering an error when running repro on the resulting .pkg.tar.zt.

❯ repro -f python-marshmallow-oneofschema-3.0.1-1-any.pkg.tar.zst
[sudo] password for averon
repro 20211221
==> Reusing existing container
==> Updating container
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community                                                                       6.0 MiB  4.67 MiB/s 00:01 [###############################################################] 100%
:: Starting full system upgrade...
 there is nothing to do
  -> Using devtools version: devtools-20210202-3-any
  -> Preparing packages
Hit cache for cache/acl-2.3.1-1-x86_64.pkg.tar.zst
Hit cache for cache/adobe-source-code-pro-fonts-2.038ro+1.058it+1.018var-1-any.pkg.tar.zst
...
  -> Finished preparing packages
==> Starting build...
  -> Create snapshot for python-marshmallow-oneofschema_9655...
  -> Found archlinux-keyring-20211028-1-any in keyring cache
==> Installing packages
==> Creating install root at /mnt
==> Installing packages to /mnt
warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
loading packages...
resolving dependencies...
warning: cannot resolve "libxft", a dependency of "pango"
warning: cannot resolve "pango", a dependency of "librsvg"
...
:: The following packages cannot be upgraded due to unresolvable dependencies:
      adwaita-icon-theme  dbeaver  dmenu  electron11  ffmpeg  firefox  fontforge  gtk-update-icon-cache  gtk2  gtk3  librsvg  pango  sway  webkit2gtk  xorg-xclock  xterm
      zenity
:: Do you want to skip the above packages for this upgrade? [y/N]
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'libxft' required by pango
:: unable to satisfy dependency 'pango' required by librsvg
...
==> ERROR: Failed to install packages to new root
loading packages...
looking for conflicting packages...

Packages (1) devtools-20210202-3

Total Installed Size:  0.16 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                                                             [###############################################################] 100%
(1/1) checking package integrity                                                                           [###############################################################] 100%
(1/1) loading package files                                                                                [###############################################################] 100%
(1/1) checking for file conflicts                                                                          [###############################################################] 100%
(1/1) checking available disk space                                                                        [###############################################################] 100%
:: Processing package changes...
(1/1) installing devtools                                                                                  [###############################################################] 100%
Optional dependencies for devtools
    btrfs-progs: btrfs support
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
'/usr/share/devtools/makepkg-x86_64.conf' -> '/mnt/etc/makepkg.conf'
Directory /var/lib/repro/python-marshmallow-oneofschema_9655 doesn't look like it has an OS tree. Refusing.
  -> Delete snapshot for python-marshmallow-oneofschema_9655...

I appreciate your feedback. Thanks! =)

Offline

#2 2022-01-15 17:03:35

averon
Member
Registered: 2017-04-27
Posts: 4

Re: Request: PKGBUILD review (python-marshmallow-oneofschema)

Offline

Board footer

Powered by FluxBB