rpmbuild - change sysconfdir

Reindl Harald h.reindl at thelounge.net
Mon Sep 14 08:49:47 UTC 2015



Am 14.09.2015 um 10:15 schrieb arnaud gaboury:
> On Mon, Sep 14, 2015 at 10:04 AM Adam Williamson
> <adamwill at fedoraproject.org <mailto:adamwill at fedoraproject.org>> wrote:
>
>     On Mon, 2015-09-14 at 09:52 +0200, arnaud gaboury wrote:
>      > For some practical reason, I want sysconfdir to be /etc/R, and not
>      > the
>      > default /etc
>      >
>      > Here is what I did:
>      >
>      > %build
>      > .....
>      > mkdir -p {_builddir}/R-%{version}/etc/R
>      > .....
>      > %configure
>      >      --sysconfdir=/etc/R
>      > ..........
>      >
>      > make throw me an error:
>      >  --sysconfdir=/etc/R: No such file or directory
>
>     You didn't put a \ at the end of the '%configure' line, so it's trying
>     to interpet '--sysconfdir=/etc/R' as a command in itself?
>
> Sorry, it was a typo. I did put a backslash indeed:
>
> %configure \
>       --sysconfdir=/etc/R \
>      --with-system-tre \

well, the buildroot is empty at the begin and your special folder is not 
created automatically, so start your build section by doing so

%build
mkdir %{buildroot}/etc/R

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20150914/82bd1f7d/attachment.sig>


More information about the devel mailing list