Re: .dev.YYYY.mmdd hardcoded docdir?

Frantisek Hanzlik <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
It seems as Fedora distros specify "configure" --docdir as
"/usr/share/doc" (without package name) - as You say,
it point to "main root".
Then they puts package docs into %{packagename}-%{version}/
subdirectory - but it is distro own policy (moreover, Fedora
from release 20 did "Unversioned Docdirs" and packages docs
are in "/usr/share/doc/%{packagename}" (without version).
This convention was backported also to Fedora 18 and 19.

Franta Hanzlik

Frediano Ziglio wrote:
> Confirmed, at
> https://gitorious.org/freetds/freetds/source/8780c1f243abef142756bb9caf0062196d48b9d7:doc/Makefile.am#L9-17
> TARGET_DOCDIR uses $(datadir) (which is usually /usr/share) so the problem.
> 
> I'm not sure however about --docdir. Should it point to main root (like
> /usr/share/doc) or specific to project?
> 
> I think you are referring to configure option, in configure I have
> 
> docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
> 
> I think we don't use this as we want to embed the version to this directory
> however looking at my /usr/share/doc directory there is no versions but
> only package name so perhaps the target we use is not right.
> 
> Our spec file say
> 
> The freetds-doc package contains the useguide and reference of FreeTDS
> and can be installed even if FreeTDS main package is not installed
> 
> But this does not say we should be able to install different versions
> 
> Frediano
> 
> 
> 2014-07-05 11:46 GMT+02:00 Frantisek Hanzlik <[email protected]>:
> 
>> A few days ago I wrote here about problems with bsqldb and fisql;
>> now I tried build last git2a830b1 version (because my Fedora 19 has
>> older version 0.91-gitf3ae29d (0a42888 ?) sometimes from November
>> 2013, and I was hoping that new version will be working better).
>> But I have problem with making FreeTDS RPM package - it seems that
>> new git version ignore "--docdir" configure option and always install
>> doc into albeit right "/usr/share/doc/" directory, however here into
>> "freetds-0.92.dev.YYYYmmdd" (where YYYYmmdd is actual date) - though
>> I was specifying "--docdir=/usr/share/doc/freetds-0.92".
>>
>> It is intended, or I'm doing some mistake? IMO docdir (or other
>> package directories) should not depend on current date, but rather
>> on version ev. git subversion only }and should be configurable).
>>
>> Thanks, Franta Hanzlik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.