Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Packaging for Archlinux User Repository

See original GitHub issue

As a follow-up to #135, I created this new issue in order to discuss a few things concerning packaging.

While building upon the efforts of @Lucki, a few questions came up for me:

  1. What exactly is this admin package thing and how is it going to be solved? It was brought up in #135 too.

  2. Because all the python dependencies are installed with pacman (archlinux system package manager), they are owned by root:root. This forces me to run the database migration (at least the first one after initial installation) as the privileged root user. Otherwise the migration fails with the message PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.8/site-packages/queue'. The latter folder did not exist yet at the time of the initial migration attempt with the papermerge user. Is there anything that can be done to avoid running the database migration as root? Maybe @Lucki is more fond of Archlinux best practices than I am and can give a advise?

  3. I added a post-upgrade hook to the package that is supposed to automatically run the database migration upon upgrade of the papermerge package. With the upgrades from 1.4.3 to 1.4.4 and to 1.4.5 I noticed the message:

Running migrations:
  No migrations to apply.
  Your models have changes that are not yet reflected in a migration, and so won't be applied.
  Run ' makemigrations' to make new migrations, and then re-run ' migrate' to apply them.

Do we have to intervene here or can this be ignored? I am not quite sure what the model changes mean and if I need to run the suggested commands.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:25 (20 by maintainers)

github_iconTop GitHub Comments

Luckicommented, Oct 2, 2020

you know more about python

Sry, I don’t know anything meaningful about python, I hate languages that think it’s important how you place non-seeable characters. My guess is that’s that a path which isn’t set in the configuration file. I don’t know django either, maybe you can set the path with --migration-path=/path/sdsad or an environment variable DJANGO_MIGRATION_PATH=/path/sdsad. This is more a question for @ciur

amo13commented, Nov 11, 2020


Closing this for now since I think I succeeded in packaging and you answered all my questions. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arch User Repository - ArchWiki
The Arch User Repository (AUR) is a community-driven repository for Arch users. It contains package descriptions (PKGBUILDs) that allow you ...
Read more >
AUR (en) - Home - Arch Linux
Git over SSH is now used to submit packages to the AUR. See the Submitting packages section of the Arch User Repository ArchWiki...
Read more >
AUR (en) - Packages - Arch Linux
Name Version Votes Popularity ? Maintainer octopi 0.14.0‑2 1134 45.69 matmoul octopi‑dev 0.14.0‑2 783 42.74 matmoul paru 1.11.1‑1 684 38.91 Morganamilo
Read more >
Creating packages - ArchWiki - Arch Linux
This article aims to assist users creating their own packages using the Arch Linux "ports-like" build system, also for submission in AUR.
Read more >
AUR helpers - ArchWiki
AUR helpers automate usage of the Arch User Repository. ... AUR packages are redistributed in form of PKGBUILDs and need an AUR helper...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found