Date: Sun, 29 Jul 2018 21:54:50 -0300 From: "Danilo G. Baio" <dbaio@FreeBSD.org> To: Eitan Adler <lists@eitanadler.com> Cc: FBSD Doc project <doc@freebsd.org> Subject: Re: why does "make install" write to files outside of DESTDIR ? Message-ID: <20180730005449.kaavn42wodrt6ozu@dx240.localdomain> In-Reply-To: <CAF6rxgkz37NiSVk4ZbhQOAsXV3P_hQ_Mzx-2zE_NSrfEv1d7Bw@mail.gmail.com> References: <CAF6rxgmqhMTo_g=dFTAcmsLo1=fXZ3rgd%2Be1MdzZE3W3Bbo4Aw@mail.gmail.com> <CAF6rxgkz37NiSVk4ZbhQOAsXV3P_hQ_Mzx-2zE_NSrfEv1d7Bw@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Tue, Jun 19, 2018 at 06:12:32PM -0700, Eitan Adler wrote:
> On 13 June 2018 at 05:21, Eitan Adler <lists@eitanadler.com> wrote:
> > Steps to reproduce:
> >
> > rm -rf /srv/www/devbox/
> > mkdir /srv/www/devbox/
> > env DESTDIR=/srv/www/devbox/docs/docs make -s all install
> >
> > Expected behavior: no files are written to outside of /srv/www/devbox/docs/docs
> > Actual behavior: /srv/www/devbox/articles and /srv/www/devbox/books exist
> >
> > Why is this? Is there some way to avoid this?
>
> anyone? This is particularly annoying when testing subsets of
> documentation. Is there any variable to set that will work similarly
> to MAKEOBJIRPREFIX from src?
> I'd like to run "make install" from a doc directory and have it
> install to the "expected" place so that browsing documentation from
> the webserver still works.
You should try DOCDIR instead of DESTDIR.
It will create all the structure, see this:
$ rm -rf /tmp/devbox
$ mkdir /tmp/devbox
$ env DESTDIR=/tmp/devbox/doc/doc make ENGLISH_ONLY=yes WEB_ONLY=yes all install
$ tree -d /tmp/devbox
/tmp/devbox
├── articles
│ ├── building-products
│ ├── gjournal-desktop
│ ├── releng
│ ├── vinum
│ └── vm-design
├── books
│ ├── design-44bsd
│ ├── dev-model
│ ├── developers-handbook
│ │ └── sockets
│ └── handbook
│ ├── advanced-networking
│ ├── basics
│ ├── bsdinstall
│ ├── geom
│ ├── mail
│ ├── security
│ └── virtualization
└── doc
└── doc
└── imagelib
└── callouts
23 directories
$ rm -rf /tmp/devbox
$ mkdir /tmp/devbox
$ env DOCDIR=/tmp/devbox/doc/doc make ENGLISH_ONLY=yes WEB_ONLY=yes all install
$ tree -d /tmp/devbox
/tmp/devbox
└── doc
└── doc
├── en -> en_US.ISO8859-1
├── en_US.ISO8859-1
│ ├── articles
│ │ ├── bsdl-gpl
│ │ ├── building-products
│ │ ├── committers-guide
│ │ │ └── imagelib
│ │ │ └── callouts
│ │ ├── contributing
│ │ ├── contributors
│ │ ├── cups
│ │ ├── explaining-bsd
│ │ ├── filtering-bridges
│ │ ├── fonts
│ │ ├── freebsd-questions
│ │ ├── freebsd-releng
│ │ ├── freebsd-update-server
│ │ │ └── imagelib
│ │ │ └── callouts
│ │ ├── geom-class
│ │ ├── gjournal-desktop
│ │ ├── hubs
│ │ ├── ipsec-must
│ │ ├── ldap-auth
│ │ ├── leap-seconds
│ │ ├── linux-emulation
│ │ ├── linux-users
│ │ ├── mailing-list-faq
│ │ ├── nanobsd
│ │ │ └── imagelib
│ │ │ └── callouts
│ │ ├── new-users
│ │ ├── pam
│ │ ├── pgpkeys
│ │ ├── port-mentor-guidelines
│ │ ├── pr-guidelines
│ │ ├── problem-reports
│ │ ├── rc-scripting
│ │ │ └── imagelib
│ │ │ └── callouts
│ │ ├── releng
│ │ ├── remote-install
│ │ │ └── imagelib
│ │ │ └── callouts
│ │ ├── serial-uart
│ │ ├── solid-state
│ │ ├── vinum
│ │ └── vm-design
│ └── books
│ ├── arch-handbook
│ │ └── imagelib
│ │ └── callouts
│ ├── design-44bsd
│ ├── dev-model
│ ├── developers-handbook
│ │ └── sockets
│ ├── faq
│ ├── fdp-primer
│ │ └── imagelib
│ │ └── callouts
│ ├── handbook
│ │ ├── advanced-networking
│ │ ├── basics
│ │ ├── bsdinstall
│ │ ├── geom
│ │ ├── imagelib
│ │ │ └── callouts
│ │ ├── mail
│ │ ├── security
│ │ └── virtualization
│ ├── pmake
│ └── porters-handbook
│ └── imagelib
│ └── callouts
├── faq -> en_US.ISO8859-1/books/faq
└── handbook -> en_US.ISO8859-1/books/handbook
78 directories
Regards
--
Danilo G. Baio (dbaio)
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEORj0UTsjzCy+enIkmpN7LfMuiNcFAlteYdQACgkQmpN7LfMu
iNctIw/+JPE1KhlMyLzAnY0WI15Cjpm6EnZhHgSV/fzBJzhAW82Ar8fgwYEnCygS
2JuBVt/Syh+44MDcKisKsjnQ8G8DakjwEe+n/UgCSi4XVn/K/o1nvFkxOkrVHa/Z
Nb+dSqvMEJRR1zJqsA3FzLXSeY00ZT+3Zba2+lm5HnPqzte3fEUgnHmC8o2svUYb
wahMbk9FZfINDTaoaxxPeyT0Imq82IstOzyjPrXetG9ISxiRmTaDNh49XvHrUG+Y
F4hBxzZHjqw16aX8jvD+nKGAt5EDNDZ8LfUEL9sHp8ppbrXNWYf64KZyoAhEllcd
7qjUHHgMH2pXeF/jp1hsp1TvhA+pdTctJaOHh/5GCfi2s8j6zJymOJrKYQbNNgZM
YpUrZf7kC4Rw4fg7cYnCWlrxIQkaiT7BHP8jm+0nXvAZaUh/l7xSggxnOFdgmTCk
FQrQvu3f5AF2OvjsIhNQVHnKqmbOFV5RwbWZNwkMOigzjOtfR2Ihr6gprf3zsEOJ
5LNZbJAYDvK8+wprwTt8VxN3lNdJedDUCHqzcvxxXv4TIEYoTO6XtDgUnAFFGmjH
3o8rjiAYAJ5Nv5d8+91uzElkJmp1p18xmrTObdkDBEyClL7Hoz0wvCfPhYHUlJwN
Zq+BmHDqQl3hr8lSUMJfWOisY9ZRugHYbTVq4XTpSIqSl0HIJEg=
=QIap
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180730005449.kaavn42wodrt6ozu>
