[horde] Horde_Token
Thomas Spuhler
thomas at btspuhler.com
Fri Aug 5 05:00:22 UTC 2011
On Thursday, August 04, 2011 09:48:36 pm Vilius Šumskas wrote:
> Sveiki,
>
> Friday, August 5, 2011, 7:38:14 AM, you wrote:
> > On Monday, August 01, 2011 10:30:56 pm Gunnar Wrobel wrote:
> >> Quoting Thomas Spuhler <thomas at btspuhler.com>:
> >> > On Sunday, July 31, 2011 09:11:13 pm you wrote:
> >> >> Hi Thomas,
> >> >>
> >> >> Quoting Thomas Spuhler <thomas at btspuhler.com>:
> >> >> > Gunnar:
> >> >> > I am trying to package Horde_Token for Mageia and then Mandriva.
> >> >> > But something withe one of the file locations seem to be wrong
> >> >> > The RPMBUILD puts this file into
> >> >> > /usr/share/pear/tests/Horde_Token/migration/1_horde_token_base_tabl
> >> >> > es. php
> >> >
> >> > Sorry, it was late. Its actually in:
> >> >
> >> > /usr/share/pear/data/Horde_Token/migration/1_horde_token_base_tables.p
> >> > hp
> >> >
> >> > which looks correct..
> >> > but when trying to install it I still get:
> >> >
> >> > $ rpm -ivh php-pear-Horde_Token-1.0.2-1.mga2.noarch.rpm
> >> >
> >> > error: Failed dependencies:
> >> > pear(tests/migration/Horde/Token/1_horde_token_base_tables.php
> >> > ) is
> >> >
> >> > needed by php-pear-Horde_Token-1.0.2-1.mga2.noarch
> >> >
> >> > I have no idea where it pulls this information
> >>
> >> Sorry, I don't think I can help either. I'm not that much into RPM and
> >> the error is clearly issued by RPM. The string
> >> "pear(tests/migration/Horde/Token/1_horde_token_base_tables.php)" does
> >> not make any sense to me and I cannot relate it to the PEAR package we
> >> provide.
> >>
> >> Cheers,
> >>
> >> Gunnar
> >>
> >> >> > but then when installing the rpm, it expects it somewhere else.
> >> >> >
> >> >> > error: Failed dependencies:
> >> >> > pear(tests/migration/Horde/Token/1_horde_token_base_tables.
> >> >> > php ) is
> >> >> >
> >> >> > needed by php-pear-Horde_Token-1.0.2-1.mga2.noarch
> >> >>
> >> >> The file is marked as role="data" in the package.xml of the package:
> >> >>
> >> >> <file name="1_horde_token_base_tables.php" role="data" />
> >> >>
> >> >> https://github.com/horde/horde/blob/master/framework/Token/package.xm
> >> >> l#L 319
> >> >>
> >> >> While I have no idea on the way you structure the package when being
> >> >> installed in you distribution, the path
> >> >> "/usr/share/pear/tests/" sounds more like role="test" and would
> >> >> clearly be wrong. This is definitely a packaging error that happens
> >> >> on your side. I recently helped packaging for Debian and the db
> >> >> migrations work fine there. A good deal of the Debian packaging
> >> >> efforts are also available from our repository:
> >> >>
> >> >>
> >> >> https://github.com/horde/horde/tree/master/components/data/distribute
> >> >> /de bia n
> >> >>
> >> >> "components" is the packaging helper in that case. It is capable of
> >> >> deriving package definitions from the packages on pear.horde.org
> >> >> using a simple template based approach.
> >> >>
> >> >> Packaging Horde 4 should be discussed on the Horde mailing list
> >> >> "horde at lists.horde.org" though. Please send the next round of
> >> >> questions - if any - there. Thanks! And also thanks for packing this!
> >> >>
> >> >> Gunnar
> >> >>
> >> >> > it's the same with version 1.1.0
> >> >> > You are listed as one of the lead developers for this package.
> >> >> > I would appreciate some guidance.
> >> >> >
> >> >> > --
> >> >> > Thomas
> >> >
> >> > --
> >> > Thomas
> >> > --
> >> > Horde mailing list
> >> >
> >> > To unsubscribe, mail: horde-unsubscribe at lists.horde.org
> >
> > I am still asking for help. I just cannot figure out where these
> > <Requires> come from when I build the RPM. I am attaching the build log
> > and it clearly gives Provides and a Requires of a file and they are at
> > different location. I see this in a few of the php-pear-Horde packages.
> > Of course, I can do a mv of the files, but this is an ugly hack.
> >
> >
> > + /usr/share/spec-helper/check_elf_files
> > Processing files: php-pear-Horde_Token-1.0.2-1.mga2.noarch
> > Finding Provides: /usr/lib/rpm/mageia/filter.sh ' ' ' '
> > '/home/spuhler/KOLAB-2.3.2/PHP/php-pear-Horde_Token/BUILDROOT/php-pear-
> > Horde_Token-1.0.2-1.mga2.x86_64' /usr/lib/rpm/mageia/find-provides
> > Finding Requires: /usr/lib/rpm/mageia/filter.sh ' ' ' '
> > '/home/spuhler/KOLAB-2.3.2/PHP/php-pear-Horde_Token/BUILDROOT/php-pear-
> > Horde_Token-1.0.2-1.mga2.x86_64' /usr/lib/rpm/mageia/find-requires
> > /home/spuhler/KOLAB-2.3.2/PHP/php-pear-Horde_Token/BUILDROOT/php-pear-
> > Horde_Token-1.0.2-1.mga2.x86_64 x86_64
> >
> >
> >
> > Provides: php-pear-Horde_Token
> > pear(data/Horde_Token/migration/1_horde_token_base_tables.php)
> > ************************************************************
> >
> >
> > pear(Horde/Token/Base.php) pear(Horde/Token/Exception/Expired.php)
> > pear(Horde/Token/Exception/Invalid.php) pear(Horde/Token/Exception.php)
> > pear(Horde/Token/Exception/Used.php) pear(Horde/Token/File.php)
> > pear(Horde/Token/Null.php) pear(Horde/Token.php)
> > pear(Horde/Token/Sql.php) pear(Horde/Token/Translation.php)
> > pear(tests/Horde_Token/Horde/Token/AllTests.php)
> > pear(tests/Horde_Token/Horde/Token/Autoload.php)
> > pear(tests/Horde_Token/Horde/Token/BackendTestCase.php)
> > pear(tests/Horde_Token/Horde/Token/Unit/FileTest.php)
> > pear(tests/Horde_Token/Horde/Token/Unit/SqlTest.php)
> > Requires(interp): /bin/sh /bin/sh
> > Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> > rpmlib(CompressedFileNames) <= 3.0.4-1
> > Requires(post): /bin/sh
> > Requires(postun): /bin/sh
> >
> > Requires: pear(Horde/Test/AllTests.php) pear(Horde/Test/Autoload.php)
> > pear(tests/migration/Horde/Token/1_horde_token_base_tables.php)
> > ***********************************************************
> >
> > Conflicts: php-pear-Horde_Exception = 2.0.0
> > php-pear-Horde_Translation = 2.0.0
> > php-pear-Horde_Url = 2.0.0 php-pear-Horde_Util = 2.0.0
> > Obsoletes: horde-token
> > Checking for unpackaged file(s): /usr/lib/rpm/check-files
> > /home/spuhler/KOLAB-2.3.2/PHP/php-pear-Horde_Token/BUILDROOT/php-pear-
> > Horde_Token-1.0.2-1.mga2.x86_64
> > Wrote:
> > /home/spuhler/KOLAB-2.3.2/PHP/php-pear-Horde_Token/SRPMS/php-pear-
> > Horde_Token-1.0.2-1.mga2.src.rpm
> > Wrote:
> > /home/spuhler/KOLAB-2.3.2/PHP/php-pear-Horde_Token/RPMS/noarch/php-
> > pear-Horde_Token-1.0.2-1.mga2.noarch.rpm
> > Executing(%clean): /bin/sh -e /home/spuhler/KOLAB-2.3.2/PHP/php-pear-
> > Horde_Token/BUILDROOT/rpm-tmp.N7bJ2U
> > + umask 022
> > + cd /home/spuhler/KOLAB-2.3.2/PHP/php-pear-Horde_Token/BUILD
> > + cd php-pear-Horde_Token-1.0.2
> > + rm -rf
> > /home/spuhler/KOLAB-2.3.2/PHP/php-pear-Horde_Token/BUILDROOT/php-
> > pear-Horde_Token-1.0.2-1.mga2.x86_64
>
> How do you built your .spec file? Seems like bad package.xml -> .spec
> conversion to me.
I use pear make-rpm-spec from the tgz file. It looks very similar to the one
SUSE has.
I can provide the spec on pastebin
Look at the link, the log shows the Provides and the Requires for
Horde_SyncMl and SyncML is spelled different in them Ml and ML
http://pastebin.mandriva.com/23342
--
Thomas
More information about the horde
mailing list