You are not logged in.

#226 2010-01-29 20:13:31

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

JayJay wrote:

Package group oder provider package as dependency

If i try to install fcron, i get this:

% packer -S fcron
Dependency `smtp-server' of `fcron' does not exist.

Then I...

 % packer -S smtp-server
Package `smtp-server' does not exist.

Search for it...

 % packer -Ss smtp-server
extra/courier-mta 0.62.1-4 [5.58 MB]
    IMAP(s)/POP3(s) and SMTP Server with ML-manager, webmail and webconfig
extra/exim 4.69-2 [0.45 MB]
    A Message Transfer Agent
extra/postfix 2.6.5-3 [3.35 MB]
    Secure, fast, easy to administer drop in replacement for Sendmail (MTA)
community/esmtp 1.2-1 [0.02 MB]
    An easy smtp forwarder

If i install esmtp and then fcron it works.
Is this a bug of packer, or is the PKGBUILD of fcron wrong/bad?

JJ

This is a problem I had considered a while ago, but never managed to get around to trying to fix. I guess makepkg has it fixed so I can figure out what it is doing. Basically the issue is that it is depending on something that doesn't  exist but is in many packages provides=(). So yeah.

Last edited by bruenig (2010-01-29 20:13:55)

Offline

#227 2010-01-29 21:31:57

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

bruenig wrote:
JayJay wrote:

Package group oder provider package as dependency

If i try to install fcron, i get this:

% packer -S fcron
Dependency `smtp-server' of `fcron' does not exist.

Then I...

 % packer -S smtp-server
Package `smtp-server' does not exist.

Search for it...

 % packer -Ss smtp-server
extra/courier-mta 0.62.1-4 [5.58 MB]
    IMAP(s)/POP3(s) and SMTP Server with ML-manager, webmail and webconfig
extra/exim 4.69-2 [0.45 MB]
    A Message Transfer Agent
extra/postfix 2.6.5-3 [3.35 MB]
    Secure, fast, easy to administer drop in replacement for Sendmail (MTA)
community/esmtp 1.2-1 [0.02 MB]
    An easy smtp forwarder

If i install esmtp and then fcron it works.
Is this a bug of packer, or is the PKGBUILD of fcron wrong/bad?

JJ

This is a problem I had considered a while ago, but never managed to get around to trying to fix. I guess makepkg has it fixed so I can figure out what it is doing. Basically the issue is that it is depending on something that doesn't  exist but is in many packages provides=(). So yeah.

aurget fails for this too.  i /think/ i've fixed it with this but i'm not sure.

558         if pacman -Sqs ^$dep$ &>/dev/null; then
559           warn "$dep required by $name. this may be installed via pacman."

basically pacman -Sqs ^$dep$ will only return true if pacman has exactly it or something providing exactly it in the repo.  before, i was doing -Sqs $dep | grep -Fqx $dep, which matches nothing in the case of a provides package.

Offline

#228 2010-01-29 22:18:39

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Following brisbin's advice, I believe I have fixed the problem. packer -S packer and see.

Also, I added Make Depends info in packer -Si for aur packages.

Offline

#229 2010-01-30 05:46:21

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Thanks for this tool. I'm so happy I can finally dump yaourt. I'm telling everyone I know about this.

Offline

#230 2010-01-30 18:15:07

Bregol
Member
Registered: 2008-08-15
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

hmmm... fast and works well so far. I might like this one.  I just miss being able to see in searches what is installed and what is not.  Also seeing # of votes in AUR is helpful for picking which aur packages to try out first.


Nai haryuvalyë melwa rë

Offline

#231 2010-01-30 19:28:45

oszabolcs
Member
Registered: 2008-06-28
Posts: 4

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Thanks for packer, I'm successfully using it over two weeks.
I found a ?bug. While using the -G option, if package.tar.gz exists, then the downloaded file's name gets an incrementing number postfix, but the original file will be extracted.
wget "http://aur.archlinux.org/packages/$pack … age.tar.gz" -O "$package.tar.gz" did solve this at line 571.

Offline

#232 2010-01-30 20:04:09

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

oszabolcs wrote:

Thanks for packer, I'm successfully using it over two weeks.
I found a ?bug. While using the -G option, if package.tar.gz exists, then the downloaded file's name gets an incrementing number postfix, but the original file will be extracted.
wget "http://aur.archlinux.org/packages/$pack … age.tar.gz" -O "$package.tar.gz" did solve this at line 571.

Change pushed. packer -S packer to get new.

Offline

#233 2010-01-30 20:31:14

Gumper
Member
From: U.S.A.
Registered: 2009-10-26
Posts: 132

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Is it possible to have packer remove the build dependencies used in building AUR's after the program is installed? This is one feature that I find handy in Bauerbill.


Ready yourselves, ready yourselves
Let us shine the light of Jesus in the darkest night
Ready yourselves, ready yourselves
May the powers of darkness tremble as our praises rise .... Casting Crowns-Until The Whole World Hears.

Offline

#234 2010-01-30 21:07:23

Skripka
Member
From: 2X1280X1024
Registered: 2009-02-19
Posts: 555

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Bregol wrote:

I just miss being able to see in searches what is installed and what is not.  Also seeing # of votes in AUR is helpful for picking which aur packages to try out first.

These.  Otherwise GREAT work smile

Offline

#235 2010-01-30 22:27:51

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

I use this over yaourt. It's perfect. big_smile

Offline

#236 2010-01-31 03:30:00

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

MajorTom, what do you want the quiet output to look like. When I do pacman -Ssq the only thing it shows is the package name, is this it?

Offline

#237 2010-01-31 05:47:35

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Yes, that's all I need.

Offline

#238 2010-01-31 07:41:25

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

I added --quiet so that I could utilize the option for both interactive mode and the normal -Ss mode. I don't know. I kind of feel like very few people will ever use --quiet, but whatever I guess. It doesn't slow anything down and actually makes sure not to set description arrays and version arrays when the flag is used (thus making it truly faster as it should be).

Offline

#239 2010-01-31 09:26:58

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Gumper wrote:

Is it possible to have packer remove the build dependencies used in building AUR's after the program is installed? This is one feature that I find handy in Bauerbill.

this would be great feature if implemented


Acer Aspire V5-573P Antergos KDE

Offline

#240 2010-01-31 17:02:00

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

bruenig wrote:

I added --quiet so that I could utilize the option for both interactive mode and the normal -Ss mode. I don't know. I kind of feel like very few people will ever use --quiet, but whatever I guess. It doesn't slow anything down and actually makes sure not to set description arrays and version arrays when the flag is used (thus making it truly faster as it should be).

I appreciate it.
Since I'm so used to one letter arguments, I've tried adding the following:

# Argument parsing
[[ $1 ]] || usage
packageargs=()
while [[ $1 ]]; do
  case "$1" in
    '-S') option=install ;;
    '-Ss') option=search ;;
    '-Ssq'|'-Sqs') option=search ; quiet='1' ;; # <===== ** here **

It works nicely and I didn't notice any speed issues. Is this not acceptable for any reason?

Offline

#241 2010-01-31 18:06:34

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

MajorTom wrote:
bruenig wrote:

I added --quiet so that I could utilize the option for both interactive mode and the normal -Ss mode. I don't know. I kind of feel like very few people will ever use --quiet, but whatever I guess. It doesn't slow anything down and actually makes sure not to set description arrays and version arrays when the flag is used (thus making it truly faster as it should be).

I appreciate it.
Since I'm so used to one letter arguments, I've tried adding the following:

# Argument parsing
[[ $1 ]] || usage
packageargs=()
while [[ $1 ]]; do
  case "$1" in
    '-S') option=install ;;
    '-Ss') option=search ;;
    '-Ssq'|'-Sqs') option=search ; quiet='1' ;; # <===== ** here **

It works nicely and I didn't notice any speed issues. Is this not acceptable for any reason?

ok

Offline

#242 2010-01-31 20:54:10

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Splendid!

Offline

#243 2010-02-01 09:31:32

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Hi.
I would like to make a feature request. When searching packages it would be nice to show a flag whether if its installed or not. yaourt does that. Please consider this if it is not a performance nightmare.


Thanks
Jithin

Offline

#244 2010-02-01 12:26:40

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

jithin1987 wrote:

Hi.
I would like to make a feature request. When searching packages it would be nice to show a flag whether if its installed or not. yaourt does that. Please consider this if it is not a performance nightmare.

This has been requested many times in this thread, and it is a performance nightmare.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#245 2010-02-01 18:21:42

interskh
Member
From: pittsburgh
Registered: 2008-10-23
Posts: 45

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Great job! packer rocks.
thanks for sharing


o.O

Offline

#246 2010-02-02 03:44:31

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

This was brought up by <Vithon> on packer's AUR page:

Only one suggestion, I'd like a config file (/etc/packer.conf or $HOME/.config/packer/packer.conf or whatever) so you could specify options (i.e., skipping the "Edit PKGBUILD?" by always saying "no").
(...)
I know that, but I don't want to skip the "Proceed with Installation?" dialog.

I actually think it's a good idea to split package installation confirmation and PKGBUILD editing prompts.
Feel free to criticize if I overlooked something but here's my quick hack to address that:

--- packer        2010-01-31 15:49:19.000000000 -0500
+++ packer-mod    2010-02-01 22:17:29.000000000 -0500
@@ -49,6 +49,7 @@
   echo '    --quiet     - only output package name for searches'
   echo '    --ignore    - takes a comma-separated list of packages to ignore'
   echo '    --noconfirm - do not prompt for confirmation'
+  echo '    --noedit    - do not edit PKGBUILD'
   echo '    --auronly   - only do actions for aur'
   echo '    --devel     - update devel packages during -Su'
   echo '    --skipinteg - when using makepkg, do not check md5s'
@@ -274,7 +275,7 @@
 
   # Allow user to edit PKGBUILD
   if [[ -f PKGBUILD ]]; then
-    if ! [[ $noconfirm ]]; then
+    if ! [[ $noedit ]]; then
       echo -n "Edit $1 PKGBUILD with \$EDITOR? [Y/n] "
       read -n 1 answer
       echo
@@ -292,7 +293,7 @@
   unset install
   . PKGBUILD
   if [[ $install ]]; then
-    if ! [[ $noconfirm ]]; then
+    if ! [[ $noedit ]]; then
       echo -n "Edit $install with \$EDITOR? [Y/n] "
       read -n 1 answer
       echo
@@ -470,6 +471,7 @@
     '--quiet') quiet='1' ;;
     '--ignore') ignorearg="$2" ; PACOPTS+=("--ignore" "$2") ; shift ;;
     '--noconfirm') noconfirm='1' PACOPTS+=("--noconfirm");;
+    '--noedit') noedit='1';;
     '--auronly') auronly='1' ;;
     '--devel') devel='1' ;;
     '--skipinteg') MAKEPKGOPTS="--skipinteg" ;;

Offline

#247 2010-02-02 04:39:37

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

There is one thing that I will still use yaourt for.  Before installing, Yaourt echos out all the package comments.  It is still faster to check yaourt then it is to fire up a web browser.  It is easy enough to extract the messages, but involves fragile and messy regex.  Not fun.  Maybe just the last few, which are newer than the package?

Offline

#248 2010-02-02 07:57:40

axel668
Member
Registered: 2009-08-15
Posts: 168

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Tried it, love it ! Had no idea that AUR can be so fast !! Thanks to bruenig for the great work !!!

That's only me, but I usually EITHER want to install new stuff OR check if I already got something,
so pacman -Q packagename is getting the job done for me, checking if something is installed


"A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila."
(Mitch Ratcliffe)

Offline

#249 2010-02-02 15:55:54

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

axel668 wrote:

Tried it, love it ! Had no idea that AUR can be so fast !! Thanks to bruenig for the great work !!!

That's only me, but I usually EITHER want to install new stuff OR check if I already got something,
so pacman -Q packagename is getting the job done for me, checking if something is installed

Try pacman -Qm.
You may also want to take a look at aurcheck.

Offline

#250 2010-02-02 16:47:30

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Added --noedit and also changed color of edit message.

Offline

Board footer

Powered by FluxBB