Author Topic: New packager guide  (Read 9307 times)

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #30 on: July 13, 2010, 08:18:28 PM »
I changed the post to posttrans for the mkrepo - and then it work fine when installing (here at least).

..great!

I think I have missed something about gbd, is this Gnu Debugger? What is it used for?

I'll gladly add it to the thunar - what is the commandline for build all in this case?

cheers,
MBantz

One of the scripts in the pkgutils package is gbd..  it creates the local repos packagelists automatically using genbasedir.  Having it run from a context menu if the build completes successfully would automatically update the local repo's package lists so that synaptic could then see the newly built package after a reload.

the command would be rpm -ba %f && gbd  ...for KDE the modification would be made in the build-spec.desktop file in the package's source tar.


However, it might also be slightly annoying because of the time it takes to run every time a package is built successfully; perhaps an option with and without it would be better or just an option for it by itself  ???

It was just an idea that I figured I would throw out there and let the group decide..
« Last Edit: July 13, 2010, 08:34:08 PM by travisn000 »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: New packager guide
« Reply #31 on: July 14, 2010, 05:32:06 AM »
If you are building more than one RPM, you will be regenerating new pkglists with every one you build, but if gbd is available by right click > choose > gbd, then the pkglists can be generated only the once. (Just my opinion)

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: New packager guide
« Reply #32 on: July 14, 2010, 07:03:02 PM »
If anyone uses rmvpkg you've noticed that it doesent works.
I fixed it (i think :) so it can be updated in package.

please test it, and then someone can update srpm.

i changed only the cut command params:
Code: [Select]
p=$(echo "$f" | cut -d " " -f 3)
Regards



Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #33 on: July 15, 2010, 12:06:40 AM »
If anyone uses rmvpkg you've noticed that it doesent works.
I fixed it (i think :) so it can be updated in package.

please test it, and then someone can update srpm.

..I think Martin has the most recent SRPM  ???

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: New packager guide
« Reply #34 on: July 15, 2010, 05:38:15 AM »
gbd is not working on my system (LXDE using thunar). Is anyone other than me having a problem?

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: New packager guide
« Reply #35 on: July 15, 2010, 11:18:25 AM »
If anyone uses rmvpkg you've noticed that it doesent works.
I fixed it (i think :) so it can be updated in package.

please test it, and then someone can update srpm.

..I think Martin has the most recent SRPM  ???

oh, no sorry, I was terribly busy so I just checked the change and didn't have time to finish a new build. Have more time tonight - but eventually it's just a change from post to posttrans,

let me know if I should fix it,

cheers,
MBantz

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #36 on: July 18, 2010, 06:51:00 PM »
gbd is not working on my system (LXDE using thunar). Is anyone other than me having a problem?

..just tested this; works fine here (kde)!?


If anyone uses rmvpkg you've noticed that it doesent works.
I fixed it (i think :) so it can be updated in package.

please test it, and then someone can update srpm.

..I can confirm that the current release does not work properly; I will test your fix and add it to the new package.

EDIT:  the rmvpkg fix works great; it will be in the next release
« Last Edit: July 18, 2010, 07:24:55 PM by travisn000 »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: New packager guide
« Reply #37 on: July 18, 2010, 06:59:41 PM »
Okay, then it must be my system. Thanks, Travis.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: New packager guide
« Reply #38 on: July 22, 2010, 04:00:44 PM »
Just noticed that my additions for repackaging several compression types to xz and replacing bz2 with xz in the thunar section as well as extracting the troublesome Fedora srpms is not in the 0.1.5 version, is it possible that the additions can be added again? (I've sent the additions to dropbox a good while ago and it is installed - guess it is in th 0.1.4 version then),

cheers,
MBantz

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #39 on: July 22, 2010, 08:56:24 PM »
..the 1.5 that I'm working on has all the thunar stuff from 1.4, along with updated mkrepo & rmvpkg. 

I still am not getting mkrepo to run automatically at install though.  The dialog for user works, but that is it; I think the issue is with using su/gksu/kdesu to change users.. I've been pretty busy, but thought I might modify it to let it run as root and then chown the files..  just haven't gotten around to it.

Here is what I'm working with at the moment:
http://dl.dropbox.com/u/2425248/pkgutils-0.1.5-1travisn0002010.src.rpm

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: New packager guide
« Reply #40 on: July 23, 2010, 07:57:15 AM »
I sent pkgutils 0.1.4-5 to dropbox a while ago, and just found it in srpms.updates,

this srpm has the xz and repackaging utils http://ftp.heanet.ie/pub/pclinuxos/apt/pclinuxos/2010/SRPMS.updates/pkgutils-0.1.4-5pclos2010.src.rpm

Question is how to merge the two specs now? And also why we have different versions lying around?

If we get more pclinux specific and maintained programs/scripts we should be thinking about implementing a git or svn repository,

best wishes,
MBantz

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #41 on: July 23, 2010, 08:41:34 AM »
I'll combine the two.. 

as far as svn/git, Cindy had talked about this awhile ago; I'm not sure what came of it ???

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: New packager guide
« Reply #42 on: July 24, 2010, 09:42:41 AM »
I think I have everything working / updated for the 1.5 release; please test thoroughly and let me know of any needed changes!  ;D

SRPM:
http://dl.dropbox.com/u/2425248/pkgutils-0.1.5-1travisn0002010.src.rpm

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: New packager guide
« Reply #43 on: July 24, 2010, 04:43:39 PM »
I'll combine the two.. 

as far as svn/git, Cindy had talked about this awhile ago; I'm not sure what came of it ???

If we want to setup svn/git or cvs here a nice free hosting:

Quote
These are the services you can get with TuxFamily. Only one requirement: be a free (as in free speech) project.
    *    Web hosting (PHP5 is supported)
    *    MySQL and PostgreSQL databases
    *    CVS repositories
    *    Subversion repositories
    *    GIT repositories
    *    Mailing-lists
    *    Manage domain names (DNS hosting) - registration fees are still at your charge
    *    POP accounts and mail redirects for your domain
    *    Download area of 1 GB, can be increased if you need more space
    *    100 MB quota for all groups, not including the download area, can be increased if you need more space
    *    Handling of your data through FTP, FTPS (FTP over SSL), SSH and SFTP

Right now, 2842
 users and 2285
 projects trust the TuxFamily.org free hosting services.

I we agree to apply for this, i volunteer to take this task on me



Offline maik3531

  • Full Member
  • ***
  • Posts: 129
Re: New packager guide
« Reply #44 on: August 01, 2010, 12:55:44 PM »
Is it also
Code: [Select]
p=$(echo "$f" | cut -d " " -f 3)or
Code: [Select]
p=$(echo "$f" | cut -d " " -f 1)
because when I write my packages from the Synaptic history (Chrnoik) in an empty *. remove files it is only possible with "(echo "$f" | cut -d " " -f 1)"

Example: Remove packages which have a lot I want to. But I would not want all gather together in synaptic so I create a blank file and just copy *. remove the content from the course.

The content could then look like this:
Code: [Select]
Commit Log for Sat Jul 31 20:13:33 2010


Die folgenden Pakete wurden installiert:
aeskulap
dcmtk
emacs
emacs-common
erlang-appmon
erlang-asn1
erlang-base
erlang-common_test
erlang-compiler
erlang-cosEvent
erlang-cosEventDomain
erlang-cosFileTransfer
erlang-cosNotification
erlang-cosProperty
erlang-cosTime
erlang-cosTransactions
erlang-crypto
erlang-debugger
erlang-devel
erlang-dialyzer
erlang-docbuilder
erlang-edoc
erlang-emacs
erlang-erl_docgen
erlang-erl_interface
erlang-esdl
erlang-esdl-devel
erlang-et
erlang-eunit
erlang-gs
erlang-hipe
erlang-ic
erlang-inets
erlang-inviso
erlang-jinterface
erlang-manpages
erlang-megaco
erlang-mnesia
erlang-observer
erlang-odbc
erlang-orber
erlang-os_mon
erlang-otp_mibs
erlang-parsetools
erlang-percept
erlang-pman
erlang-public_key
erlang-reltool
erlang-runtime_tools
erlang-snmp
erlang-ssh
erlang-ssl
erlang-stack
erlang-syntax_tools
erlang-test_server
erlang-toolbar
erlang-tools
erlang-tv
erlang-typer
erlang-webtool
erlang-wx
erlang-xmerl
libSDL_gfx15-devel
libSDL_image-devel
libSDL_mixer1.2-devel
libSDL_net-devel
libSDL_sound1.0-devel
libSDL_ttf2.0-devel
libmikmod-devel
libmodplug-devel
libnas2-devel
libspeex1-devel
mesa-common-devel
povray
wings3d
wings3d-povray






« Last Edit: August 01, 2010, 12:58:52 PM by maik3531 »
Please excuse my English