[arch-general] Any way to change .PKGINFO post build w/o Rebuilding?

Gesh gesh at gesh.uni.cx
Wed Feb 26 06:45:55 EST 2014


On February 26, 2014 10:52:43 AM GMT+02:00, Karol Blazewicz <karol.blazewicz at gmail.com> wrote:
>On Wed, Feb 26, 2014 at 9:35 AM, Emil Lundberg
><lundberg.emil at gmail.com> wrote:
>> I don't mean to be rude, but have you tried it? Pacman packages are
>> tar.gz archives, so my guess is it's possible
>>
>> /Emil.
>>
>> On Wed, Feb 26, 2014 at 4:13 PM, David C. Rankin
>> <drankinatty at suddenlinkmail.com> wrote:
>>> All,
>>>
>>>   I patched tdebase for the logind-multiseat patch as was applied to
>>> kde-workspace for Arch kde4. Doing so, I forgot to change the
>provides=
>>> replaces= information. Now the new package will not install due to
>every file
>>> conflicting with an existing file. The new file is named
>'tde-tdebase-systemd'
>>> and it replaces a package named 'tde-tdebase'. Can I decompress the
>package and
>>> manually edit the .PKGINFO file and then recompress the file and
>have it work?
>>> The package is unsigned if that makes any difference. What is
>currently in the
>>> .PKGINFO file is:
>>>
>>> # Generated by makepkg 4.1.2
>>> # using fakeroot version 1.20
>>> # Wed Feb 26 06:24:01 UTC 2014
>>> pkgname = tde-tdebase-systemd
>>> pkgver = R14preRC1-1
>>> pkgdesc = Trinity Desktop Enviroment base components - TDE upstream
>GIT
>>> url = http://scm.trinitydesktop.org/scm/git/tdebase
>>> builddate = 1393395841
>>> packager = David C. Rankin < drankinatty at gmail dot com >
>>> size = 78513152
>>> arch = i686
>>> license = GPL
>>> replaces = trinity-tdebase
>>> <snip>
>>> provides = tdebase
>>> provides = tde-tdebase
>>>
>>>   I think the change needed is:
>>>
>>> replaces = tde-tdebase
>>> replaces = trinity-tdebase
>>> provides = tdebase
>>> provides = tde-tdebase
>>>
>>>   Does this have a chance of working or should I just bite the
>bullet and
>>> rebuild the package?
>>>
>>> --
>>> David C. Rankin, J.D.,P.E.
>
>Try https://bbs.archlinux.org/viewtopic.php?pid=1285524

A naïve reading of [1] suggests that makepkg -R should do the trick.
However, as I'm away from my computer, I can't test
this.
Gesh
[1] - https://www.archlinux.org/pacman/makepkg.8.html


More information about the arch-general mailing list