You are not logged in.

#76 2009-07-21 14:38:43

tocer
Member
Registered: 2008-10-23
Posts: 28

Re: pkgman - a bash script for local package and PKGBUILD management

DonVla wrote:

that's strange. i took a short look and everything seems to be fine.
i also checked the submission functions.
try "pkgman wordjoy -C" and tell if this works.
vlad

The output is:

tocer wrote:

$ pkgman wordjoy -C

==> ERROR: wordjoy not found neither in Community nor in AUR Unsupported.
==> NOTE:  You cannot leave comments for packages from official repos!

my .config/pkgman/pkgman.conf:

tocer wrote:

#===============================================================================
#
#          FILE:  pkgman.conf
#
#   DESCRIPTION:  user set variables for pkgman
#     VARIABLES:  see pkgman manual page
#
#      LOCATION:  $HOME/.config/pkgman/
#       LICENSE:  GPLv2
#         NOTES:  copy /usr/share/pkgman/pkgman.conf to $HOME/.config/pkgman/pkgman.conf
#       VERSION:  1.8
#===============================================================================


###     Commands
# use abs as root or with sudo
ABSCommand="su -c '/usr/bin/abs'"
#ABSCommand="sudo /usr/bin/abs"

# vim is recommended
FileEditor=/usr/bin/vim

# use external application; for example
# (the "%s" stands for the $SHELL command):
#ShellCommand="screen -t pkgman %s"
#ShellCommand="xterm -T pkgman -e %s &"


###     Directories and files
#CacheCopyList=${HOME}/.config/pkgman/package.list
LocalPackages=/var/abs/local
LocalRepository=/var/abs/local
RepoDatabase=custom.db.tar.gz
TemplateDir=/usr/share/pacman


###     Switches (yes|no)
## AUR related (options for submitting tarballs)
# flag submitted AUR package up-to-date
AutomaticallyUnflagOutofdate=yes
# set the AUR notification flag for submitted package
NotifyOwnPackages=yes
# vote for own submitted AUR package
VoteForOwnPackages=yes

## general
# automatically generate checksums after editing
AutoGenerateSums=no
# backup PKGBUILD and related files after editing; toggle with "-b|--backup"
BackupTarball=no
# copy the binary package from /var/cache/pacman to backup dir
# NOTE: CacheCopyList file must exist for this option
CopyPkgFromCache=no
# build a src.tar.gz from ABS and copy it to backup dir
# NOTE: CacheCopyList file must exist for this option
CopySrcFromABS=no
# show "-l|--list", "-o|--own" or "--diffversions" output in $PAGER
ListOutputInPager=yes
# allow switching to package directory when editing; toggle with "-w|--switch"
SwitchToBuildDirectory=yes
# build package after editing; toggle with "-m|--makepkg"
UseMakepkg=no
# add built package to local repository; toggle with "-r|--repoadd"
UseRepoadd=no


###     Color layout
# default|lightbg|nocolor
ColorMod=default

my .config/pkgman/AUR.conf

tocer wrote:

#===============================================================================
#
#          FILE:  AUR.conf
#
#   DESCRIPTION:  AUR login data for pkgman
#     VARIABLES:  see pkgman manual page
#
#      LOCATION:  $HOME/.config/pkgman/
#       LICENSE:  GPLv2
#         NOTES:  copy /usr/share/pkgman/AUR.conf to $HOME/.config/pkgman/AUR.conf
#       VERSION:  1.0
#===============================================================================


###     AUR settings
AURName=tocer
AURPassword=xxxxxxxxxxxx

Offline

#77 2009-07-21 15:28:58

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

hmm, i cannot reproduce this.
if you like, you can add " -x" to the first line of /usr/bin/pkgman, ie:

#!/bin/bash -x

then run

pkgman wordjoy -C 2> pkgman_output

as you did before and paste pkgman_output somewhere or better mail it to me.
note that the AUR password from AUR.conf is sourced in plain text,
so search for "pass" (pass=/AURPassword=/passwd=) inside this file and delete/change your password.

thanks,
vlad

ps:
or easier - just run

bash -x /usr/bin/pkgman wordjoy -C 2> pkgman_output

no need to edit /usr/bin/pkgman. don't forget to remove your aur password from pkgman_output.

Last edited by DonVla (2009-07-21 16:11:02)

Offline

#78 2009-07-22 11:57:09

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

hi tocer,
pkgman looks inside /var/abs for packages from official repos.  i changed this now to /var/abs/{core,extra,community,testing}.
i missed that you set "LocalPackages=/var/abs/local" in your config.

new release r68:
* some bugfixes
* "--repoadd" and "--Reporemove" now accurately removes old packages from LocalRepository

thanks for your help tocer!

vlad

Last edited by DonVla (2009-07-22 12:04:55)

Offline

#79 2009-07-22 13:26:24

tocer
Member
Registered: 2008-10-23
Posts: 28

Re: pkgman - a bash script for local package and PKGBUILD management

good news!:) thank your hard work.

but I also have a question about '--meta' option. I type command:

pkgman --meta -n myproto

it creates /var/abs/local/myproto diretory and some files. I don't know how to use the myproto metapackage. When I type:

pkgman -n test

I can't find the myproto in proto list. I wish I could add/edit/delete the item of the proto list.

Offline

#80 2009-07-22 14:04:58

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

i don't really understand your problem/question.
"--meta" is an option for creating metapackages, i.e. fake packages, which are only there to install the dependencies mentioned in the "depends" array.
the special thing about "--meta" is that it tries to fetch the packages which are in the "depends" array from http://arm.kh.nu (more about the site in this post http://bbs.archlinux.org/viewtopic.php?id=53665) and moves them to the local repo - when run

pkgman <metapackagename> -Mre

you can directly install them all with

pacman -Sy <metapackagename>

for example here is a metapackage for the last 2.6.29 kernel:

pkgname=meta-kernel26_working
pkgver=2.6.29.4_1
pkgrel=6
pkgdesc="kernel ${pkgver/_/-} metapackage with drivers (nvidia etc)"
arch=(x86_64)
license=('none')
groups=()
depends=('kernel26=2.6.29.4-1' 'kernel26-firmware=2.6.29-1' \
         'nvidia-utils=180.51-1' 'nvidia=180.51-1' 'lib32-nvidia-utils=180.51-1')
source=()
md5sums=()
sha256sums=()

build() {
  echo
  msg "Nothing to build . . ."
  msg "This is only a metapackge!\n"
}

# vim:set ts=2 sw=2 et:

so when you run

pkgman meta-kernel26_working -reM

all specified packages from the depends array are fetched either from the packagename backup directory (if available) or from http://arm.kh.nu/ and moved to the local repo.

vlad

Offline

#81 2009-07-22 14:35:00

tocer
Member
Registered: 2008-10-23
Posts: 28

Re: pkgman - a bash script for local package and PKGBUILD management

I got it. I misunderstand the meaning of "metapackage":(

I don't have any problem now smile thank your detail reply.

Offline

#82 2009-07-24 14:29:29

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

new release r69:
* small bugfixes when listing packages with similar names (e.g. skype4pidgin and skype4pidgin-svn or perl-...)
* curl retries now 5 times if connection is not established

Last edited by DonVla (2009-07-24 14:32:32)

Offline

#83 2009-08-07 18:57:47

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

r75:
* "--cachecopy" does not try to dl sourcefiles when backing up ABS PKGBUILDs.
* some work on package splitting. thnking on how to handle $pkgbase stuff;
   guess i have to wait till %PKGBASE% gets into desc files.
* further internal changes

Last edited by DonVla (2009-08-07 18:59:39)

Offline

#84 2009-08-07 22:38:28

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

release r76: * minor mistakes with "ln" purged

Offline

#85 2009-10-23 00:17:29

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

r79:
* mostly small changes
* "--cleanup" now also removes uninstalled packages from LocalRepository

PS: There is a new pkgman wiki at sf.net:
http://sourceforge.net/apps/mediawiki/p … =Main_Page

Last edited by DonVla (2009-10-23 00:21:22)

Offline

#86 2009-11-08 19:09:29

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

new release r81:
* added AUR v1.6.0 support (use more json)
* small ARM changes ("--rollback")

Offline

#87 2010-03-24 10:55:41

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

new release r85:
* pkgman supports pkg.tar.xz packages
* some code rewrite, bugs purged (hopefully)

Offline

#88 2010-04-02 20:46:30

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: pkgman - a bash script for local package and PKGBUILD management

syth tinyandbig > pkgman tinyandbig -ebs
==> NOTE: You can always leave by pressing Ctrl-c.
==> Choose a file you want to check or edit:

     1    PKGBUILD

==>  To copy a custom file press [a], to create
     a new one press [c], press [s] to switch to
     /root/pkgs/tinyandbig
     to change the src or press [q] to quit.
==>   ----------------------------------------------
==>  q

==>  [g]enerate integrity checksums?
==>   ----------------------------------------------
==>  n

==> Backing up files:

==>  Do you also want to backup the source file?
==>  [y]es or [else] to pass.
==>   ----------------------------------------------
==>  y
==> Making package: tinyandbig 0.1-1 x86_64 (Fri Apr  2 16:49:56 EDT 2010)
==> Retrieving Sources...
  -> Downloading tinyandbiglinux64-0.1.tar.gz...
--2010-04-02 16:49:56--  http://tinyandbig.com/wp-content/uploads/tinyandbig/tinyandbiglinux64-0.1.tar.gz
Resolving tinyandbig.com... 81.169.131.121
Connecting to tinyandbig.com|81.169.131.121|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 132108347 (126M) [application/x-gzip]
Saving to: "tinyandbiglinux64-0.1.tar.gz.part"

100%[======================================>] 132,108,347 7.11M/s   in 20s     

2010-04-02 16:50:16 (6.35 MB/s) - "tinyandbiglinux64-0.1.tar.gz.part" saved [132108347/132108347]

==> Validating source files with md5sums...
    tinyandbiglinux64-0.1.tar.gz ... Passed
==> Creating source package...
  -> Adding PKGBUILD...
  -> Adding tinyandbiglinux64-0.1.tar.gz...
  -> Compressing source package...
==> Source package created: tinyandbig (Fri Apr  2 16:50:24 EDT 2010)

==>  Do you want to tag the backed up src.tar.gz file?
==>  Enter tag or hit [Return] to pass.
==>   ----------------------------------------------
==>  

==> Moving backed up sources to /root/pkgs/tinyandbig/.backup
==> Done!


==> ERROR: There are no tarballs available!

any ideas?


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#89 2010-04-03 11:23:15

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

Hi Stythys
Please mail me the output of "bash -x /usr/bin/pkgman tinyandbig -ebs 2> pkgman_output". Remove your AUR password from the pkgman_output file. It's in plain text.
Have you changed the SRCEXT var, does it work with other packages?

Offline

#90 2010-04-23 00:34:25

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

Hi all,

A new release r113 is out. I tested it for some weeks now and I would say it's stable.

* The most significant new feature is that pkgman now supports building split packages through makepkg.
From the man page:

If a PKGBUILD is split into multiple pkgname packages, then these are stored in the pkgbase backup directory. The pkgname directories are
symlinked to the pkgbase directory inside LocalPackages. Please do not remove these links.

These links are mainly needed for bash completion and for the --list, etc features.
If you already use pkgman and you update to r113, you need to rerun "pkgman --runmefirst".

* Another new feature is the "-t,--template" option. Useful to create a new PKGBUILD and use an existing one as a template.
From man page:

pkgman <packagename> --template <alt. packagename> [--pkgbuildversion <version>] [options]
       This flag uses a given <alt. packagename> source tarball as a template for creating an own PKGBUILD.
       With "-v,--pkgbuildversion" one can specify which version of a backed up <alt. packagename> source tarball to use.
       Without "-v,--pkgbuildversion" the current <alt. packagename> sources are fetched from ABS or AUR - if available.

Eg:

pkgman kernel26-own -t kernel26 -rm

fetch kernel26 PKGBUILD, edit it, make a kernel26-own package and add it to local repository.

* Another new option:

--conf /path/to/alternate/conf/file
           Specify another configuration file.
           Useful if one wants to maintain multiple LocalPackages or LocalRepository directories.

For more information please read the man page.

PS: pkgman now relies on pacman's database (/var/lib/pacman/sync) to get the pkgbase of possibly split packages. So update it frequently to get accurate results - I assume most people do this anyway.

PPS: pkgman now uses ${XDG_CONFIG_HOME}/pkgman or $HOME/.config/pkgman - if first not set - as the default location for its conf files.

Last edited by DonVla (2010-04-23 07:47:59)

Offline

#91 2010-04-28 11:47:20

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

new release r116:
* check inet conection when submitting src tarballs to AUR
* some bugs
* updated manpage on sourceforge

Offline

#92 2010-10-04 00:54:21

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

New shiny release r146:
Changelog
* "--diffversions" uses concurrents search "threads"; new conf file variable "NumberOfConcurrentSearches" - defaults to 5.    Setting this to high brings no gain, it rather slows down the system significantly. It is limited internally to 30.
From the manpage:

NumberOfConcurrentSearches
Set number of parallel search processes when running "pkgman --diffversions". Defaults to 5.
Don't set this value too high as it might significantly slow down the system with no further speed gain.
A value between 10 and 20 is pretty sane. Anyway, the number of possible parallel search processes is limited to 30.

* another new conf file variable : "MakepkgNiceLevel". Sets makepkg nice level when building packages. Not set by default.   Can also be set with "-N|--nice" flag.
From the manpage:

-N, --nice <integer>
Run makepkg with given niceness value. Set this globally with MakepkgNiceLevel in pkgman.conf.

MakepkgNiceLevel
Run makepkg with given niceness value when building packages. Not set by default.
Niceness levels can be integers from -20 to 19 depending on global settings (limits.conf). See "man nice".

* it is possible to choose which package to build with split PKGBUILDs.
* some output layout changes

As always, please read the manual page for more detailed information.

Vlad

PS: Though the manual page says so, it is not needed to rerun "pkgman --runmefirst" again (remained from r116).

Last edited by DonVla (2010-10-04 01:25:12)

Offline

#93 2010-11-07 17:20:35

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

New release r148:
* removed "--switch;-w" and "SwitchToBuildDirectory" conf variable.
* changed $PAGER to "less -RSi"
* added "tree" as optdepend. Shows pkg/ dir entries after building package.
* connect through https to AUR

Last edited by DonVla (2010-11-07 17:20:55)

Offline

#94 2011-02-24 14:24:28

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pkgman - a bash script for local package and PKGBUILD management

New release r166:
* doesn't create package directory if package not available or newly created
* aurcomment for pkgbase (if split pkgs enters AUR)
* PKGBUILD-lib32.proto: uses multilib to build lib32 packages
* substituted "ls ..| wc -l" with bash internal expansion
* file conflict: if package is installed don't show files which would be removed anyway when upgrading package
                    ->  show first if package is installed and only files which belong to other installed packages
* added "shopt -s nullglob" to all expansions with possibly missing files
* pkgman gets AUR tarballs only once
* some internal bugs and performance enhancements
* output layout changes
* updated for AUR 1.8.0

Last edited by DonVla (2011-02-24 14:33:06)

Offline

Board footer

Powered by FluxBB