<br><br><div class="gmail_quote">On Sat, Feb 28, 2009 at 3:41 PM, Louis Lagendijk <span dir="ltr">&lt;<a href="mailto:louis@lagendijk.xs4all.nl">louis@lagendijk.xs4all.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi<br>
In order to better keep track of what I installed, I am trying to build<br>
an RPM package for Sane on my Fedora 10 box.<br>
This fails as the config files do not get installed. This seems to be<br>
caused by the install-becfg target in backend/Makefile.am<br>
<br>
`/home/home1/louis/rpm/BUILD/sane-backends-1.1.0.cvs/backend&#39;<br>
rm<br>
-f /home/home1/louis/rpm/BUILDROOT/sane-backends-1.1.0.cvs-12.fc10.x86_64/usr/lib64/sane/libsane.*<br>
test -z &quot;/etc/sane.d&quot; || /bin/mkdir -p &quot;/etc/sane.d&quot;<br>
test -z &quot;/etc/sane.d/dll.d&quot; || /bin/mkdir -p &quot;/etc/sane.d/dll.d&quot;<br>
NOT overwriting abaton.conf in /etc/sane.d...<br>
NOT overwriting agfafocus.conf in /etc/sane.d...<br>
NOT overwriting apple.conf in /etc/sane.d...<br>
<br>
<br>
I have no idea where to look for the cause. Or am I missing something<br>
obvious? In the makefile I see that the install-becfg is triggered by<br>
install-dat-hook, which in its turn is called by install-data-am which<br>
does  $(MAKE) $(AM_MAKEFLAGS) install-data-hook. So is DESTDIR missing<br>
from AM_MAKEFLAGS? I am afraid I do not know enough of autoconf to<br>
understand all logic involved. Suggestions?</blockquote><div><br>Hmmm, I&#39;ve not had time to work on Fedora&#39;s spec file but it will need some changes to work with at least this automake change.  The recommended practice is for the spec file to pass in the value of DESTDIR; its not sane-backends that sets it.  If Fedora spec would have done that then we&#39;d have been OK.<br>
<br>In their spec file look for:<br><br>%{makeinstall} docdir=%{buildroot}/%{_docdir}/%{name}-%{version}<br><br>replace that with more recommend practice of:<br><br>make DESTDIR=%{buildroo} docdir=%{buildroot}/%{_docdir}/%{name}-%{version} install <br>
<br>If that gives you problems, then try the following:<br><br>%{makeinstall} configdir=%{docdir=%{buildroot}/%{_docdir}/%{name}-%{version} configdir=%{buildroot}/etc/sane.d<br>
<code><br></code></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
As a side-note: RPM barfs when a package name has more than one dash in<br>
it. Would it be possible to change the package version in <a href="http://configure.in" target="_blank">configure.in</a><br>
so it does not contain a dash, e.g. to 1.1.0cvs?</blockquote><div><br>Yep, I run into the same issue.  I tend to modify <a href="http://configure.in">configure.in</a> though and change version # to 1.0.99 (and remove the -cvs) so that if/when Fedora upgrades their RPM&#39;s, my custom RPM will not look newer.<br>
<br>Not sure if others on list feel its OK to remove the dash from &quot;-cvs&quot; to help RPM people out in general though?<br><br>Chris<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
thanks in advance for the help<br>
Louis/insta<br>
<font color="#888888"><br>
<br>
--<br>
sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/sane-devel</a><br>
Unsubscribe: Send mail with subject &quot;unsubscribe your_password&quot;<br>
             to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
</font></blockquote></div><br>