On 22 February 2015 at 20:58, Koen Kooi <[email protected]> wrote:
>
>> Op 22 feb. 2015, om 14:56 heeft Michal Suchanek <[email protected]> het 
>> volgende geschreven:
>>
>> On 22 February 2015 at 11:02, Diego Roversi <[email protected]> wrote:
>>> On Sat, 21 Feb 2015 15:51:19 +0200
>>> Siarhei Siamashka <[email protected]> wrote:
>>>
>>>> Regarding packaging, there are some pull requests on github, which try
>>>> to add autotools support. I have quickly looked at these patches and did
>>>> not quite like them. They add autogenerated files to git, which is not a
>>>> great idea. And also they don't seem to really solve the problem of the
>>>> need to use two toolchains at once (part of the build needs to be done
>>>> by the compiler from the host machine, and part of the build needs to
>>>> be done by an arm crosscompiler).
>>>
>>> In debian, packages are compiled with a native compiler on a native 
>>> platform, so it's not really a problem. BTW I think that adding autotools 
>>> support to trivial C program can be considere bike shedding (ihmo).
>>
>> And any self-respecting distro has build time dependency handling so
>> you don't really have to detect libraries since you will have them
>> installed by the package build system.
>
> Taking that argument to its logical conclusion means that autotools, 
> pkg-config and friends aren't needed anymore because the distro will solve it 
> for you.
>

Yes, for a simple project. It's not like sunxi-tools support multiple
versions of libusb so we can just assume the user installed an usable
version and at most use pkg-config to determine the flags needed to
compile with it. And that's about the only dependency there is.

In distro packages the cross-compiled binary can be just built
natively on the arch it is for. For manual cross-compile there can be
special target which the distro will not use.

The build systems are all horrible and broken by design. And every
time they make a new one to fix a flaw in one of the existing ones
they get something else completely wrong. I'm sure you would find tons
of articles on the inherent flaws of design of make (any variant),
autotools, cmake, ant, rake, scons or anything else you can point your
finger at with the possible exception of systems that are too new for
the articles to crop up.

Thanks

Michal

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to