Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABWT5yjQkhU=NNMUzWBPvON5anxNodVQqR_Xf7TM-zJRYWP-ew@mail.gmail.com>
Date: Fri, 29 Apr 2016 08:07:53 +0800
From: Barry Kauler <bkauler@...il.com>
To: sabotage@...ts.openwall.com
Subject: Recipe for f2fs-tools, advice requested

Hi guys,
I am new to Sabotage.

My first go at creating a recipe:

f2fs-tools
--------------
[mirrors]
http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-1.6.1.tar.gz
http://distro.ibiblio.org/quirky/quirky6/sources/alphabetical/f/f2fs-tools-1.6.1.tar.gz

[vars]
filesize=73428
sha512=715d37507312d994612fb2b2f177656e3752fbd2f6145f0049e60ffca701eae923bb9939d716caceb3f680755516de954093173fdbf72fc84f8048f792b406ec
desc='utilities for the f2fs filesystem'

[deps]
e2fsprogs
autoconf
automake
libtool
m4
pkgconf

[build]
#libuuid required, provided by either e2fsprogs or util-linux
#pkgconf or pkg-config

#want to compile statically:
echo 'mkfs_f2fs_LDFLAGS = -all-static' >> mkfs/Makefile.am
echo 'fsck_f2fs_LDFLAGS = -all-static' >> fsck/Makefile.am

autoreconf --install
LDFLAGS=-static ./configure --prefix="$butch_prefix" --sysconfdir=/etc
--localstatedir=/var --build=x86_64-pc-linux-gnu --bindir=/bin
--sbindir=/sbin --libdir=/lib --disable-shared --enable-static
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

A few questions:
The [deps] area doesn't allow OR operations? For example, util-linux
or e2fsprogs can provide libuuid.

I have partially created a ./configure ... line.
Should I have done LDFLAGS differently?
I suppose that --sysconfdir=/etc could be removed, as it should be ok
inside $butch_prefix
What about --localstatedir=/var --build=x86_64-pc-linux-gnu ?
I guess these can be removed: --bindir=/bin --sbindir=/sbin --libdir=/lib

I haven't tested it yet, wanted to get the build recipe setup properly first.

Regards,
Barry Kauler

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.