You are not logged in.

#251 2010-04-15 04:30:10

jmad980
Member
From: Califonia
Registered: 2010-03-11
Posts: 54

Re: Clyde - A better libalpm/makepkg wrapper

Well I was The Other Person With The Problem, and can simi confirm that it has something to do with proxy's. On My Sattilite I diged thru the settings and disable so called "Turbo Page" and now it seems to work. roll


Someone call a doctor, my awesome configuration broke again! || To err is human -- to blame it on a computer is even more so.

Offline

#252 2010-04-15 10:25:43

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

Re: Clyde - A better libalpm/makepkg wrapper

~ $ clyde -S airoscript-svn
error: failed to init transaction (unable to lock database)
  if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck

feature request: clyde waits for pacman for ending its process (wait until /var/lib/pacman/db.lck no longer exists)


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

#253 2010-04-15 12:14:10

hutch
Member
From: Lusiana - Italy
Registered: 2008-10-16
Posts: 13

Re: Clyde - A better libalpm/makepkg wrapper

Feature request : implementing IgnorePkg also for AUR packages

Offline

#254 2010-04-15 14:44:22

Cadynum
Member
Registered: 2010-04-15
Posts: 20

Re: Clyde - A better libalpm/makepkg wrapper

Wow, this thing's fast! Good job.
However I do find myself missing a couple of features from bauerbill preventing a switch to clyde:

* Specify which user should run makepkg.
I personally prefer to run all my administration commands as root with su. My current workaround is to alias clyde to SUDO_USER=builder clyde

* An option to specify where the packages are being built.
/tmp just doesn't cut it for me since it gets cleared at each boot. Can be fixed by linking the build directory to something persistent, but should ultimately be configurable through clyde.conf.

  * All AUR interaction right away.
With packages that require a bunch of AUR dependencies you have to check the pkgbuild and install files before each gets built, wait until it's built and then check the next etc. This process is rather frustrating and requires constant user interaction. With bauerbill you check everything before it starts building. This also has the advantage of not spend unnecessary time building packages in the event of finding a malicious/unwanted pkgbuild.

Keep up the good work!

Last edited by Cadynum (2010-04-15 14:44:36)

Offline

#255 2010-04-15 17:12:38

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

Re: Clyde - A better libalpm/makepkg wrapper

bug:
every time i upgrade/install something, at the end of the installation (when clyde should install the package, after creating it with makepkg) i get this error
notice that if i do pacman -U <package_dir>/my_created_package.pkg.tar.gz
the package is compiled.

Anyway, I have found weird files named *.pkg.tar.xz (which i dont know if its our repos or my mirror or clyde which uses these extensions) on my <package_dir>..
Also, this "udisks-1.0.0-2-i686.pkg.tar.xz" error is allways the same (the same package) .. i hope this helps you knowing what is this error.

error: error while reading package udisks-1.0.0-2-i686.pkg.tar.xz: Unrecognized archive format
lua: /usr/share/lua/5.1/clydelib/sync.lua:981: attempt to index local 'loaded' (a nil value)
stack traceback:
        /usr/share/lua/5.1/clydelib/sync.lua:981: in function 'installpkgs'
        /usr/share/lua/5.1/clydelib/sync.lua:1215: in function </usr/share/lua/5.1/clydelib/sync.lua:1150>
        (tail call): ?
        /usr/share/lua/5.1/clydelib/sync.lua:1613: in function 'clyde_sync'
        /usr/share/lua/5.1/clydelib/sync.lua:1619: in function </usr/share/lua/5.1/clydelib/sync.lua:1618>
        (tail call): ?
        /usr/bin/clyde:1018: in function </usr/bin/clyde:929>
        (tail call): ?
        [C]: ?

edit: I removed the cache packages with clyde -Scc and then removed udisks (which i installed after seeing this error). Installed q7z and now its okay.. (this error does not appear)


edit: it is doing the same error again !! (maybe the -Syyu flags are making some weird stuff)
anyway, good job with clyde big_smile

Last edited by quarkup (2010-04-16 09:23:33)


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

#256 2010-04-15 19:19:00

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Clyde - A better libalpm/makepkg wrapper

Hello guys,

I looked into clyde but have still one question. How can I update packages from AUR that are managed with a VCS?

Best example is clyde-git itself. clyde -Syu --aur isn't updating clyde-git even if there is a newer version available.

Regards

orschiro

Offline

#257 2010-04-15 19:46:03

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

Re: Clyde - A better libalpm/makepkg wrapper

orschiro wrote:

Hello guys,

I looked into clyde but have still one question. How can I update packages from AUR that are managed with a VCS?

Best example is clyde-git itself. clyde -Syu --aur isn't updating clyde-git even if there is a newer version available.

Regards

orschiro

I don't think that feature exists yet. If I remember correctly, it is on the long list of features that will be there eventually.

Offline

#258 2010-04-15 21:25:47

blackrain
Member
From: Poland
Registered: 2008-04-27
Posts: 23
Website

Re: Clyde - A better libalpm/makepkg wrapper

Hi, I've been testing clyde for a few days and found something strange. I've enabled testing repo and removed archlinuxfr in pacman.conf. Then I tried to clyde -Syu:

[michal@archy ~]$ clyde -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 archlinuxfr is up to date
:: Starting full system upgrade...

WTF? I've removed it!

pacman -Syu is ok:

[michal@archy ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 testing is up to date
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade..

Am I doing something wrong?

Offline

#259 2010-04-15 21:27:52

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

Re: Clyde - A better libalpm/makepkg wrapper

blackrain wrote:

...
Am I doing something wrong?

clyde.conf

Offline

#260 2010-04-15 21:31:57

blackrain
Member
From: Poland
Registered: 2008-04-27
Posts: 23
Website

Re: Clyde - A better libalpm/makepkg wrapper

Thanks ijanos. It works wink

Offline

#261 2010-04-16 11:16:38

b4283
Member
Registered: 2008-11-26
Posts: 123

Re: Clyde - A better libalpm/makepkg wrapper

yaourt has rewrite its AUR interface in C, becomes quite fast and usable
can use more than 2 keywords to search AUR now.

good news for all arch users. smile

ps: i think "yaourt" is much easier to type than "clyde" smile

Offline

#262 2010-04-16 11:20:21

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

Re: Clyde - A better libalpm/makepkg wrapper

5 letters, 6 letters... and you should be using aliases or tab-completion anyway.

Last edited by ngoonee (2010-04-16 11:20:32)


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.

Online

#263 2010-04-16 20:28:17

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

Re: Clyde - A better libalpm/makepkg wrapper

b4283 wrote:

yaourt has rewrite its AUR interface in C, becomes quite fast and usable
can use more than 2 keywords to search AUR now.

good news for all arch users. smile

ps: i think "yaourt" is much easier to type than "clyde" smile

That C thing is mostly a joke. When used by itself it is pretty fast, but has stupid, unintuitive, options. I really doubt it is meant to be used by itself, but whatever. When used by Yaourt it is still way slower than Clyde and pretty much everything else....

See here for my opinion and test results

To summarize, still slow, in some cases slower, has incredibly stupid output.

Wrt to typing, most people cannot even spell Yaourt. tongue

Clyde is the name of the orange ghost in some versions of American pac-man.

I do not like how Yaourt searches, imo the Clyde method is better. Clyde uses an AND search, Yaourt does OR, last I checked. AND, again imo, is better (and is what Pacman uses) as it narrows searches to what I want instead of including hundreds more results. If I want hundreds of extra results I can do two searches...

Btw, for repo searches Clyde supports regex (since it uses the same methods as pacman), but in the case of AUR searches that is still unimplemented. Does Yaourt yet? I do not recall it doing it before...but I could be wrong.

Clyde -Sy{,u} --aur has existed for several weeks or more, but it needs to be redone as it is slower than it should be and broken (I did not know it was broken until now), as well as the AUR dependency resolution and a bunch of other improvements....

Offline

#264 2010-04-16 21:26:00

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: Clyde - A better libalpm/makepkg wrapper

The AUR itself doesn't support regex searches, so that would be difficult to implement.

Offline

#265 2010-04-17 01:37:50

b4283
Member
Registered: 2008-11-26
Posts: 123

Re: Clyde - A better libalpm/makepkg wrapper

You can see why "clyde" is harder to type than "yaourt" because it has [c,d,e], and they are all on the same column of the keyboard.
That is, in the case of QWERTY keyboard, of course.

But it won't matter all that much since it's only 5 letters. smile

and it does support AND search now, but relatively slow.
I suspect what it did is run search for one keyword and then pipe it through another filter.
AUR should really support databases like abs.. for better search functionalities.
but it would be a large mess since the total amount is like dozens of times than official ones, i guess this is why they don't do it.

Offline

#266 2010-04-17 02:25:27

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

Re: Clyde - A better libalpm/makepkg wrapper

Uh, can you show an example that is slow? There is practically zero difference for what I tested between having only one search term and having anywhere between 2 and 26...

On a completely unrelated note, no program+description has all 26 letters. Darn. >.>

Oh wait, you mean Yaourt has (slow) AND searches?

Lol...surprise surprise.

And again wrt typing speed:
They take almost exactly the same amount of time to type, clyde occasionally less than a second, yaourt never. So clyde is faster to type...at least for me. I mistype yaourt a lot more, too. >.>

lua -l socket -e 'socket.sleep(3) print("GO!") t=socket.gettime() for i=1, 10 do print(io.stdin:read()) end print("Total time was: "..socket.gettime() - t)'

yaourt: Total time was: 12.682766914368
clyde: Total time was: 10.210410833359

Offline

#267 2010-04-17 06:24:15

Berseker
Member
From: Near Lecco, Italy
Registered: 2008-04-24
Posts: 258

Re: Clyde - A better libalpm/makepkg wrapper

Feature Request (sorry if maybe has been asked before): option to show last 5 comments on AUR (maybe with an option in clyde.conf).
I also quote for making an option to keep the build directory elsewhere (not in /tmp, it is not a great thing to re-download some big sources like xbmc-svn or nouveau each time)

also, I would like to report some "bug". If I tell Clyde to install a list of packages from AUR with option --noconfirm
- if one of the packages fails to build, Clyde stops (and does not continue to build the following package on the list)
- sometimes, packages build but clyde hangs on "upgrading package.. [---------------] 100%" without proceed with the build list. I have to CTRL+C-kill clyde and repeat the command to move on.
- sometimes, Clyde doesn't recognize when a dependency is supplied by a modified package (ex, mesa requested but I have mesa-git installed). I have to investigate more on this anyway

Keep up the great job Kiwi! I advertised your work in the Italian community! Thanks

Offline

#268 2010-04-17 07:18:25

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Clyde - A better libalpm/makepkg wrapper

b4283 wrote:

You can see why "clyde" is harder to type than "yaourt."

alias c='sudo clyde'

Problem solved.

Offline

#269 2010-04-17 08:30:37

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 115
Website

Re: Clyde - A better libalpm/makepkg wrapper

Wintervenom wrote:
alias c='sudo clyde'

Problem solved.

Or, if you don't want to type sudo all the time:
http://bbs.archlinux.org/viewtopic.php? … 61#p723161

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

Last edited by aeosynth (2010-04-17 08:32:06)

Offline

#270 2010-04-17 09:07:18

NeoXP
Member
From: MS Matrix
Registered: 2009-01-09
Posts: 206
Website

Re: Clyde - A better libalpm/makepkg wrapper

Wintervenom wrote:
b4283 wrote:

You can see why "clyde" is harder to type than "yaourt."

alias c='sudo clyde'

Problem solved.

Indeed here's a part of my .bashrc

.
.
# Clyde
alias c='sudo clyde'
alias cs='sudo clyde -S'
alias css='sudo clyde -Ss'
alias csu='sudo clyde -Su'
alias csy='sudo clyde -Sy'
alias csyy='sudo clyde -Syy'
alias csyu='sudo clyde -Syu'
alias cr='sudo clyde -R'
alias crs='sudo clyde -Rs'
alias crsn='sudo clyde -Rsn'
alias caur='sudo clyde -Syu --aur'
#
.
.

Arch x86_64 on HP 6820s and on HP nx9420. Registered Linux User 350155, since 24-03-2004
"Everyone said that it could not be done, until someone came along who didn't know that."

Offline

#271 2010-04-17 10:48:01

Berseker
Member
From: Near Lecco, Italy
Registered: 2008-04-24
Posts: 258

Re: Clyde - A better libalpm/makepkg wrapper

Sorry but I noticed another behaviour that I think have to be changed..
example: i want to install "package" from AUR, it has 3 deps 'dep1, dep2, dep3'. I know that "package" could be compiled without need of dep1 by disabling its support in the ./configure in the PKGBUILD. Problem is that clyde installs all the 3 deps before user can edit the PKGBUILD...

Offline

#272 2010-04-17 12:56:24

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 115
Website

Re: Clyde - A better libalpm/makepkg wrapper

@NeoXP:

you can use aliases inside other aliases. this is what I have:

alias ci='c -Si'
alias cs='c -Ss'
alias cu='c -Syu --aur'
alias cr='c -Rns'

alias qs='c -Qs'
alias qi='c -Qi'
alias qm='c -Qm'

I'm actually using the c() function I pasted above, but replacing that with `alias c='sudo clyde'` would work.

Also, re: using sudo to search (sudo clyde -Ss):
why would you do that?

Last edited by aeosynth (2010-04-17 13:02:37)

Offline

#273 2010-04-17 13:35:13

NeoXP
Member
From: MS Matrix
Registered: 2009-01-09
Posts: 206
Website

Re: Clyde - A better libalpm/makepkg wrapper

aeosynth wrote:

@NeoXP:

...

Also, re: using sudo to search (sudo clyde -Ss):
why would you do that?

Good point tongue


Arch x86_64 on HP 6820s and on HP nx9420. Registered Linux User 350155, since 24-03-2004
"Everyone said that it could not be done, until someone came along who didn't know that."

Offline

#274 2010-04-17 14:35:25

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

Re: Clyde - A better libalpm/makepkg wrapper

if you use sudo:

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

if you don't use sudo

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

just add that code into ~/.bashrc

then create aliases like

 alias ci='c --noconfirm -S';
 alias cs='c -Ss';
 alias cr='c -Rnscu';
 alias pu='c -U'; # somehow the same as "pacman -U"
 alias si='c -Si';
 alias qs='c -Qs';
 alias qi='c -Qi';
 alias qo='c -Qo';
 alias ql='c -Ql';
 alias cstats='c --stats';
 alias cscc='c -Scc';
 alias upg='c -Syyu --aur';                      # to upgrade the system, AUR and stuff
 alias up='c -Syyu --noconfirm --aur';      # the same as "upg" but without asking for confirmations..

edit: hey, we could have a clyde launcher (a script very much like the opera launcher)

Last edited by quarkup (2010-04-17 14:36:51)


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

#275 2010-04-17 16:08:30

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

Re: Clyde - A better libalpm/makepkg wrapper

Berseker wrote:

Sorry but I noticed another behaviour that I think have to be changed..
example: i want to install "package" from AUR, it has 3 deps 'dep1, dep2, dep3'. I know that "package" could be compiled without need of dep1 by disabling its support in the ./configure in the PKGBUILD. Problem is that clyde installs all the 3 deps before user can edit the PKGBUILD...

This is a major TODO and should be resolved when I re-implement dependency handling (I hope). There is I believe an open issue or two on github already. I will also somehow make it, maybe not at the same time but eventually, let you re-edit the PKGBUILD if you need to change the md5sums.

I am planning on putting the zsh and bash completion in this weekend, btw.

Offline

Board footer

Powered by FluxBB