You are not logged in.

#251 2019-01-10 21:53:44

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 115
Website

Re: aurutils - helper tools for the aur

Alad, I updated aurutils to the latest version  (2.0.0-1) today, however, I am still unable to get it to work with my personal repo. I got that

aursync -u

is now

aur sync -u

however. when I run the later command I get

==> ERROR: sync: /var/cache/pacman/aur-repo/aur-repo.db: permission denied

and if I add a sudo in front

sudo aur sync -u

I get

==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
Running makepkg --clean --sync --rmdeps
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.

when there are actually packages in my repo to update.

How might this situation be rectified so that I am able to update my personal repo once again?


Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux Forever!

Offline

#252 2019-01-10 22:03:41

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

stat /var/cache/pacman/aur-repo/aur-repo.db.tar
id -u

"uid" should match for both commands and have rw access. e.g.

Access: (0644/-rw-r--r--)  Uid: ( 1000/    user)   Gid: ( 1000/    user)

Last edited by Alad (2019-01-10 22:06:04)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#253 2019-01-10 22:33:47

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 115
Website

Re: aurutils - helper tools for the aur

Alad wrote:
stat /var/cache/pacman/aur-repo/aur-repo.db.tar
id -u

"uid" should match for both commands and have rw access. e.g.

Access: (0644/-rw-r--r--)  Uid: ( 1000/    user)   Gid: ( 1000/    user)

Here's the output of those commands:


[tydynrain@The-Nexus-Tribe ~]$ stat /var/cache/pacman/aur-repo/aur-repo.db.tar
  File: /var/cache/pacman/aur-repo/aur-repo.db.tar
  Size: 207872    	Blocks: 408        IO Block: 4096   regular file
Device: 801h/2049d	Inode: 8916718     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-01-10 11:36:56.365311597 -1000
Modify: 2019-01-10 11:36:40.072014583 -1000
Change: 2019-01-10 11:36:40.108681162 -1000
 Birth: -

[tydynrain@The-Nexus-Tribe ~]$ id -u
1000

The permissions for the repo and the files within are for my user (tydynrain), which is curious since the first command says they are root under Access.


Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux Forever!

Offline

#254 2019-01-10 23:18:57

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

amerlyq wrote:

So, I correctly understood process before, when I asked "Is there a way around to prevent database sync (until explicitly requested) when using chroot?".
I.e. I meant how to "not sync B at all" or more appropriately "how to make B a copy of A" so host and container packages matched each other and there was no need to do full system upgrade each time?
Actually:
1) can it be done with current implementation of aurutils by configuring or extending with scripts?
2) if not, is it possible to implent or extend aurutils itself w/o too much rewrite?
3) is it possible at all (for example due to limitations of arch-nspawn)
4) is it reasonable? (I think "yes, yes, yes", but gladly accept facts if I'm mistaken in that insistence)

https://github.com/AladW/aurutils/pull/498


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#255 2019-01-10 23:20:00

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

The permissions for the repo and the files within are for my user (tydynrain), which is curious since the first command says they are root under Access.

It could be that the symbolic link is as your user but the file it points to is not. (Maybe you ran repo-add as root at some point.) Anyway it should suffice to chown the db.tar back to your user.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#256 2019-01-10 23:32:40

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 115
Website

Re: aurutils - helper tools for the aur

Alad wrote:

The permissions for the repo and the files within are for my user (tydynrain), which is curious since the first command says they are root under Access.

It could be that the symbolic link is as your user but the file it points to is not. (Maybe you ran repo-add as root at some point.) Anyway it should suffice to chown the db.tar back to your user.

OK, I think I understand what might be going on. Yes, when I created and recreate the repo, I run it as root, such as when I add a new package, I remove and add all new packages as root, however the repo directory and the individual packages within have the permissions of my user. I'll recreate the repo as my user as opposed to root. I'm just curious why  the way I was doing it worked fine with the previous version of aurutils.


Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux Forever!

Offline

#257 2019-01-11 04:53:29

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

I guess the new version is more strict on permissions. As I don't have mixed permissions in my repo I haven't noticed, but feel free to git bisect between 1.5.3 and 2.0.0 and share the bad commit.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#258 2019-01-11 05:49:20

tydynrain
Member
From: Lower Puna, Big Island Hawai'i
Registered: 2017-10-26
Posts: 115
Website

Re: aurutils - helper tools for the aur

This is strange. So I recreated the repo as my user, and when I run

aur sync -u

and there are updated packages to build, before makepkg begins to build them the files aur-repo-db.tar, aur-repo.db (symlink), aur-repo.files.tar, and aur-repo.files (symlink) all have the permissions of my user, but when makepkg begins to build a package, they all change to the root permissions, and then when makepkg is done building, they usually go back to the permissions of my user, but sometimes, and this is where it's getting frustrating, sometimes the permissions don't change back, and they remain as root, which causes me to have to remove them and recreate them with my user permissions again.

I haven't tried to bisect a package yet, so I'm not exactly sure how to do that, though I'm sure I can figure it out.

Last edited by tydynrain (2019-01-11 05:50:10)


Registered Linux User: #623501 | Arch Linux Principles: Simplicity - Modernity - Pragmatism - User Centrality - Versatility => KISS
Arch Linux, the most exciting thing since Linus created Linux and married it with GNU/GPL.
Arch Linux for Life, Arch Linux Forever!

Offline

#259 2019-01-11 10:16:39

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: aurutils - helper tools for the aur

Does that still happen if you remove the symlinks and just let pacman copy the database?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#260 2019-01-11 14:08:10

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

Yes, I can imagine if you have symlinks in /var/lib/pacman/sync to your .db (or vice-versa) that the resulting files may be owned by root. As to git bisect, see the wiki:

https://wiki.archlinux.org/index.php/Bi … s_with_Git

Last edited by Alad (2019-01-11 14:08:44)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#261 2019-01-18 13:25:55

lightdot
Member
Registered: 2014-04-22
Posts: 22

Re: aurutils - helper tools for the aur

Previously I used aurgrep to search for packages that were in my custom repository but got removed from AUR:

grep -Fxvf <(aurgrep .+) <(pacman -Slq custom)

Any suggestions for an alternate approach?

Offline

#262 2019-01-18 13:47:44

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: aurutils - helper tools for the aur

You should be able to do something with "aur vercmp" or "aur pkglist".

Last edited by progandy (2019-01-18 13:55:30)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#263 2019-01-18 14:24:48

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: aurutils - helper tools for the aur

It's been *renamed* to `aur pkglist`.

$ man aur
[...]
       aur-pkglist(1)
           Print the AUR package list.
[...]
$ man aur-pkglist
[...]
DESCRIPTION
       aur-pkglist prints the list of pkgnames that are available in the AUR to standard output. Optionally a pcrepattern(3) may be specified.
[...]

Last edited by eschwartz (2019-01-18 14:28:18)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#264 2019-01-18 14:31:20

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: aurutils - helper tools for the aur

BTW alad, the manpage is a lie -- it says data is stored in $XDG_CACHE_HOME/aur-pkglist but it is stored in $XDG_CACHE_HOME/aurutils/pkglist


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#265 2019-01-18 15:41:44

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

Thanks: https://github.com/AladW/aurutils/commi … 1dcc92d5be

Last edited by Alad (2019-01-18 15:41:55)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#266 2019-01-18 22:00:41

candybar
Member
Registered: 2019-01-18
Posts: 2

Re: aurutils - helper tools for the aur

Hi. I'm having a problem with aura sync -c. The first package I sync'd worked fine, but the next package I received an error:

==> ERROR: Working directory '/var/lib/aurbuild/x86_64/root' already exists

I can remove that directory and the next time the package will build/sync. The OS is Manjaro so I thought aurutils should work (maybe not)?. I found a similar issue on the github and the problem seemed related to btrfs but my file system is ext4.

Thanks for any help.

Offline

#267 2019-01-18 22:31:44

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

Check if /var/lib/aurbuild/x86_64/root contains a file named .arch-chroot. Presumably, manjaro's version of devtools does not create that file.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#268 2019-01-18 22:34:17

candybar
Member
Registered: 2019-01-18
Posts: 2

Re: aurutils - helper tools for the aur

Alad wrote:

Check if /var/lib/aurbuild/x86_64/root contains a file named .arch-chroot. Presumably, manjaro's version of devtools does not create that file.

Indeed there is instead a .manjaro-chroot

Offline

#269 2019-01-19 00:37:55

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 412
Website

Re: aurutils - helper tools for the aur

I've been running into errors when choosing no to prompt asking if I want to remove installed dependencies. Is there something I'm doing wrong?

==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "linux-clear-headers"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: linux-clear 4.20.3-1 (Fri 18 Jan 2019 07:23:34 PM EST)
==> Cleaning up...
==> Removing installed dependencies...
checking dependencies...

Package (1)  Old Version  Net Change

xmlto        0.0.28-3      -0.08 MiB

Total Removed Size:  0.08 MiB

:: Do you want to remove these packages? [Y/n] n
==> WARNING: Failed to remove installed dependencies.

==> ERROR: An unknown error has occurred. Exiting...
/usr/lib/aurutils/aur-build: line 257: 19058 User defined signal 1   makepkg --config "$tmp"/makepkg.conf "${makepkg_args[@]}"

"the wind-blown way, wanna win? don't play"

Offline

#270 2019-01-19 04:57:41

mountaineerbr
Banned
Registered: 2018-12-08
Posts: 48

Re: aurutils - helper tools for the aur

I find that removing make depends automatically is very useful, unless you are trying to change source code and rebuild it... I think this option changed from 1.5 version default... But I wonder, can I pass a flag to aur sync or aur build not to remove make deps? I used to remove make deps manually but it is nice to know how to control your tools, anyways... Thanks

Offline

#271 2019-01-19 14:45:00

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

But I wonder, can I pass a flag to aur sync or aur build not to remove make deps?

/usr/lib/aurutils/aur-build: line 257: 19058 User defined signal 1   makepkg --config "$tmp"/makepkg.conf "${makepkg_args[@]}"

USR1 on "n" appears to be an issue with makepkg. Until it is solved you can use --keep or --build-command, as described in the aur-sync/aur-build man page.

Last edited by Alad (2019-01-19 14:45:55)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#272 2019-01-19 23:46:36

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: aurutils - helper tools for the aur

What's the new equivalent for 'aur vercmp -d <repo_name>'? Can't find it in the man page sad


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#273 2019-01-20 10:20:37

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

aur repo -d <repo_name> -u

aurcheck was replaced by aur-repo, a general tool to handle local repositories.

If you only have 1 local repo, the -d is optional.

Last edited by Alad (2019-01-20 10:59:39)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#274 2019-01-20 20:09:29

NuSkool
Member
Registered: 2015-03-23
Posts: 141

Re: aurutils - helper tools for the aur

I've a script that uses many of the aurutils scripts from v1.5. With v2.0 there is renaming of scripts along with many enhancements.

For example I used aursift, which is now aur-rfilter. https://github.com/AladW/aurutils/issues/382

So far, I've only briefly looked into updating my script for aurutils 2.0. Is there a final comprehensive list of renamed scripts available?
Would this be the best place to start? https://github.com/AladW/aurutils/releases

I'm initially getting the feeling, a rewrite from scratch may be more in order due to the changes in v2.0.

Offline

#275 2019-01-20 21:49:38

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: aurutils - helper tools for the aur

The list in #382 should be mostly accurate, as well as the changelog from 2.0.0rc onwards. For aur-repo, see https://github.com/AladW/aurutils/pull/452

I'm initially getting the feeling, a rewrite from scratch may be more in order due to the changes in v2.0.

I guess this means I at least got semantic versioning right. wink


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB