You are not logged in.

#1 2010-11-19 17:34:35

keenerd
Trusted User (TU)
Registered: 2007-02-22
Posts: 647
Website

Aurphan: Adopt Today!

Did you know that of the 26 thousand packages we have in the AUR, over 44 hundred don't even have someone to take care of them?

Many are out of date or don't even compile.  The rest will soon also succumb to bit rot.

Chances are, you depend on a few of these programs in your day to day life.  Show your apps that you do care.

Download Aurphan here:
http://aur.archlinux.org/packages.php?ID=43726

In a few short seconds, a bash script will compare your installed packages to a list of packages in need, with links where you can learn more about them.

Together, we can give all orphaned software a home.

Offline

#2 2010-11-19 17:56:56

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Aurphan: Adopt Today!

I run it, but it does nothing. What should that do?

Offline

#3 2010-11-19 18:02:59

keenerd
Trusted User (TU)
Registered: 2007-02-22
Posts: 647
Website

Re: Aurphan: Adopt Today!

It prints the intersection between your installed apps and the orphaned apps.  So if you don't have any AUR packages installed or if all your installed packages have maintainers, it won't display anything.

I'll add a "No orphans found" check to it.

Offline

#4 2010-11-19 19:25:56

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,132
Website

Re: Aurphan: Adopt Today!

Great idea keenerd! Installing (and hoping I get a hit)...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#5 2010-11-19 19:40:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Aurphan: Adopt Today!

It comes in handy for things like http://aur.archlinux.org/packages.php?ID=35252 that got moved to AUR from extra.

Offline

#6 2010-11-20 09:18:34

AugustePop
Member
Registered: 2010-04-27
Posts: 95

Re: Aurphan: Adopt Today!

quite thoughtful tool.

a small suggestion here. if the user has less aur packages installed than the number of pages listing orphaned packages, isn't it wiser and more economic to test each package's maintaining status than comparing them to the whole orphaned package pool? for this, the api described here is very handy. http://aur.archlinux.org/rpc.php

Offline

#7 2010-11-20 11:47:12

keenerd
Trusted User (TU)
Registered: 2007-02-22
Posts: 647
Website

Re: Aurphan: Adopt Today!

AugustePop:  Falconindy and I were thinking the same thing.  He wrote some code for just that.  It will now use the RPC interface if you've got less than 50 foreign packages.

Offline

#8 2010-11-20 23:57:38

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 785
Website

Re: Aurphan: Adopt Today!

Nice! Executing it now... Two hits. I think one is a duplicate package but I'll adopt the other one. I have lost a couple of packages of late. smile

EDIT: Ahhh, not a duplicate. Recently moved from extra.

Last edited by mikesd (2010-11-21 00:01:28)

Offline

#9 2010-11-21 05:07:31

keenerd
Trusted User (TU)
Registered: 2007-02-22
Posts: 647
Website

Re: Aurphan: Adopt Today!

Update!  New version with multithreaded goodness.  Set to eight threads by default.

Offline

#10 2010-11-21 05:15:14

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,132
Website

Re: Aurphan: Adopt Today!

Thanks: that is considerably quicker...

(Alas, my return is "No orphans found")


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#11 2010-11-21 16:08:29

keenerd
Trusted User (TU)
Registered: 2007-02-22
Posts: 647
Website

Re: Aurphan: Adopt Today!

So far I've adopted discus, lout, slurm, synaesthesia and weather.  Maybe I'll pick up one or two more later today.

Offline

#12 2010-11-21 17:15:11

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 1,958
Website

Re: Aurphan: Adopt Today!

great idea keenerd! luckily i have only 1 hit, for a program i'm not qualified enough for smile
so there, i did my adopting duty smile


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#13 2010-11-25 17:22:25

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Aurphan: Adopt Today!

Wouldn't it be good to somehow gather the list of all orphaned packages in AUR so someone can take a maintenance for that package if they want? Or is there such a feature already out there?

Offline

#14 2010-11-25 17:26:39

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,132
Website

Re: Aurphan: Adopt Today!

You can sort by Orphans (under Advanced Search the button next to 'Go' smile )

http://aur.archlinux.org/packages.php?O … SO=a&PP=25

# edit too slow karol smile


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#15 2010-11-25 17:27:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Aurphan: Adopt Today!

archman-cro wrote:

Wouldn't it be good to somehow gather the list of all orphaned packages in AUR so someone can take a maintenance for that package if they want? Or is there such a feature already out there?

You mean like this http://aur.archlinux.org/packages.php?O … SO=d&PP=25 ?

Edit: I refreshed the page before posting and you weren't here, jasonwryan ;P Sorry anyway. Remove this post if you want.

Last edited by karol (2010-11-25 17:30:42)

Offline

#16 2010-11-26 09:48:35

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Aurphan: Adopt Today!

Nice, thanks, guys!

Offline

#17 2010-11-26 15:58:25

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,950
Website

Re: Aurphan: Adopt Today!

This is an awesome idea and really inline with the spirit of Arch. Would be col to have this for regular packages, too. But I fear we are missing a sane interface here.

Offline

#18 2010-11-26 16:19:48

keenerd
Trusted User (TU)
Registered: 2007-02-22
Posts: 647
Website

Re: Aurphan: Adopt Today!

We normal folk can't adopt regular packages, but I could probably add checking them.  Sadly the maintainer info is not in the local sync, so it'll be a lot of http calls.  ("Unknown Packager" does not mean anything.)  This will be pretty slow.  My "lightweight" 2.6GB install has 206 AUR packages, which takes 38 seconds to check.  I've got an additional 730 official packages, which will add an estimated 135 seconds.  Maybe as an optional flag.

Last edited by keenerd (2010-11-26 19:22:44)

Offline

#19 2010-11-26 19:49:53

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,092
Website

Re: Aurphan: Adopt Today!

Ugly, but it seems to work.

#!/bin/bash

orphanURL='http://www.archlinux.org/packages/?sort=&arch=&repo=&q=&maintainer=orphan&last_update=&flagged=&limit=all'

comm -12 <(pacman -Qq) <(curl -s "$orphanURL" | xmllint --html --xpath '//*[@id="pkglist-results-form"]//tbody/tr/td[3]/a' - 2>/dev/null | sed 's/<a[^>]\+>//g;s/<\/a>/\n/g' | sort -u)

Shows 19 orphaned packages on my system, out of 430 (discludes manually installed packages). I can has adoption papers?

edit: if you're feeling dangerous and/or don't want to install libxml2 for xmllint, here's a pure sed version you can drop in, in place:

comm -12 <(pacman -Qq) <(curl -s "$orphanURL" | sed -n '/tbody/,/tbody/{s/.*title=[^>]\+>\([^<]\+\)<.*/\1/p}' | sort -u)

Last edited by falconindy (2010-11-26 20:25:20)

Offline

#20 2010-11-26 21:43:28

keenerd
Trusted User (TU)
Registered: 2007-02-22
Posts: 647
Website

Re: Aurphan: Adopt Today!

Feature added.  Use with "aurphan -p".  The p can be for pacman/package/Pierre, your choice.

Offline

#21 2010-11-29 18:19:17

keenerd
Trusted User (TU)
Registered: 2007-02-22
Posts: 647
Website

Re: Aurphan: Adopt Today!

Update.  Prettier -p output.  URLs and colors.

Offline

#22 2010-12-02 13:54:26

Maxa
Member
Registered: 2008-11-30
Posts: 31

Re: Aurphan: Adopt Today!

I was hoping something like this existed just a few days ago smile

Something about official repos, '-p', is not quite there yet... e.g sdparm shows as red when [core] is out-of-date but [testing] is not. I have [testing] version installed.

Offline

#23 2010-12-02 18:30:46

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,092
Website

Re: Aurphan: Adopt Today!

Maxa wrote:

Something about official repos, '-p', is not quite there yet... e.g sdparm shows as red when [core] is out-of-date but [testing] is not. I have [testing] version installed.

This isn't the goal of the tool. Notice on sdparm's package page, it's listed as having no maintainer.

Finding out of date packages is unrelated and can be solved by a myriad of other programs.

Offline

#24 2010-12-02 19:01:00

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,950
Website

Re: Aurphan: Adopt Today!

falconindy wrote:

Ugly, but it seems to work.

#!/bin/bash

orphanURL='http://www.archlinux.org/packages/?sort=&arch=&repo=&q=&maintainer=orphan&last_update=&flagged=&limit=all'

comm -12 <(pacman -Qq) <(curl -s "$orphanURL" | xmllint --html --xpath '//*[@id="pkglist-results-form"]//tbody/tr/td[3]/a' - 2>/dev/null | sed 's/<a[^>]\+>//g;s/<\/a>/\n/g' | sort -u)

Shows 19 orphaned packages on my system, out of 430 (discludes manually installed packages). I can has adoption papers?

edit: if you're feeling dangerous and/or don't want to install libxml2 for xmllint, here's a pure sed version you can drop in, in place:

comm -12 <(pacman -Qq) <(curl -s "$orphanURL" | sed -n '/tbody/,/tbody/{s/.*title=[^>]\+>\([^<]\+\)<.*/\1/p}' | sort -u)

You should pipe the pacman -Qq output to sort -u as it is not guaranteed to be sorted (and in my case it was not).

Offline

#25 2010-12-02 21:01:10

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,329
Website

Re: Aurphan: Adopt Today!

Pierre wrote:

You should pipe the pacman -Qq output to sort -u as it is not guaranteed to be sorted (and in my case it was not).

It is sorted...  just not according to your LC_COLLATE settings (always the C locale). tongue    That is fixed in git.

Offline

Board footer

Powered by FluxBB