Re: [arch-general] Post-packaging modification tool

2015-04-29 Thread Magnus Therning
On 28 April 2015 at 23:04, Magnus Therning mag...@therning.org wrote:
 On Tue, Apr 28, 2015 at 03:19:25PM -0500, Eli Schwartz wrote:
 On Tue, Apr 28, 2015 at 12:18 PM, Sebastiaan Lokhorst 
 sebastiaanlokho...@gmail.com wrote:

  2015-04-28 18:50 GMT+02:00 Magnus Therning mag...@therning.org:
 
   I have a large set of already packages (300+) that I'd like to make
   some minor modifications to the meta data in.  Since it takes a few
   hours to build them all I'd prefer to avoid dong that.  So, is there
   a tool out there that allows me to make some minor changes to the meta
   data of a package?
  
 
  A package is just a tar.xz, so you can simply unzip it, edit the .PKGINFO
  file, and zip it again. (I think)
 

 Alternatively, if the PKGBUILD is updated makepkg has an option to
 --repackage without redoing build()

 Editing .PKGINFO might be faster, but repackaging is the correct way to
 do it, for however much that's worth.

 That might be the easiest way, unless someone's already written a tool
 that solves the problem.

Unfortunately `pacman -R` won't work.  It will re-run the `package()`
function in the PKGBUILD, meaning that it relies on the packaged SW's
build system (Makefile, or similar) to first install the built stuff
in `$pkgdir`.  Since I only have the packages I can't easily recreate
a complete `$srcdir` without first compiling... so I suppose I'll have
to look into the details of the package format and come up with some
script to modify it directly.

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus


[arch-general] Post-packaging modification tool

2015-04-28 Thread Magnus Therning
I have a large set of already packages (300+) that I'd like to make
some minor modifications to the meta data in.  Since it takes a few
hours to build them all I'd prefer to avoid dong that.  So, is there
a tool out there that allows me to make some minor changes to the meta
data of a package?

To be specific, I'd like to add a `provides` to each and every
package.

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

The right to search for truth implies also a duty; one must not
conceal any part of what one has recognized to be true.
 -- Albert Einstein


pgpWEEC023dYq.pgp
Description: PGP signature


Re: [arch-general] Post-packaging modification tool

2015-04-28 Thread Eli Schwartz
On Tue, Apr 28, 2015 at 12:18 PM, Sebastiaan Lokhorst 
sebastiaanlokho...@gmail.com wrote:

 2015-04-28 18:50 GMT+02:00 Magnus Therning mag...@therning.org:

  I have a large set of already packages (300+) that I'd like to make
  some minor modifications to the meta data in.  Since it takes a few
  hours to build them all I'd prefer to avoid dong that.  So, is there
  a tool out there that allows me to make some minor changes to the meta
  data of a package?
 

 A package is just a tar.xz, so you can simply unzip it, edit the .PKGINFO
 file, and zip it again. (I think)


Alternatively, if the PKGBUILD is updated makepkg has an option to
--repackage without redoing build()

Editing .PKGINFO might be faster, but repackaging is the correct way to
do it, for however much that's worth.

-- Eli Schwartz


Re: [arch-general] Post-packaging modification tool

2015-04-28 Thread Magnus Therning
On Tue, Apr 28, 2015 at 07:18:12PM +0200, Sebastiaan Lokhorst wrote:
 2015-04-28 18:50 GMT+02:00 Magnus Therning mag...@therning.org:
 
  I have a large set of already packages (300+) that I'd like to make
  some minor modifications to the meta data in.  Since it takes a few
  hours to build them all I'd prefer to avoid dong that.  So, is there
  a tool out there that allows me to make some minor changes to the meta
  data of a package?
 
 
 A package is just a tar.xz, so you can simply unzip it, edit the .PKGINFO
 file, and zip it again. (I think)

I've opened one and taken a look inside and there are checksums for
all files in it, including the .PKGINFO.  So I'm guessing that just
editing the .PKGINFO isn't enough.  Not that much of a problem though,
but if someone else has already solved it I'd rather borrowing that
solution :)

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

As long as there are ill-defined goals, bizarre bugs, and unrealistic
schedules, there will be Real Programmers willing to jump in and Solve The
Problem, saving the documentation for later.  Long live Fortran!
 -- Ed Post


pgpDz6AD2eN9j.pgp
Description: PGP signature


Re: [arch-general] Post-packaging modification tool

2015-04-28 Thread Magnus Therning
On Tue, Apr 28, 2015 at 03:19:25PM -0500, Eli Schwartz wrote:
 On Tue, Apr 28, 2015 at 12:18 PM, Sebastiaan Lokhorst 
 sebastiaanlokho...@gmail.com wrote:
 
  2015-04-28 18:50 GMT+02:00 Magnus Therning mag...@therning.org:
 
   I have a large set of already packages (300+) that I'd like to make
   some minor modifications to the meta data in.  Since it takes a few
   hours to build them all I'd prefer to avoid dong that.  So, is there
   a tool out there that allows me to make some minor changes to the meta
   data of a package?
  
 
  A package is just a tar.xz, so you can simply unzip it, edit the .PKGINFO
  file, and zip it again. (I think)
 
 
 Alternatively, if the PKGBUILD is updated makepkg has an option to
 --repackage without redoing build()
 
 Editing .PKGINFO might be faster, but repackaging is the correct way to
 do it, for however much that's worth.

That might be the easiest way, unless someone's already written a tool
that solves the problem.

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

Any fool can write code that a computer can understand.  Good programmers
write code that humans can understand.
 -- Martin Fowler


pgpi71fcvkpaA.pgp
Description: PGP signature


Re: [arch-general] Post-packaging modification tool

2015-04-28 Thread Sebastiaan Lokhorst
2015-04-28 18:50 GMT+02:00 Magnus Therning mag...@therning.org:

 I have a large set of already packages (300+) that I'd like to make
 some minor modifications to the meta data in.  Since it takes a few
 hours to build them all I'd prefer to avoid dong that.  So, is there
 a tool out there that allows me to make some minor changes to the meta
 data of a package?


A package is just a tar.xz, so you can simply unzip it, edit the .PKGINFO
file, and zip it again. (I think)