You are not logged in.

#51 2010-03-05 20:01:54

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Clyde - A better libalpm/makepkg wrapper

On latest set up updates I gets stuck in an infinite loop printing this.
pacman.log:

[2010-03-05 14:51] synchronizing package lists
[2010-03-05 14:52] synchronizing package lists
[2010-03-05 14:52] synchronizing package lists
[2010-03-05 14:53] starting full system upgrade
[2010-03-05 14:57] upgraded cairo (1.8.8-2 -> 1.8.10-1)
[2010-03-05 14:57] upgraded libcaca (0.99.beta16-1 -> 0.99.beta17-1)
[2010-03-05 14:57] upgraded libdatrie (0.2.2-1 -> 0.2.3-1)
[2010-03-05 14:57] upgraded libgphoto2 (2.4.7-2 -> 2.4.8-1)
[2010-03-05 14:57] upgraded libthai (0.1.13-1 -> 0.1.14-1)
[2010-03-05 14:57] upgraded poppler (0.12.3-1 -> 0.12.4-1)
[2010-03-05 14:57] upgraded poppler-glib (0.12.3-1 -> 0.12.4-1)
[2010-03-05 14:57] upgraded readline (6.1.001-1 -> 6.1.002-1)
[2010-03-05 14:57] Fixing gshadow file ...
[2010-03-05 14:57] upgraded shadow (4.1.4.2-1 -> 4.1.4.2-2)

stdout:

...
/tmp/alpm_tDJgyL/.INSTALL: line 5: echo: write error: Broken pipe
/tmp/alpm_tDJgyL/.INSTALL: line 5: echo: write error: Broken pipe
/tmp/alpm_tDJgyL/.INSTALL: line 5: echo: write error: Broken pipe
/tmp/alpm_tDJgyL/.INSTALL: line 5: echo: write error: Broken pipe
/tmp/alpm_tDJgyL/.INSTALL: line 5: echo: write error: Broken pipe
/tmp/alpm_tDJgyL/.INSTALL: line 5: echo: write error: Broken pipe

Offline

#52 2010-03-05 23:28:49

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: Clyde - A better libalpm/makepkg wrapper

Where should we post feature requests?

One thing I love about Yaourt is that doing

yaourt -Ss

shows which packages are already installed. I understand that this would probably hurt clyde in the benchmark area, but is there any chance that a feature like this could appear?

Offline

#53 2010-03-06 00:25:13

Kiwi
Member
Registered: 2008-02-24
Posts: 153

Re: Clyde - A better libalpm/makepkg wrapper

Here is fine for feature requests (for me at least, is that ok with the forum mods?) , also finding me on IRC or posting issues to github works well.

Showing [installed] next to package names did not hurt it that much, if I remember right it was a few tenths of a second difference. It has been in for months, btw.

I intend to do -G, the missing Pacman features, and color profiles this weekend as well as start on -Syu --aur and hopefully get it functional.

smartboyathome, could you be a little more specific? >.> I already plan to at some point add Powerpill like downloading (to some extent at least) to Clyde as an optional feature (some people hate aria2c and I do not know if I can make anything to replace it easily) I do not really know what Rebase does.

I have a few things I need to do for school (yay Fortran!) and some chores but other than that my weekend is pretty free so I should be able to get a lot of that done if I do not encounter any bull crap like I did last weekend.

I do not know why the .INSTALL for shadow is failing for Clyde but not Pacman. I do not handle .INSTALL files for packages from repos directly with Clyde, libalpm handles those. /tmp/alpm_<foo> is not a Clyde tmp file. It is possibly a problem in lualpm but I am not sure. I am talking to some devs about it.

Totally random:
Just for kicks and to help move some of you users still clinging to Yaourt away... yaourt -Qs took over 11 minutes for me the other night. clyde -Qs took less than two seconds. (Pacman was about a second but ofc does not show as much info.) That is over 330 times faster for the same output from Clyde as Yaourt. I do have almost 1200 packages installed, though, so your mileage may vary. I have yet to find something both Clyde and Yaourt do that Clyde does not do faster, usually in the orders of magnitude range. And as I stated in a previous post one of the design goals of Clyde is to have most of what Yaourt has. Anyway, just something to consider.

Offline

#54 2010-03-06 00:28:45

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,357
Website

Re: Clyde - A better libalpm/makepkg wrapper

Kiwi wrote:

Here is fine for feature requests (for me at least, is that ok with the forum mods?)

Not a problem...

Kiwi wrote:

I do not really know what Rebase does.

See: http://xyne.archlinux.ca/manpages/rebase .  Extracting only the required files was implemented in pacman-git a while back so this will magically appear after the next pacman release.

Offline

#55 2010-03-06 00:49:27

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Clyde - A better libalpm/makepkg wrapper

Couple feature requests:

1. Flag to skip editing PKGBUILD but still prompt for installation. The "--noconfirm" flag will skip both.

2. Have community and AUR as different colors.

Offline

#56 2010-03-06 01:17:41

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: Clyde - A better libalpm/makepkg wrapper

Kiwi wrote:

Showing [installed] next to package names did not hurt it that much, if I remember right it was a few tenths of a second difference. It has been in for months, btw.

I intend to do -G, the missing Pacman features, and color profiles this weekend as well as start on -Syu --aur and hopefully get it functional.

This is what I've been waiting for, I might have to switch if clyde continues to improve as much as it has in the last week.


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#57 2010-03-06 02:57:19

Dead Code
Member
Registered: 2009-01-18
Posts: 227

Re: Clyde - A better libalpm/makepkg wrapper

Pretty neat. Been using for the past few hours, I like it

Offline

#58 2010-03-06 03:57:40

Kiwi
Member
Registered: 2008-02-24
Posts: 153

Re: Clyde - A better libalpm/makepkg wrapper

There is a fix pushed for the broken pipe error. Though I am getting reports from some people that it does not work, but it works here so I have no idea why not. As uh...unsettling as it may sound, I do not think it should break anything.... (It is one line and just sets SIGPIPE to SIG_DFL, which hopefully does not have repercussions elsewhere). If anyone can think of something I overlooked with this please let me know. If it does break something, well, I guess I will just have to fix it. smile




Change of topic:
Ok so people keep complaining/inquiring why you have to enter sudo before clyde when you are going to install/remove/upgrade something and being like "well yaourt/packer/whatever lets me enter it later..." I'll just take some time to explain why it is how it is and probably will not be changed...

when using sudo.

I am probably going to change it so you can run it with su or as root and it will drop to a --user user or clyde.conf: 'User = user' for makepkg. Maybe next week/weekend, we will see what all I get sidetracked with. BTW, spring break is coming up so I'll have a full week to do nothing but work on Clyde (and homework...) big_smile

Now back to sudo. Clyde is not a wrapper around another binary, and I hate to wrap it around itself. (I do it once and it irks me, but everyone kept asking for it, when you do [ "clyde searchtarget" => enter number/s [Enter] => enter password ] it actually did an os.execute("sudo clyde -S <packages to install>"), if you are not running as root already)

Wrappers have the luxury(?) of being able to do that sort of thing without people turning their nose up, that is just how they have to work. How often do you hear people complaining that a bash script calls some external coreutils or whatever program? Not very often, that is just how it is. So when these other aur helpers that are wrappers need root they just fork a new process with sudo and everyone is happy. But, Clyde is not a wrapper.

Clyde starts with whatever privileges the user has, and it is not easy (if even possible) for it to escalate them higher without doing io.popen/os.execute sudo/su clyde. So basically if it will need root at any point it needs it from the start, and then for things like makepkg it drops privileges to SUDO_USER, and in the future a user of your choice if using root/su. And you have no idea how hard it was even getting that to work....

Anyway, I do not really want or like to wrap itself, and whether you know it or not you do not want me to either. So unless someone can come up with a way to gain privileges that you do not have from the start that I have overlooked, how it is now is probably how it will stay, sorry.

Offline

#59 2010-03-06 11:40:48

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Clyde - A better libalpm/makepkg wrapper

EDIT: I'm an idiot big_smile

Last edited by simongmzlj (2010-03-08 13:46:21)

Offline

#60 2010-03-06 12:23:36

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Clyde - A better libalpm/makepkg wrapper

Just started with Clyde, so can't say much yet, but here's a trick for zsh users wanting completion:

compdef _pacman clyde=pacman

Offline

#61 2010-03-06 12:42:42

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Clyde - A better libalpm/makepkg wrapper

EDIT: I'm an idiot big_smile

Last edited by simongmzlj (2010-03-06 15:09:15)

Offline

#62 2010-03-06 20:20:29

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: Clyde - A better libalpm/makepkg wrapper

Kiwi: I don't know how I missed that. Apparently it does show the [installed] tag. Cool.

New Feature Request: When you add support for the --aur flag, make sure that something like

sudo clyde -S --aur bin32-wine

forces an installation from the AUR even if the package exists in a repo. So far Bauerbill will just install bin32-wine from the [archlinuxfr] repo no matter what argument I pass to it.

Offline

#63 2010-03-06 20:34:29

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Clyde - A better libalpm/makepkg wrapper

Doesn't clyde already have the --aur flag?

Try this: edit clyde.conf and uncomment the line ReposOnly, then use the --aur and install bin32-wine.

Offline

#64 2010-03-06 21:12:59

EnvoyRising
Member
Registered: 2008-08-08
Posts: 118

Re: Clyde - A better libalpm/makepkg wrapper

New bug reported. Seems if you ctrl + | while downloading a package in the aur, that package can no longer be downloaded? Posted issue report in github

Offline

#65 2010-03-06 23:35:59

alterecco
Member
Registered: 2009-07-13
Posts: 152

Re: Clyde - A better libalpm/makepkg wrapper

And another feature request.

Add an --exact flag to -Ss for mathing the search term exactly. I find i sometimes want to see if a package whose name is know is in the repos or in aur, and some packages with short names generate a very long listing. Would be nice to be able to search for exact matches.

For example:

clyde -Ss io --aur | wc -l
14960

o.O

Last edited by alterecco (2010-03-06 23:39:25)

Offline

#66 2010-03-07 03:01:46

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Clyde - A better libalpm/makepkg wrapper

the output of the upgrade part of -Syu is sometimes borked in tmux.

Last edited by JohannesSM64 (2010-03-07 03:02:33)

Offline

#67 2010-03-07 18:56:10

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: Clyde - A better libalpm/makepkg wrapper

anonymous_user wrote:

Doesn't clyde already have the --aur flag?

Try this: edit clyde.conf and uncomment the line ReposOnly, then use the --aur and install bin32-wine.

That doesn't fix it:

[rob ~ ]$  sudo clyde -S --aur bin32-wine
warning: bin32-wine-1.1.24-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (5): bin32-wine-1.1.24-1  lib32-libxcursor-1.1.10-1  lib32-libxrandr-1.3.0-1  
            lib32-libpng-1.4.0-2  lib32-openssl-0.9.8m-2  

Total Download Size:    0.00 MB
Total Installed Size:   87.59 MB

==> Proceed with installation? [Y/n] n
[rob ~ ]$  yaourt -S --aur bin32-wine
==> Resuming previous build

==> Downloading bin32-wine PKGBUILD from AUR...
tar: Record size = 12 blocks
==> Last 5 comments ordered by date (asc):
[snip]
      First Submitted: Tue, 26 Dec 2006 22:44:22 +0000    
bin32-wine 1.1.39-1 : Windows API implementation and interpreter, enabling the use of Windows apps in other OSes
( Unsupported package: Potentally dangerous ! )
==>  Edit the PKGBUILD (highly recommended for security reasons) ? [Y/n]("A" to abort)
==>   ----------------------------------------------
==>

Also, will clyde ever get a --devel option?

Last edited by pogeymanz (2010-03-07 19:00:32)

Offline

#68 2010-03-07 19:28:14

riivo
Member
Registered: 2008-08-25
Posts: 112

Re: Clyde - A better libalpm/makepkg wrapper

alterecco wrote:

And another feature request.

Add an --exact flag to -Ss for mathing the search term exactly. I find i sometimes want to see if a package whose name is know is in the repos or in aur, and some packages with short names generate a very long listing. Would be nice to be able to search for exact matches.

For example:

clyde -Ss io --aur | wc -l
14960

o.O

Try

clyde -Si io --aur

Offline

#69 2010-03-07 19:52:44

bcat
Member
From: New York, NY, USA
Registered: 2009-01-02
Posts: 30
Website

Re: Clyde - A better libalpm/makepkg wrapper

First of all, I want to say that Clyde is quite a cool program. Good job! One quick question:

Kiwi wrote:

-Syu --aur has not been written to update aur yet, so not a bug, just a lacking feature I intend to work on soonish.

When this is implemented, will "-Qu --aur" be supported also? I usually prefer to build packages from AUR with makepkg instead of an AUR helper, but I've gotten used to using "bauerbill -Qu --aur" to check for upgrades to AUR packages.

Last edited by bcat (2010-03-07 19:52:56)


Running Arch on a Dell Studio 1735. xmonad FTW! Dotfiles here.
Want free cloud-based file sharing? Sign up for Dropbox and we both get some bonus storage!

Offline

#70 2010-03-07 21:45:59

Kiwi
Member
Registered: 2008-02-24
Posts: 153

Re: Clyde - A better libalpm/makepkg wrapper

You may override what repository a package installs from with "repo/package" if it exists in more than one. (the same as in Pacman)

However:

I have not made that work with aur yet.

I will most likely not be adding an --exact flag. Just try and install the program and say no if it finds it and you do not want it.

As I posted on github about EnvoyRisings experience, it was/is an issue with dependency resolution of fake packages that are provided by something but not installed, not anything to do with how he exited clyde. In his case java-runtime is not a package but is provided by several others. That bug exists only when getting dependencies when installing anything from AUR.

bcat, that looks nifty. I would like to do something like that so I will look into it.

I have added (but not yet pushed due to foolishly starting working on other stuff before making a commit >.>) -G and -Gd options. I do not know if they do what they should, but this is what they do do.
-G will download and extract the tarball for a package (or list of packages)
-Gd will download and extract the tarball(s) for a package(s) and their AUR dependencies.
Any suggestions for improvement for those is welcome

I have also done almost all of -Sc/-Scc (afore mentioned other stuff). \o/

Offline

#71 2010-03-08 13:31:06

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: Clyde - A better libalpm/makepkg wrapper

So I'm still messing around with this. One thing I'm a little questionable about is the clyde.conf. I noticed it shows my repos from the pacman.conf, but if I change something in pacman.conf, clyde.conf still shows old repos. In this little example I uncommented Fukawi's repo from pacman.conf and -Syy both of them.

» svim /etc/pacman.conf
» sudo pacman -Syy
:: Synchronizing package databases...
 testing                    6.9K   35.4K/s 00:00:00 [###################################################################] 100%
 ..(truncated)...
 arch-games                32.8K   49.5K/s 00:00:01 [###################################################################] 100%                                                                                                                                                                                                        
» sudo clyde -Syy
:: Synchronizing package databases...
testing                    6.9K   35.3K/s 00:00:00 [####################################################################] 100%
 ..(truncated)..
arch-games                32.8K   58.1K/s 00:00:01 [####################################################################] 100%
fukawi                     3.8K  122.3K/s 00:00:00 [####################################################################] 100%
»

So, fukawi is still being used by clyde even though I got rid of it in pacman. Do I have to keep both conf's in sync manually? Maybe this is intentional but I just found it curious.

Last edited by milomouse (2010-03-08 14:11:59)

Offline

#72 2010-03-08 14:03:24

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: Clyde - A better libalpm/makepkg wrapper

milomouse wrote:

So, fukawi is still being used by clyde even though I got rid of it in pacman. Do I have to keep both conf's in sync manually? Maybe this is intentional but I just found it curious.

Clyde is a program to replace pacman, not written around it. It uses its own config, which is based on you pacman.conf at first but you have to modfy clyde.conf further on.

Offline

#73 2010-03-08 14:10:23

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: Clyde - A better libalpm/makepkg wrapper

Ah, I didn't realize it was a complete replacement of pacman, my mistake then. Thanks for the reply

Offline

#74 2010-03-08 16:11:48

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Clyde - A better libalpm/makepkg wrapper

For people not wanting to run sudo before clyde, adding something like this to .basrc/.zshrc could do the trick (not tested, probably won't work, just an idea)

cylde() {
    case $1 in
        -S*)
        -U)
            sudo cylde $* ;;
        *)
            clyde $* ;;
    esac
}

This has it issues, like prompting for a password on -Ss, but as I said, just an idea.

Offline

#75 2010-03-08 22:41:55

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: Clyde - A better libalpm/makepkg wrapper

as simongmzlj said, adding the following to the bash rc file (~/.bashrc) would work. I am not sure for the zsh/dash and all other shells as I simply use bash.

c(){
     case $1 in
          (-Si | -Ss | -Q*)
               clyde "$@" ;;
     
          (-S* | -R* | -U | *)
               /usr/bin/sudo clyde "$@" || /bin/su -c clyde "$@" || return $? ;; 
          esac
}

There is always the possibility of  creating a clyde launcher (a simple launcher script)

#! /bin/sh

case $1 in
     (-Si | -Ss | -Q*)
          clyde "$@" ;;

     (-S* | -R* | -U | *)
          /usr/bin/sudo clyde "$@" || /bin/su -c clyde "$@" || return $? ;; 
     esac

exit 0;

this way it will choose between "sudo" or "su -c". if sudo does not run (iex: it isn't installed/used) it will use the simpliest super user command "su -c"

edit: minor correction

Last edited by quarkup (2010-03-09 15:33:25)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

Board footer

Powered by FluxBB