Re: [arch-general] Link against system libs

2017-04-07 Thread Ralf Mardorf
On Fri, 7 Apr 2017 09:24:16 -0400, Eli Schwartz via arch-general wrote:
>The point is that ABS is unmaintained, might *not* work, is *known* to
>have not-worked quite recently, and will eventually be removed
>altogether

Until now it works when just running "abs" and isn't removed. It might
not work well if you run "abs [options] [repository1[/package1]
[repository2[/package2] ...]]", however my point simply is [1].

I thought everything was already pointed out. It's off-topic and just
bikeshedding to repeat the same opinions. I explained my intension,
Martti posted the link
https://lists.archlinux.org/pipermail/arch-dev-public/2017-March/028752.html
so everything is already said, no need to continue. The readers already
know the pros and cons and could decide on their own.

Some of us continued off-list ;), this at least doesn't hijack the
thread.

Regards,
Ralf

[1]
Begin forwarded off-list message:

Date: Fri, 7 Apr 2017 10:52:00 +0200
From: Ralf Mardorf <ralf.mard...@alice-dsl.net>
To:
Subject: Re: [arch-general] Link against system libs

[snip]

Just running

  $ sudo abs

works and provides what is wanted in the context of the thread.
You could install it by running

  $ sudo pacman -S abs

IOW you don't need to download a tarball, extract it, change into the
directory and then run makepkg -s or -si.


Re: [arch-general] Link against system libs

2017-04-07 Thread Eli Schwartz via arch-general
On 04/07/2017 04:21 AM, Ralf Mardorf wrote:
> On Fri, 7 Apr 2017 10:07:12 +0200, Martin Kühne via arch-general wrote:
>> You don't appear to follow arch-dev-public [0] very closely, do you.
> 
> This was mentioned a few days back on this mailing list, too.
> What's your point?
> 
>> https://lists.archlinux.org/pipermail/arch-dev-public/2017-March/028752.html
> 
> To get access to the latest official PKGBUILDS ABS works and it could
> be installed from Extra. There's no need to build something from AUR.

The point is that ABS is unmaintained, might *not* work, is *known* to
have not-worked quite recently, and will eventually be removed
altogether (at which point asp will get an official release and be moved
to extra). Whereas asp works quite well and gets you a lot more than ABS
in the process.

But mostly, because people seeking to download PKGBUILDs clearly have no
problem using AUR packages in the general sense. So there is absolutely
no need to suggest *inferior solutions* and justify them because "it's
provided in an official repo"...

-- 
Eli Schwartz



signature.asc
Description: OpenPGP digital signature


Re: [arch-general] Link against system libs

2017-04-07 Thread Eli Schwartz via arch-general
On 04/07/2017 03:35 AM, Martin Kühne via arch-general wrote:
> On Fri, Apr 7, 2017 at 9:21 AM, Ralf Mardorf  wrote:
>> Just that asp is from AUR which isn't an official repository. ABS is in
>> the official Extra repository,
>> https://wiki.archlinux.org/index.php/Arch_Build_System .
> 
> 
> Except the reason for that is that arch doesn't need to distribute
> that software officially because mostly the people who use it use it
> to provide the official distribution with it. It's somewhat a chicken
> and egg question. Now that you had to to point out that the software
> used to build the official repository is distributed inofficially,
> wouldn't that, with the same logic, make the whole distribution
> inofficial? Why are we drawing a line there?

Actually, the official repositories use neither ABS or asp for building,
and it is ridiculous to suggest they do... not least because neither
provide a way to upload anything.

The official repos use devtools, which is in fact in the official repos.
And it is backed by svn: https://www.archlinux.org/svn/

ABS (backed by tar/rsync) and asp (backed by svntogit) are both
read-only mirrors provided for people who aren't Devs/TUs.

-- 
Eli Schwartz



signature.asc
Description: OpenPGP digital signature


Re: [arch-general] Link against system libs

2017-04-07 Thread Ralf Mardorf
On Fri, 7 Apr 2017 10:21:18 +0200, Ralf Mardorf wrote:
>On Fri, 7 Apr 2017 10:07:12 +0200, Martin Kühne via arch-general wrote:
>>You don't appear to follow arch-dev-public [0] very closely, do you.  
>
>This was mentioned a few days back on this mailing list, too.
>What's your point?
>
>>https://lists.archlinux.org/pipermail/arch-dev-public/2017-March/028752.html  
>
>To get access to the latest official PKGBUILDS ABS works and it could
>be installed from Extra. There's no need to build something from AUR.
>
>[rocketmouse@archlinux ~]$ grep pkgver /var/abs/core/linux/PKGBUILD |
>head -1 pkgver=4.10.8
>[rocketmouse@archlinux ~]$ grep pkgrel /var/abs/core/linux/PKGBUILD |
>head -1 pkgrel=1
>[rocketmouse@archlinux ~]$ pacman -Si linux | grep Version
>Version : 4.10.8-1

I forgot the important date.

[rocketmouse@archlinux ~]$ pacman -Si linux | grep Build\ Date
Build Date  : Fri 31 Mar 2017 04:51:56 PM CEST

>Again, I'm not against asp, but why not simply installing ABS from
>extra at the moment, instead of asp from AUR?
>
>I don't get your point. Why do you make such a big off-topic discussion
>out of it?


Re: [arch-general] Link against system libs

2017-04-07 Thread Ralf Mardorf
On Fri, 7 Apr 2017 10:07:12 +0200, Martin Kühne via arch-general wrote:
>You don't appear to follow arch-dev-public [0] very closely, do you.

This was mentioned a few days back on this mailing list, too.
What's your point?

>https://lists.archlinux.org/pipermail/arch-dev-public/2017-March/028752.html

To get access to the latest official PKGBUILDS ABS works and it could
be installed from Extra. There's no need to build something from AUR.

[rocketmouse@archlinux ~]$ grep pkgver /var/abs/core/linux/PKGBUILD |
head -1 pkgver=4.10.8
[rocketmouse@archlinux ~]$ grep pkgrel /var/abs/core/linux/PKGBUILD |
head -1 pkgrel=1
[rocketmouse@archlinux ~]$ pacman -Si linux | grep Version
Version : 4.10.8-1

Again, I'm not against asp, but why not simply installing ABS from
extra at the moment, instead of asp from AUR?

I don't get your point. Why do you make such a big off-topic discussion
out of it?


Re: [arch-general] Link against system libs

2017-04-07 Thread Martin Kühne via arch-general
You don't appear to follow arch-dev-public [0] very closely, do you.

cheers!
mar77i

[0] https://lists.archlinux.org/pipermail/arch-dev-public/2017-March/028752.html


Re: [arch-general] Link against system libs

2017-04-07 Thread Ralf Mardorf
On Fri, 7 Apr 2017 09:35:08 +0200, Martin Kühne via arch-general wrote:
>It's somewhat a chicken and egg question.

So it's not a problem, a chicken already exists, you could release it by
official repositories.

Remember, on Fri, 7 Apr 2017 06:16:20 +0200, Neven Sajko wrote:
>And you can use asp https://aur.archlinux.org/packages/asp-git/ for
>downloading the official repo buildscripts.

You also could do this with ABS.

I'm not against asp, I only want to point out that downloading the
official PKGBUILDS could be done with a tool from an official
repository.


Re: [arch-general] Link against system libs

2017-04-07 Thread Martin Kühne via arch-general
On Fri, Apr 7, 2017 at 9:21 AM, Ralf Mardorf  wrote:
> Just that asp is from AUR which isn't an official repository. ABS is in
> the official Extra repository,
> https://wiki.archlinux.org/index.php/Arch_Build_System .


Except the reason for that is that arch doesn't need to distribute
that software officially because mostly the people who use it use it
to provide the official distribution with it. It's somewhat a chicken
and egg question. Now that you had to to point out that the software
used to build the official repository is distributed inofficially,
wouldn't that, with the same logic, make the whole distribution
inofficial? Why are we drawing a line there?

cheers!
mar77i


Re: [arch-general] Link against system libs

2017-04-07 Thread Ralf Mardorf
On Fri, 7 Apr 2017 06:16:20 +0200, Neven Sajko via arch-general wrote:
>And you can use asp https://aur.archlinux.org/packages/asp-git/ for
>downloading the official repo buildscripts.

Just that asp is from AUR which isn't an official repository. ABS is in
the official Extra repository,
https://wiki.archlinux.org/index.php/Arch_Build_System .

Regards,
Ralf


Re: [arch-general] Link against system libs

2017-04-07 Thread Wolfgang Mader
On Donnerstag, 6. April 2017 14:45:19 CEST Martin Kühne via arch-general 
wrote:
> Also, I forgot to add some literature on the subject, too. [0], [1], [2]
> 
> cheers!
> mar77i
> 
> [0] https://linux.die.net/man/8/ld-linux
> [1] http://www.linuxjournal.com/node/6463/print
> [2] http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

Thanks, this cleared things up!

Best,
Wolfgang


signature.asc
Description: This is a digitally signed message part.


Re: [arch-general] Link against system libs

2017-04-06 Thread Neven Sajko via arch-general
On 7 April 2017 at 06:07, Neven Sajko  wrote:
> GCC 6 builds Archlinux.

It's in the base-devel group btw, along with other packages generally
required for building:
https://www.archlinux.org/groups/x86_64/base-devel/

Also, you might want to read the makepkg page on wiki.archlinux.org.

And you can use asp https://aur.archlinux.org/packages/asp-git/ for
downloading the official repo buildscripts.


Re: [arch-general] Link against system libs

2017-04-06 Thread Neven Sajko via arch-general
GCC 6 builds Archlinux.


Re: [arch-general] Link against system libs

2017-04-06 Thread Lukas Jirkovsky via arch-general
On 6 April 2017 at 14:13, Wolfgang Mader  wrote:
> If this compiler is a c++ one, it does its specific name mangling. Thus,
> linking against these libs should only be possible for binaries compiled with
> the same c++ compiler. However, arch ships gcc6, gcc5, and clang. Does it also
> ship libraries for all these compilers or how is it possible for binaries
> complied by these different compilers to link successfully?
>
> Best,
> Wolfgang

All compilers you mentioned are for the most part ABI compatible, ie.
they use the same name mangling.


Re: [arch-general] Link against system libs

2017-04-06 Thread Martin Kühne via arch-general
Also, I forgot to add some literature on the subject, too. [0], [1], [2]

cheers!
mar77i

[0] https://linux.die.net/man/8/ld-linux
[1] http://www.linuxjournal.com/node/6463/print
[2] http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html


Re: [arch-general] Link against system libs

2017-04-06 Thread Martin Kühne via arch-general
On Thu, Apr 6, 2017 at 2:13 PM, Wolfgang Mader
 wrote:
> Arch ships with a lot of libraries of which .a and .so are stored in /usr/lib
> and beyond. These libraries are compiled by some compiler, the compiler by
> which the entire arch linux distribution packages are compiled with. By the
> way, which one is this and where can I find that information.
>
> If this compiler is a c++ one, it does its specific name mangling. Thus,
> linking against these libs should only be possible for binaries compiled with
> the same c++ compiler. However, arch ships gcc6, gcc5, and clang. Does it also
> ship libraries for all these compilers or how is it possible for binaries
> complied by these different compilers to link successfully?

All of a program's interactions with the operating system as well as
the subordinate interactions between different units of code and data
are subject to the linker and loader. The file format as well as
interaction "platform" which Arch uses is called ELF. Both GCC and
LLVM produce valid ELF binaries as well as libraries which are
normally used with Linux. The kernel build configuration offers other
formats too, though. Essentially, you can have units produced by
different compilers and even on different machines, but then go run
them together without problems because organizing the different units
at the many different layers that accumulated here is better not left
up to the compiler itself, but rather this formal definition of how
things interact with each other.

cheers!
mar77i


[arch-general] Link against system libs

2017-04-06 Thread Wolfgang Mader
Hi all,

I have a general question about linking in C++ with which you can probably 
clarify for me.

Arch ships with a lot of libraries of which .a and .so are stored in /usr/lib 
and beyond. These libraries are compiled by some compiler, the compiler by 
which the entire arch linux distribution packages are compiled with. By the 
way, which one is this and where can I find that information.

If this compiler is a c++ one, it does its specific name mangling. Thus, 
linking against these libs should only be possible for binaries compiled with 
the same c++ compiler. However, arch ships gcc6, gcc5, and clang. Does it also 
ship libraries for all these compilers or how is it possible for binaries 
complied by these different compilers to link successfully?

Best,
Wolfgang

signature.asc
Description: This is a digitally signed message part.