You are not logged in.

#1 2019-04-20 05:29:31

stuartiannaylor
Member
Registered: 2014-03-24
Posts: 17

Location of C header files and packages in Arch [SOLVED]

Apols as will have to quote Debian methods, but if I needed to add any source files to make a repo I would just apt-get install libattr1-dev -y and hey presto the up to date attr.h is avail for the current repo to compile.

I am slightly confused by abs, aps and yaourt and maybe I am missing something, but is the no equivalent of the above simplicity where you just install the dev package?

Just trying to get arm attr so I can compile https://github.com/kmxz/overlayfs-tools

Without main.c:15:10: fatal error: attr/xattr.h: No such file or directory
#include <attr/xattr.h>

Last edited by stuartiannaylor (2019-04-20 11:19:29)

Offline

#2 2019-04-20 05:38:45

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: Location of C header files and packages in Arch [SOLVED]

-dev packages are not split out in Arch, they're part of the main package.

Offline

#3 2019-04-20 05:51:20

stuartiannaylor
Member
Registered: 2014-03-24
Posts: 17

Re: Location of C header files and packages in Arch [SOLVED]

Its me being a Arch noob and maybe phrasing the question incorrect.

sudo pacman -Fs attr
core/attr 2.4.48-1
    usr/bin/attr
extra/graphviz 2.40.1-14
    usr/share/graphviz/gvpr/attr

So I have the binary but in debian if I want to make the source avail I just install the -dev package

My question is where is the source then smile ?

Offline

#4 2019-04-20 05:52:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: Location of C header files and packages in Arch [SOLVED]

The source or the headers/library? Two completely different things.

Offline

#5 2019-04-20 05:59:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Location of C header files and packages in Arch [SOLVED]

stuartiannaylor wrote:

where is the source then smile ?

https://wiki.archlinux.org/index.php/Arch_Build_System

And please change your thread title to one that actually describes your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2019-04-20 06:08:12

stuartiannaylor
Member
Registered: 2014-03-24
Posts: 17

Re: Location of C header files and packages in Arch [SOLVED]

jasonwryan wrote:
stuartiannaylor wrote:

where is the source then smile ?

https://wiki.archlinux.org/index.php/Arch_Build_System

And please change your thread title to one that actually describes your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post

I am not really sure why the above always seems to be posted against what seems to be questions like this.

I am getting there though as for me the answer is packages are in /var/cache/pacman/pkg
and the source files / headers are in /usr/include

But getting there cheers smile

Still bemused why ABS is any use to me?

Offline

#7 2019-04-20 06:13:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: Location of C header files and packages in Arch [SOLVED]

It's not. Again, you're not talking about source, you're talking about headers. Very, very different.

For the cause of your problem, see http://git.savannah.nongnu.org/cgit/att … bae9fd2c38 . The repo you're using is old and broken.

Last edited by Scimmia (2019-04-20 06:13:45)

Offline

#8 2019-04-20 06:23:51

stuartiannaylor
Member
Registered: 2014-03-24
Posts: 17

Re: Location of C header files and packages in Arch [SOLVED]

Yeah was expecting it was my terminology the c source to me is the header h + c files lols and apols.

I am stuck as  https://github.com/kmxz/overlayfs-tools isn't just old and broken its the only overlayfs tool in existence for a single lower that will merge, in fact I think its the only overlayfs tool in existence of any type.

Suppose you don't know of an alternative?

It does compile (make) on raspbian 4.14 (latest) but sad

Last edited by stuartiannaylor (2019-04-20 06:28:02)

Offline

#9 2019-04-20 06:34:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Location of C header files and packages in Arch [SOLVED]

jasonwryan wrote:

And please change your thread title to one that actually describes your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2019-04-20 07:36:53

stuartiannaylor
Member
Registered: 2014-03-24
Posts: 17

Re: Location of C header files and packages in Arch [SOLVED]

jasonwryan wrote:
jasonwryan wrote:

And please change your thread title to one that actually describes your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post

What would that be then? hmm

Offline

#11 2019-04-20 08:08:04

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: Location of C header files and packages in Arch [SOLVED]

stuartiannaylor wrote:

Suppose you don't know of an alternative?

If you don't know of anything else, adapt the PKGBUILD to apply a patch that fixes the error.


pkgshackscfgblag

Offline

#12 2019-04-20 08:30:43

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Location of C header files and packages in Arch [SOLVED]

http://git.savannah.nongnu.org/cgit/att … bae9fd2c38
Edit:
Already provided by Scimmia
Pull request containing a fix for the issue https://github.com/kmxz/overlayfs-tools/pull/6

Last edited by loqs (2019-04-20 08:55:37)

Offline

#13 2019-04-20 11:07:44

stuartiannaylor
Member
Registered: 2014-03-24
Posts: 17

Re: Location of C header files and packages in Arch [SOLVED]

loqs wrote:

http://git.savannah.nongnu.org/cgit/att … bae9fd2c38
Edit:
Already provided by Scimmia
Pull request containing a fix for the issue https://github.com/kmxz/overlayfs-tools/pull/6

I think I might make another though as basically my noob question of calling the C header & lib files just the source files.
But that got answered as after a pacman -Sw I was like where is it and went on a hunt.

So packages = /var/cache/pacman/pkg
C Includes =  /usr/include

My C is non existent but it is really strange there is total lack of any tools for OverlayFS even if just a simple unmounted single lower merge.
To be able to run either a tmpfs / zram upper and merge down on stop has a few applications especially for ALARM type devices.

Whoops never noticed that guys cheers and apols wasn't taking much notice as its still outdated due to the redir options of later OverlayFS.
Been trying to get https://github.com/kmxz/overlayfs-tools/issues/7 to update but still puzzled there is practically zero apart from the above for OverlayFS.

Maybe I should have a got at a package when I get to grips with Arch a little more with https://github.com/StuartIanNaylor/log2 … /4.19-Arch

Last edited by stuartiannaylor (2019-04-20 11:29:47)

Offline

#14 2019-04-20 11:37:27

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Location of C header files and packages in Arch [SOLVED]

The following is build tested only

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Your Name <youremail@domain.com>
pkgname=overlayfs-tools
pkgver=r15.0d44989
pkgrel=1
epoch=
pkgdesc=""
arch=('x86_64')
url="https://github.com/kmxz/overlayfs-tools"
license=('custom')
groups=()
depends=('glibc')
makedepends=('git' 'attr')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
_commit=0d44989f1ab7f2e0f565e58f9aff7a9cffb32cd7
source=("git+https://github.com/kmxz/overlayfs-tools.git#commit=$_commit")
noextract=()
sha256sums=('SKIP')
validpgpkeys=()

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$pkgname"
  git cherry-pick -n 8ef89ef29fa815a3d87d9b0437b6eecfb0eee5e4
}

build() {
  cd "$pkgname"
  make CFLAGS="-Wall -std=c99 $CPPFLAGS $CFLAGS" LFLAGS="$LDFLAGS"
}

#check() {
#  cd "$pkgname"
#  make -k check
#}

package() {
  cd "$pkgname"
  install -Dm 755 overlay "$pkgdir"/usr/bin/overlay
  install -dm 755 "$pkgdir/usr/share/licenses/$pkgname/"
  install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}

Edit:
Missing dependency on glibc.

References
https://wiki.archlinux.org/index.php/PKGBUILD
https://wiki.archlinux.org/index.php/VC … guidelines

Last edited by loqs (2019-04-20 12:08:45)

Offline

Board footer

Powered by FluxBB