You are not logged in.

#101 2012-02-10 18:59:59

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

@Bad-ptr

Could you please try the following potential fix:

$ tar -xf pkgbrowser-0.8.tar.gz 
$ cd pkgbrowser-0.8/
$ sed -i '80a #include <stdlib.h>' src/alpm.i
$ make clean && make
$ python2 main.py 

NB: make sure you have swig installed before trying this

Offline

#102 2012-02-10 21:29:25

Bad_ptr
Member
Registered: 2012-02-09
Posts: 9

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Oh, I'm sorry, but it seems l was not so careful as I should. :(p
I have some compiler flags in my. zshrc and it was the first thing I started to check. I commented them out, but did not notice that a few lines below the flags were redefined again... :(
After playing with compiler flags I find flag that makes pkgbrowser segfault on clicking on installed package --- it's -finline-functions flag. So I compiled pkbrowser without -finline-functions and now it's seems to work properly:) (but if I use a clang as compiler, it still segfault even without this flag).
Also I tryed: sed -i '80a #include <stdlib.h>' src/alpm.i It didn' help somehow :p

Offline

#103 2012-02-10 22:46:40

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Bad_ptr wrote:

Oh, I'm sorry, but it seems l was not so careful as I should. :(p
I have some compiler flags in my. zshrc and it was the first thing I started to check. I commented them out, but did not notice that a few lines below the flags were redefined again... sad
After playing with compiler flags I find flag that makes pkgbrowser segfault on clicking on installed package --- it's -finline-functions flag. So I compiled pkbrowser without -finline-functions and now it's seems to work properly:)(but if I use a clang as compiler, it still segfault even without this flag).

Glad you've got things working.

Just to be clear: if you use gcc with the default compiler flags, the segfaults go away, yes?

Also I tryed: sed -i '80a #include <stdlib.h>' src/alpm.i It didn' help somehow tongue

Well, I did not have high hopes, but it was the best I could come up with wink

(Anyway, it is a bug not to include that header, so at least something got fixed).

Last edited by kachelaqa (2012-02-10 22:51:58)

Offline

#104 2012-02-11 06:00:08

Bad_ptr
Member
Registered: 2012-02-09
Posts: 9

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

>if you use gcc with the default compiler flags, the segfaults go away, yes
yes

Offline

#105 2012-03-10 02:37:22

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

version 0.9 has been released today.

please see the pkgbrowser manual and the changelog for further details.

Offline

#106 2012-03-11 04:50:09

GSF1200S
Member
Registered: 2008-12-24
Posts: 417

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

kachelaqa wrote:

version 0.9 has been released today.

please see the pkgbrowser manual and the changelog for further details.

Love it! The bookmark option is very nice, and the log feature will be quite handy if I need need to go back to a different package version.

Just keeps getting better...

Offline

#107 2012-03-13 09:09:39

zebulon
Member
Registered: 2008-10-20
Posts: 235

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Very nice!

Offline

#108 2012-03-15 14:02:39

twau
Member
Registered: 2012-03-02
Posts: 4

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Well done! It would be cool to be able to vote for AUR packages.

Offline

#109 2012-03-15 14:15:57

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

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

twau wrote:

Well done! It would be cool to be able to vote for AUR packages.

You can use aurvote ;P
https://aur.archlinux.org/packages.php?ID=9845

Offline

#110 2012-03-15 14:18:41

theGunslinger
Member
Registered: 2011-05-20
Posts: 299

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

twau wrote:

Well done! It would be cool to be able to vote for AUR packages.


https://aur.archlinux.org/packages.php?ID=9845

Edit: ah, beat me to it smile

Last edited by theGunslinger (2012-03-15 14:19:10)

Offline

#111 2012-03-15 19:02:04

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

twau wrote:

Well done! It would be cool to be able to vote for AUR packages.

thanks for the feedback.

voting for aur packages from pkgbrowser is already very easy, so i don't think anything needs to be added.

if your browser has the facility to remember usernames/passwords (as with firefox, which i use), it can be done with two or three mouse clicks:

1. click the AUR Url in the Details section (which opens the package page in your browser)
2. click the Login button on the package page (if you aren't logged in already)
3. click the Vote button on the package page

however, there is a small bug here that i've just noticed: pkgbrowser doesn't currently use https login, so there's an unnecessary extra click required!

this will be fixed in the next version of pkgbrowser.

Offline

#112 2012-04-07 11:44:35

davidovitch
Member
From: Copenhagen
Registered: 2011-02-02
Posts: 31
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Just want to give an heads up for this very useful tool! Thanks for creating and maintaining it! Voter nr 89 ;-)

Offline

#113 2012-04-15 09:01:49

davidovitch
Member
From: Copenhagen
Registered: 2011-02-02
Posts: 31
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

I would like to propose to include the pacman cache (if activated in /etc/pacman.conf) in pkgbrowser:
* include a repository database icon in the upper left window containing the pacman cache database. That would give you a quick overview of which older versions of certain packages are still available locally. When a package needs to be downgraded this might come in handy in my opinion.
* Tools > show statistics could also mention how many packages in total (where each different version has a count) are present and how much disc space the cache is consuming.

Not sure how feasible this is though.

Offline

#114 2012-04-16 04:34:27

GSF1200S
Member
Registered: 2008-12-24
Posts: 417

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

davidovitch wrote:

I would like to propose to include the pacman cache (if activated in /etc/pacman.conf) in pkgbrowser:
* include a repository database icon in the upper left window containing the pacman cache database. That would give you a quick overview of which older versions of certain packages are still available locally. When a package needs to be downgraded this might come in handy in my opinion.
* Tools > show statistics could also mention how many packages in total (where each different version has a count) are present and how much disc space the cache is consuming.

Not sure how feasible this is though.

I definitely like your first suggestion- I dont hold many packages back, but when I need to downgrade one i have to either open /var/cache/pacman/cache or run Downgrade from the terminal to see whats available for a package in cache. We'll see...

Also, just wanted to throw out that the log function now built-in has become a staple of my troubleshooting now- makes it so much easier not having to open pacman.log in geany to search for the latest updates to certain packages. Loving that addition..

Offline

#115 2012-04-16 17:30:35

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

davidovitch wrote:

* include a repository database icon in the upper left window containing the pacman cache database. That would give you a quick overview of which older versions of certain packages are still available locally. When a package needs to be downgraded this might come in handy in my opinion.

The pacman cache isn't a database: it's just a directory containing the *.tar.xz files that were used to install packages. It is possible to load these files directly using libalpm. However, the performance is horrible because each file has to be (partially) decompressed in order to extract the package information. If you update often, the cache can easily grow to tens of thousands files if it isn't cleaned out regularly - so there is a significant performance issue with attempting to treat the cache like a repository database.

However, even without the performance issues, I don't really think this is worth adding to pkgbrowser - because I don't see a genuine use-case for it.

Rather than attempting to give an overview of the entire cache, I think a much more useful feature would be to add an information tab which shows the available downgrades for each package. This would just display a simple list of packages from the local cache and A.R.M (i.e. very similar to the output produced by downgrader scripts like this one).

* Tools > show statistics could also mention how many packages in total (where each different version has a count) are present and how much disc space the cache is consuming.

This functionality is beyond the scope of pkgbrowser - it belongs in a dedicated cache-management utility.

Offline

#116 2012-04-16 22:23:50

davidovitch
Member
From: Copenhagen
Registered: 2011-02-02
Posts: 31
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

kachelaqa wrote:

Rather than attempting to give an overview of the entire cache, I think a much more useful feature would be to add an information tab which shows the available downgrades for each package. This would just display a simple list of packages from the local cache and A.R.M (i.e. very similar to the output produced by downgrader scripts like this one).

That would be exactly the functionality I was pointing to. I agree it sounds more sensible compared to skimming a possible huge list of packages and decompressing them to read the package info file.

kachelaqa wrote:

This functionality is beyond the scope of pkgbrowser - it belongs in a dedicated cache-management utility.

I agree it is consistent with the lean and clean goals you set out for pkgbrowser. For what its worth, personally, I like the idea of having all package related stuff together in one application, including the cache. But that's just an opinion and by no means a critique on pkgbrowser.

Offline

#117 2012-04-17 00:37:57

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

davidovitch wrote:

That would be exactly the functionality I was pointing to. I agree it sounds more sensible compared to skimming a possible huge list of packages and decompressing them to read the package info file.

Okay - I will certainly have a look at this for the next version of pkgbrowser (not sure when that will be though, as I am working on other things at the moment).

davidovitch wrote:

For what its worth, personally, I like the idea of having all package related stuff together in one application, including the cache. But that's just an opinion and by no means a critique on pkgbrowser.

All feedback (including criticism) is always welcome smile

Offline

#118 2012-04-29 17:47:53

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

version 0.9.1 has been released today.

please see the pkgbrowser changelog for further details.

Offline

#119 2012-05-04 19:34:08

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

version 0.10 has been released today.

please see the pkgbrowser manual and the changelog for further details.

Offline

#120 2012-05-05 04:09:18

GSF1200S
Member
Registered: 2008-12-24
Posts: 417

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

I thought I was going to have a weird bug for you, but im not sure if its a bug or what. The only options available when "Include AUR" is selected is Plain Match, Wildcard search, and Maintainer (under keys). Everything under scope is fine. When I deselect "Include AUR", all other options become available to be selected. There is no mention of this in the manual, so perhaps throw in a mention by the area where you make the Include AUR at startup option a note?

I suppose I could say it would be cool if pkgbrowser could simply ignore the AUR for things that it wont search the AUR for (like to find out what package owns a file, etc), that way one wouldnt need to deselect the Include AUR box everytime they wanted to use one of the options not available with it selected.

That said, im all for keeping it simple- maybe just a manual note (so people wont think its a bug)? Love the cache feature you added, so thank you smile

Offline

#121 2012-05-06 17:17:42

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

GSF1200S wrote:

I thought I was going to have a weird bug for you, but im not sure if its a bug or what. The only options available when "Include AUR" is selected is Plain Match, Wildcard search, and Maintainer (under keys). Everything under scope is fine. When I deselect "Include AUR", all other options become available to be selected. There is no mention of this in the manual, so perhaps throw in a mention by the area where you make the Include AUR at startup option a note?

No, it's certainly not a bug - PkgBrowser has always worked that way. The search options for the AUR are limited to what is available via the AurJson interface. And, in general, the UI just doesn't allow invalid combinations of search options to be selected (in fact, if it does, that probably is a bug).

I don't feel anything needs to be added to the manual. PkgBrowser is just an integrated GUI front-end to functionality that is available elsewhere via various comand-line and web-based tools. It is simply assumed that users are already familiar with such tools, and have a general idea how they work and what they can be used for.

I suppose I could say it would be cool if pkgbrowser could simply ignore the AUR for things that it wont search the AUR for (like to find out what package owns a file, etc), that way one wouldnt need to deselect the Include AUR box everytime they wanted to use one of the options not available with it selected.

I think that would tend to blur the distinction between official and unofficial packages too much. Given the nature of the AUR, I feel there should always be an explicit step required to include it.

Offline

#122 2012-05-06 18:59:26

GSF1200S
Member
Registered: 2008-12-24
Posts: 417

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

kachelaqa wrote:
GSF1200S wrote:

I thought I was going to have a weird bug for you, but im not sure if its a bug or what. The only options available when "Include AUR" is selected is Plain Match, Wildcard search, and Maintainer (under keys). Everything under scope is fine. When I deselect "Include AUR", all other options become available to be selected. There is no mention of this in the manual, so perhaps throw in a mention by the area where you make the Include AUR at startup option a note?

No, it's certainly not a bug - PkgBrowser has always worked that way. The search options for the AUR are limited to what is available via the AurJson interface. And, in general, the UI just doesn't allow invalid combinations of search options to be selected (in fact, if it does, that probably is a bug).

I don't feel anything needs to be added to the manual. PkgBrowser is just an integrated GUI front-end to functionality that is available elsewhere via various comand-line and web-based tools. It is simply assumed that users are already familiar with such tools, and have a general idea how they work and what they can be used for.

I suppose I could say it would be cool if pkgbrowser could simply ignore the AUR for things that it wont search the AUR for (like to find out what package owns a file, etc), that way one wouldnt need to deselect the Include AUR box everytime they wanted to use one of the options not available with it selected.

I think that would tend to blur the distinction between official and unofficial packages too much. Given the nature of the AUR, I feel there should always be an explicit step required to include it.

Just thought I would mention it. I usually leave the Include AUR enabled on startup, and mainly use pkgbrowser to search for packages I need info about (dependencies, packages that might have bugs, etc); stuff like what package owns a file, etc I usually just use pkgtools from the command line. It does make sense in terms of how the interface is designed, and works great for me- I was just thinking in terms of someone who may not realize the Include AUR option changes available options. Weve had this discussion before- you *shrug* and I ask for manual additions, haha wink

Offline

#123 2012-05-15 12:14:00

davidovitch
Member
From: Copenhagen
Registered: 2011-02-02
Posts: 31
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Nice to see that the package cache made it into the new release.

Than another small feature request/idea :-) I am not sure if it has been proposed before or not, but here goes: highlighting the flagged-out-of-date and orphaned packages from the AUR in the details tab (for instance with a red background or something). It immediately points you to the fact your are looking into a outdated or orphaned package.

Offline

#124 2012-05-15 17:03:06

kachelaqa
Member
Registered: 2010-09-26
Posts: 215

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

davidovitch wrote:

I am not sure if it has been proposed before or not, but here goes: highlighting the flagged-out-of-date and orphaned packages from the AUR in the details tab (for instance with a red background or something). It immediately points you to the fact your are looking into a outdated or orphaned package.

How would you use that information? Would you want to avoid the packages that are highlighted?

Maybe adding some filters for out-of-date and orphaned packages (i.e. like the AUR search page) would be a better solution.

Offline

#125 2012-06-19 08:36:25

davidovitch
Member
From: Copenhagen
Registered: 2011-02-02
Posts: 31
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Sorry for the late reply.

In some cases, the AUR contains several variants of one package. Some are maintained, others are not, and at one point I only realized after installing I got an old or outdated package. This use case came up when installing my system, and being new to Arch I spent a lot of time finding the right packages for me. That is obviously less of an issue now my system stabilized a bit.

I agree with that the filter would be smarter in case you want to see which packages are lagging behind. Especially for AUR packages this might be handy to know since it is possible that some maintainer lost track/interest in the respective package.

Last edited by davidovitch (2012-06-19 08:37:40)

Offline

Board footer

Powered by FluxBB