All of lore.kernel.org
 help / color / mirror / Atom feed
* can-utils: install in /usr/bin instead of /usr/local/bin ??
@ 2014-01-23 13:58 Oliver Hartkopp
  2014-01-23 14:00 ` Marc Kleine-Budde
  0 siblings, 1 reply; 8+ messages in thread
From: Oliver Hartkopp @ 2014-01-23 13:58 UTC (permalink / raw)
  To: Marc Kleine-Budde, Yegor Yefremov; +Cc: linux-can@vger.kernel.org

Hi Marc,

when can-utils are now intended to be packaged for Debian:

Does it make sense to move the installation directory to /usr/bin instead of
the current /usr/local/bin target??

Regards,
Oliver

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-utils: install in /usr/bin instead of /usr/local/bin ??
  2014-01-23 13:58 can-utils: install in /usr/bin instead of /usr/local/bin ?? Oliver Hartkopp
@ 2014-01-23 14:00 ` Marc Kleine-Budde
  2014-01-23 14:07   ` Yegor Yefremov
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Kleine-Budde @ 2014-01-23 14:00 UTC (permalink / raw)
  To: Oliver Hartkopp, Yegor Yefremov; +Cc: linux-can@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

On 01/23/2014 02:58 PM, Oliver Hartkopp wrote:
> Hi Marc,
> 
> when can-utils are now intended to be packaged for Debian:
> 
> Does it make sense to move the installation directory to /usr/bin instead of
> the current /usr/local/bin target??

No, Uwe will probably use ./configure --prefix=/usr

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-utils: install in /usr/bin instead of /usr/local/bin ??
  2014-01-23 14:00 ` Marc Kleine-Budde
@ 2014-01-23 14:07   ` Yegor Yefremov
  2014-01-23 14:12     ` Marc Kleine-Budde
  0 siblings, 1 reply; 8+ messages in thread
From: Yegor Yefremov @ 2014-01-23 14:07 UTC (permalink / raw)
  To: Marc Kleine-Budde
  Cc: Oliver Hartkopp, linux-can@vger.kernel.org, Alexander GQ Gerasiov,
	Nikita

On Thu, Jan 23, 2014 at 3:00 PM, Marc Kleine-Budde <mkl@pengutronix.de> wrote:
> On 01/23/2014 02:58 PM, Oliver Hartkopp wrote:
>> Hi Marc,
>>
>> when can-utils are now intended to be packaged for Debian:
>>
>> Does it make sense to move the installation directory to /usr/bin instead of
>> the current /usr/local/bin target??
>
> No, Uwe will probably use ./configure --prefix=/usr

CC Alexander and Nikita.

Yegor

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-utils: install in /usr/bin instead of /usr/local/bin ??
  2014-01-23 14:07   ` Yegor Yefremov
@ 2014-01-23 14:12     ` Marc Kleine-Budde
  2014-01-23 16:26       ` Alexander GQ Gerasiov
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Kleine-Budde @ 2014-01-23 14:12 UTC (permalink / raw)
  To: Yegor Yefremov
  Cc: Oliver Hartkopp, linux-can@vger.kernel.org, Alexander GQ Gerasiov,
	Nikita

[-- Attachment #1: Type: text/plain, Size: 955 bytes --]

On 01/23/2014 03:07 PM, Yegor Yefremov wrote:
> On Thu, Jan 23, 2014 at 3:00 PM, Marc Kleine-Budde <mkl@pengutronix.de> wrote:
>> On 01/23/2014 02:58 PM, Oliver Hartkopp wrote:
>>> Hi Marc,
>>>
>>> when can-utils are now intended to be packaged for Debian:
>>>
>>> Does it make sense to move the installation directory to /usr/bin instead of
>>> the current /usr/local/bin target??
>>
>> No, Uwe will probably use ./configure --prefix=/usr
> 
> CC Alexander and Nikita.

I consider the plain Makefile legacy, so using autotools for the debian
package is the way to go. The standard way to configure the installation
prefix is: ./configure --prefix=/usr

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-utils: install in /usr/bin instead of /usr/local/bin ??
  2014-01-23 14:12     ` Marc Kleine-Budde
@ 2014-01-23 16:26       ` Alexander GQ Gerasiov
  2014-01-23 20:32         ` Marc Kleine-Budde
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander GQ Gerasiov @ 2014-01-23 16:26 UTC (permalink / raw)
  To: Marc Kleine-Budde
  Cc: Yegor Yefremov, Oliver Hartkopp, linux-can@vger.kernel.org,
	Nikita

Thu, 23 Jan 2014 15:12:07 +0100
Marc Kleine-Budde <mkl@pengutronix.de> wrote:

> On 01/23/2014 03:07 PM, Yegor Yefremov wrote:
> > On Thu, Jan 23, 2014 at 3:00 PM, Marc Kleine-Budde
> > <mkl@pengutronix.de> wrote:
> >> On 01/23/2014 02:58 PM, Oliver Hartkopp wrote:
> >>> Hi Marc,
> >>>
> >>> when can-utils are now intended to be packaged for Debian:
> >>>
> >>> Does it make sense to move the installation directory to /usr/bin
> >>> instead of the current /usr/local/bin target??
> >>
> >> No, Uwe will probably use ./configure --prefix=/usr
> > 
> > CC Alexander and Nikita.
> 
> I consider the plain Makefile legacy, so using autotools for the
> debian package is the way to go. The standard way to configure the
> installation prefix is: ./configure --prefix=/usr

Well... I seen some strange behavior when tried to use autohell
So I use plain Makefile in my not-yet-uploaded-into-Debian package.

If you want to get rid of it, I'd recommend you remove it completely
from git, rename auto* to common name (for now Makefile called
GNUmakefile or something like that) and remove from git any
autogenerated files.
So can I do auto*/configure/make, than make distclean and there will
be no *changed* files (if there are any *new* files - it's Ok).

Otherwise package maintainers have some headache in writing correct
build scripts.


-- 
Regards, Alexander.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-utils: install in /usr/bin instead of /usr/local/bin ??
  2014-01-23 16:26       ` Alexander GQ Gerasiov
@ 2014-01-23 20:32         ` Marc Kleine-Budde
  2014-01-23 21:46           ` Alexander GQ Gerasiov
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Kleine-Budde @ 2014-01-23 20:32 UTC (permalink / raw)
  To: Alexander GQ Gerasiov
  Cc: Yegor Yefremov, Oliver Hartkopp, linux-can@vger.kernel.org,
	Nikita

[-- Attachment #1: Type: text/plain, Size: 2131 bytes --]

On 01/23/2014 05:26 PM, Alexander GQ Gerasiov wrote:
> Thu, 23 Jan 2014 15:12:07 +0100
> Marc Kleine-Budde <mkl@pengutronix.de> wrote:
> 
>> On 01/23/2014 03:07 PM, Yegor Yefremov wrote:
>>> On Thu, Jan 23, 2014 at 3:00 PM, Marc Kleine-Budde
>>> <mkl@pengutronix.de> wrote:
>>>> On 01/23/2014 02:58 PM, Oliver Hartkopp wrote:
>>>>> Hi Marc,
>>>>>
>>>>> when can-utils are now intended to be packaged for Debian:
>>>>>
>>>>> Does it make sense to move the installation directory to /usr/bin
>>>>> instead of the current /usr/local/bin target??
>>>>
>>>> No, Uwe will probably use ./configure --prefix=/usr
>>>
>>> CC Alexander and Nikita.
>>
>> I consider the plain Makefile legacy, so using autotools for the
>> debian package is the way to go. The standard way to configure the
>> installation prefix is: ./configure --prefix=/usr
> 
> Well... I seen some strange behavior when tried to use autohell

What kind of strange behaviour?

> So I use plain Makefile in my not-yet-uploaded-into-Debian package.
> 
> If you want to get rid of it, I'd recommend you remove it completely
> from git, rename auto* to common name (for now Makefile called
> GNUmakefile or something like that) and remove from git any
> autogenerated files.

From the GNU make info page:
""By default, when `make' looks for the makefile, it tries the following
names, in order: `GNUmakefile', `makefile' and `Makefile'.""

So GNUmakefile has a higher priority as Makefile.
There aren't any auto generated files in the git.

> So can I do auto*/configure/make, than make distclean and there will
> be no *changed* files (if there are any *new* files - it's Ok).

Just call:

./autogen.sh
./configure
make

Should work out of the box.

> Otherwise package maintainers have some headache in writing correct
> build scripts.

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-utils: install in /usr/bin instead of /usr/local/bin ??
  2014-01-23 20:32         ` Marc Kleine-Budde
@ 2014-01-23 21:46           ` Alexander GQ Gerasiov
  2014-01-23 21:49             ` Marc Kleine-Budde
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander GQ Gerasiov @ 2014-01-23 21:46 UTC (permalink / raw)
  To: Marc Kleine-Budde
  Cc: Yegor Yefremov, Oliver Hartkopp, linux-can@vger.kernel.org,
	Nikita

Thu, 23 Jan 2014 21:32:58 +0100
Marc Kleine-Budde <mkl@pengutronix.de> wrote:
> > So I use plain Makefile in my not-yet-uploaded-into-Debian package.
> > 
> > If you want to get rid of it, I'd recommend you remove it completely
> > from git, rename auto* to common name (for now Makefile called
> > GNUmakefile or something like that) and remove from git any
> > autogenerated files.
> 
> From the GNU make info page:
> ""By default, when `make' looks for the makefile, it tries the
> following names, in order: `GNUmakefile', `makefile' and `Makefile'.""
> 
> So GNUmakefile has a higher priority as Makefile.
Oh, didn't knew that. Ok.

> There aren't any auto generated files in the git.
Really strange, just tried to reproduce this and didn't find any
problems. May be I confuse can-utils with another code, I packaged on
the holiday, dont know =\

> Just call:
> 
> ./autogen.sh
> ./configure
> make

In my case there will be just

#!/usr/bin/make -f
%:
        dh $@ --with autoreconf

in debian/rules :)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-utils: install in /usr/bin instead of /usr/local/bin ??
  2014-01-23 21:46           ` Alexander GQ Gerasiov
@ 2014-01-23 21:49             ` Marc Kleine-Budde
  0 siblings, 0 replies; 8+ messages in thread
From: Marc Kleine-Budde @ 2014-01-23 21:49 UTC (permalink / raw)
  To: Alexander GQ Gerasiov
  Cc: Yegor Yefremov, Oliver Hartkopp, linux-can@vger.kernel.org,
	Nikita

[-- Attachment #1: Type: text/plain, Size: 1505 bytes --]

On 01/23/2014 10:46 PM, Alexander GQ Gerasiov wrote:
> Thu, 23 Jan 2014 21:32:58 +0100
> Marc Kleine-Budde <mkl@pengutronix.de> wrote:
>>> So I use plain Makefile in my not-yet-uploaded-into-Debian package.
>>>
>>> If you want to get rid of it, I'd recommend you remove it completely
>>> from git, rename auto* to common name (for now Makefile called
>>> GNUmakefile or something like that) and remove from git any
>>> autogenerated files.
>>
>> From the GNU make info page:
>> ""By default, when `make' looks for the makefile, it tries the
>> following names, in order: `GNUmakefile', `makefile' and `Makefile'.""
>>
>> So GNUmakefile has a higher priority as Makefile.
> Oh, didn't knew that. Ok.
> 
>> There aren't any auto generated files in the git.
> Really strange, just tried to reproduce this and didn't find any
> problems. May be I confuse can-utils with another code, I packaged on
> the holiday, dont know =\
> 
>> Just call:
>>
>> ./autogen.sh
>> ./configure
>> make
> 
> In my case there will be just
> 
> #!/usr/bin/make -f
> %:
>         dh $@ --with autoreconf
> 
> in debian/rules :)

Nice, just contact me here on this mailinglist if you encounter any
problems.

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-23 21:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-23 13:58 can-utils: install in /usr/bin instead of /usr/local/bin ?? Oliver Hartkopp
2014-01-23 14:00 ` Marc Kleine-Budde
2014-01-23 14:07   ` Yegor Yefremov
2014-01-23 14:12     ` Marc Kleine-Budde
2014-01-23 16:26       ` Alexander GQ Gerasiov
2014-01-23 20:32         ` Marc Kleine-Budde
2014-01-23 21:46           ` Alexander GQ Gerasiov
2014-01-23 21:49             ` Marc Kleine-Budde

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.