Package Details: aufs-util 20160301-1

Git Clone URL: https://aur.archlinux.org/aufs-util.git (read-only)
Package Base: aufs-util
Description: Another Unionfs Implementation that supports NFS branches
Upstream URL: http://aufs.sourceforge.net/
Licenses: GPL2
Conflicts: aufs2-util, aufs3-util
Replaces: aufs2-util, aufs3-util
Submitter: Calimero
Maintainer: Calimero
Last Packager: Calimero
Votes: 14
Popularity: 0.000020
First Submitted: 2015-04-30 23:17
Last Updated: 2016-03-05 20:09

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

Calimero commented on 2016-03-09 12:09

In the last release of pacman, makepkg started evaluating prepare() before pkgver(). This broke the PKGBUILD but the required fix allowed to do things way more cleanly.

GI_Jack commented on 2016-03-05 19:17

==> Starting prepare()...
sed: can't read ver.c: No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting...

dreieck commented on 2016-02-10 10:17

I made a dummy package for myself providing aufs, since when compiling and installing kernel manually with the in-kernel methods there is no packaging system involved, but aufs_type.h will be provided.

Calimero commented on 2016-02-08 20:52

As for the version, you're probably right.
As for the aufs makedepend, it's due to /usr/include/linux/aufs_type.h that the aufs package provides. If it's not present, the compilation fails and I'd get bug reports.
The package that provides aufs_type.h should say provides=('aufs').
As for adding -git… if it was possible to do a stable version of this package, I would.

dreieck commented on 2016-02-08 15:47

Since you checkout the latest version from git, you should rename your package "aufs-util-git", to follow the packaging standards.

Also, I updated some other things in the PKGBUILD, such that the version starts with the aufs-version (e.g. 4.0), and then the date (so, 4.0.r201551112, to follow the packaging standards). Set epoch=1 due to this change.

Also, removed the "aufs" makedepend, since for someone who manually patches the linux kernel there is no package "aufs", but the kernel headers are there. (One could also make a dummy-package or so.)

Updated PKGBUILD is there:

http://pastebin.com/MciTxPZN

Feel free to adopt.

GI_Jack commented on 2015-05-16 18:24

add a provides= line for aufs3-util

rfried commented on 2014-11-04 09:14

Yes, I can confirm this ...


Making package: aufs3-util 20141003-1 (Thu Oct 24 19:59:29 CEST 2014)
...
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -s aufhsmd.o -lrt -L. -lfhsm -L.. -lautil -o aufhsmd
./libfhsm.a(event.o): In function `au_fhsmd_load':
event.c:(.text+0x241): undefined reference to `shm_unlink'
...
==> ERROR: A failure occurred in build().
Aborting...

After reordering Library includes:
--- fhsm/Makefile.ori 2014-10-23 19:06:05.529506964 +0200
+++ fhsm/Makefile 2014-10-24 19:08:45.719981957 +0200
@@ -46,3 +46,3 @@
${Tgt}: override LDFLAGS += -s
-${Tgt}: override LDLIBS += -lrt -L. -lfhsm -L.. -lautil
+${Tgt}: override LDLIBS += -L. -lfhsm -L.. -lautil -lrt

The build succeeds.

sanerb commented on 2014-10-30 04:21

makes dies on building FHSM in the build environment:

aufhsm.c: In function ‘main’:
aufhsm.c:356:2: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return err;
^
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -s aufhsm.o -lrt -L. -lfhsm -L.. -lautil -o aufhsm
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -O -Wall -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I./libau -DAUFHSM_CMD="/usr/bin/aufhsm" -DMOUNT_CMD="/bin/mount" -DUMOUNT_CMD="/bin/umount" -DAUFHSM -DAUFHSM_LIST_CMD=\"/usr/lib/aufhsm-list\" -DAUFHSMD_CMD=\"/usr/lib/aufhsmd\" -c -o aufhsmd.o aufhsmd.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro -s aufhsmd.o -lrt -L. -lfhsm -L.. -lautil -o aufhsmd
./libfhsm.a(event.o): In function `au_fhsmd_load':
event.c:(.text+0x241): undefined reference to `shm_unlink'
./libfhsm.a(list.o): In function `au_list_dir_def':
list.c:(.text+0x2b5): undefined reference to `shm_open'
list.c:(.text+0x34c): undefined reference to `shm_unlink'
./libfhsm.a(shm.o): In function `au_shm_open':
shm.c:(.text+0x49): undefined reference to `shm_open'
./libfhsm.a(shm.o): In function `au_shm_create':
shm.c:(.text+0xabb): undefined reference to `shm_unlink'
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'aufhsmd' failed
make[1]: *** [aufhsmd] Error 1
make[1]: Leaving directory '/var/tmp/yaourt-tmp-root/aur-aufs3-util/src/aufs3-util/fhsm'
Makefile:66: recipe for target 'all' failed
make: *** [all] Error 2
rm ver c2tmac c2sh


yet when i cd into the build dir and run make manually, it seems to build just fine:

[root@dawid aufs3-util]# pwd;make clean;make
/var/tmp/yaourt-tmp-root/aur-aufs3-util/src/aufs3-util
aufhsm.c: In function ‘main’:
aufhsm.c:356:2: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return err;
^
cc -s aufhsm.o -lrt -L. -lfhsm -L.. -lautil -o aufhsm
cc -O -Wall -D_GNU_SOURCE -I./libau -DAUFHSM_CMD="/usr/bin/aufhsm" -DMOUNT_CMD="/bin/mount" -DUMOUNT_CMD="/bin/umount" -DAUFHSM -DAUFHSM_LIST_CMD=\"/usr/lib/aufhsm-list\" -DAUFHSMD_CMD=\"/usr/lib/aufhsmd\" -c -o aufhsmd.o aufhsmd.c
cc -s aufhsmd.o -lrt -L. -lfhsm -L.. -lautil -o aufhsmd
make[1]: Leaving directory '/var/tmp/yaourt-tmp-root/aur-aufs3-util/src/aufs3-util/fhsm'
rm ver c2tmac c2sh
[root@dawid aufs3-util]# echo $?
0

can anyone else reproduce? (using linux-aufs_friendly, not linux-pf if it helps)

leodag commented on 2012-08-31 19:14

Better than adding 'export CPPFLAGS="-I/lib/modules/3.0-pf/build/include"' is:
export CPPFLAGS="-I/lib/modules/$(uname -r)/build/include"
That way, it uses the modules from the current kernel, so it can work with any kernel that has aufs, not only linux-pf.

gee commented on 2012-02-27 07:04

Not sure why, but latest util-linux from testing breaks mount.aufs.
It seems to not send commands in the same order or something like that.
All my other mounts are still good though...
Any idea ?
Rolling back to the core version works just fine.

All comments