[arch-general] Installing createrepo/repoview on Arch Linux
David C. Rankin
drankinatty at suddenlinkmail.com
Tue Sep 14 18:37:43 EDT 2010
On 09/14/2010 01:24 PM, David C. Rankin wrote:
> Here is a quick synopsis of what is required to install createrepo on Arch in
> case you need to provide an rpm repository for rpm based distros hosted on your
> Arch server:
>
> AUR Package Summary (in order to build/install):
>
> beecrypt
> rpm (THIS PKG IS ORPHANED, BUT STILL CURRENT FOR rpm-5.1.9)
> yum-metadata-parser (OUT OF DATE -- updated PKGBUILD below)
> python-iniparse
> yum (the 'depends' line in the PKGBUILD must be fixed - see below)
> yum-createrepo (OUT OF DATE -- updated PKGBUILD below)
> kid
> repoview
>
>
> Detailed Build/Install Info:
>
<snip>
>
> Install yum
> http://aur.archlinux.org/packages.php?ID=22976
> (download tarball, untar/ungzip, cd into directory)
> (the 'depends' line in the PKGBUILD must be fixed by changing rpm-org to rpm as
> follows:)
>
> #depends=('python' 'intltool' 'urlgrabber' 'rpm-org' 'python-pysqlite'
> 'yum-metadata-parser' 'python-iniparse')
> depends=('python' 'intltool' 'urlgrabber' 'rpm' 'python-pysqlite'
> 'yum-metadata-parser' 'python-iniparse')
>
For sake of completeness, you will need to patch yum to work with suse rpms.
Here is the patch from the upstream guys. Maybe somebody can incorporate this
into the PKGBUILD:
Yum needs a patch to work with 4.4.3 and beyond (such as your 5.1.9)
Easiest is just adding the enum values, rather than conditionals...
--anders
patch-yum-packages.py
--- yum/packages.py.orig
+++ yum/packages.py
@@ -1353,11 +1353,14 @@
is a pre-requires or a not"""
# FIXME this should probably be put in rpmUtils.miscutils since
# - that's what it is
+ RPMSENSE_PREREQ = (1 << 6)
+ RPMSENSE_SCRIPT_PRE = (1 << 9)
+ RPMSENSE_SCRIPT_POST = (1 << 10)
if flag is not None:
# Note: RPMSENSE_PREREQ == 0 since rpm-4.4'ish
- if flag & (rpm.RPMSENSE_PREREQ |
- rpm.RPMSENSE_SCRIPT_PRE |
- rpm.RPMSENSE_SCRIPT_POST):
+ if flag & (RPMSENSE_PREREQ |
+ RPMSENSE_SCRIPT_PRE |
+ RPMSENSE_SCRIPT_POST):
return 1
return 0
> makepkg -s
> Targets (2): python-pycurl-7.19.0-4 urlgrabber-3.9.1-1
> <snip>
> sudo pacman -U yum-3.2.28-1-x86_64.pkg.tar.xz
<snip>
Now it is:
>
> Done, works fine, enjoy!
>
--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
More information about the arch-general
mailing list