Re: generic debian/rules that creates directories

2014-01-02 Thread T o n g
On Wed, 01 Jan 2014 21:00:18 -0800, Russ Allbery wrote: > There have been several replies to this, but none of them quite tell you > exactly what to do, so let me take a stab at that. > > First, dh_installdirs is not actually useful for solving this particular > problem . . . Thank you, thank y

Re: generic debian/rules that creates directories

2014-01-01 Thread Russ Allbery
Russ Allbery writes: > I guess I should say, for the sake of completeness, that you *can* make > dh_installdirs do this with the -P flag. But I would find that > confusing; I think an explicit install -d is easier to understand. And, > regardless, dh_installdirs isn't normally run before dh_aut

Re: generic debian/rules that creates directories

2014-01-01 Thread Russ Allbery
Russ Allbery writes: > First, dh_installdirs is not actually useful for solving this particular > problem since dh_installdirs creates directories in the package staging > area. Your problem is happening prior to that; make install of the > upstream source into debian/tmp is failing because it's

Re: generic debian/rules that creates directories

2014-01-01 Thread Russ Allbery
T o n g writes: > Is it possible to have a generic debian/rules that creates directories? > The upstream Makefiles was not designed to install into $DESTDIR but > to /, so it assumes /usr/bin exists, while that creates problems for me: > install -s -m 755 autogb /exp

Re: generic debian/rules that creates directories

2014-01-01 Thread Paul Wise
On Thu, Jan 2, 2014 at 12:08 PM, T o n g wrote: > Ok, so I read the manpage of dh_installdirs(1), which I included below. > But still how can I use it to create patch that I can send upstream to > support creating $DESTDIR/usr/bin and so on, as suggested by Paul? The two topics are completely sep

Re: generic debian/rules that creates directories

2014-01-01 Thread T o n g
On Thu, 02 Jan 2014 00:23:42 +0100, Gergely Nagy wrote: >> Is it possible to alter the following `debian/rules` file so that it >> plays nicely with such upstream Makefiles? > > Yes. You want to use dh_installdirs(1). I suggest you read its manpage. > Mind you, you won't need to touch debian/rule

Re: generic debian/rules that creates directories

2014-01-01 Thread Paul Wise
On Thu, Jan 2, 2014 at 6:11 AM, T o n g wrote: > The upstream Makefiles was not designed to install into $DESTDIR but > to /, so it assumes /usr/bin exists, while that creates problems for me: In addition to the solution suggested by Gergely Nagy, please send upstream a patch to support creating

Re: generic debian/rules that creates directories

2014-01-01 Thread Gergely Nagy
T o n g writes: > Hi, > > Is it possible to have a generic debian/rules that creates directories? > > The upstream Makefiles was not designed to install into $DESTDIR but > to /, so it assumes /usr/bin exists, while that creates problems for me: > > install -s -m 755

generic debian/rules that creates directories

2014-01-01 Thread T o n g
Hi, Is it possible to have a generic debian/rules that creates directories? The upstream Makefiles was not designed to install into $DESTDIR but to /, so it assumes /usr/bin exists, while that creates problems for me: install -s -m 755 autogb /export/build/zh-autoconvert/bld/zh- autoconvert