Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
e2fsprogs: static build
- fix build as user by going static
`bee_install(): /sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied`
- enable single language
- enable verbose make
- speed up build
- move com_err to separate bee
  • Loading branch information
wwwutz committed Nov 11, 2019
1 parent 087a6a0 commit e20398d
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions e2fsprogs.be0
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION e2fsprogs-1.45.4-0
# BEE_VERSION e2fsprogs-1.45.4-2

## The source URL(s) array
SRCURL[0]="https://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-${PKGVERSION}.tar.gz"
Expand Down Expand Up @@ -28,29 +28,41 @@ SRCURL[0]="https://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-${PKGVERSION}
mee_configure() {
# blkid, uuid, fsck are used from util-linux.
bee_configure \
--enable-verbose-makecmds \
--with-root-prefix= \
--enable-elf-shlibs \
--disable-libblkid \
--disable-libuuid \
--disable-uuidd \
--disable-fsck
--disable-fsck \
--disable-nls
}

mee_build() {
bee_build
start_cmd make check
}
#mee_build() {
# bee_build
#}

#mee_install() {
# bee_install
#}

mee_install_post() {
make install-libs DESTDIR=${D}
chmod -v u+w ${D}${LIBDIR}/{libcom_err,libe2p,libext2fs,libss}.a
gunzip -v ${D}${DATADIR}/info/libext2fs.info.gz
mv ${D}${SYSCONFDIR}/mke2fs.conf ${D}${SYSCONFDIR}/mke2fs.conf.sample

# we dont volume manage so we dont scrub
rm -f ${D}/usr/sbin/e2scrub*
rm -f ${D}/usr/share/man/man8/e2scrub*
rm -rf ${D}/lib
rm -rf ${D}/usr/lib/e2fsprogs
rm -f ${D}${SYSCONFDIR}/e2scrub.conf
# we dont cron
rm -rv ${D}/etc/cron.d
rm -rv ${D}/lib/systemd
# we dont dev
rm -v ${D}${DATADIR}/info/libext2fs.info.gz
rm -rv ${D}/usr/lib/*.a
rm -rf ${D}/usr/lib/pkgconfig
# this is in libcom-err2
rm -f ${D}/usr/bin/compile_et
rm -rf ${D}/usr/share/et
rm -f ${D}/usr/share/man/man1/compile_et.1
rm -rf ${D}/usr/share/man/man3
rm -rf ${D}/usr/include
}

0 comments on commit e20398d

Please sign in to comment.