Package Details: mmc-utils-git 1:r128.f757f41-1

Git Clone URL: https://aur.archlinux.org/mmc-utils-git.git (read-only, click to copy)
Package Base: mmc-utils-git
Description: Userspace tools for MMC/SD devices
Upstream URL: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
Keywords: emmc mmc
Licenses: GPL
Conflicts: mmc-utils
Provides: mmc-utils
Submitter: vbmithr
Maintainer: jpegxguy
Last Packager: jpegxguy
Votes: 6
Popularity: 0.000000
First Submitted: 2018-08-08 07:01 (UTC)
Last Updated: 2024-05-14 15:18 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Pinned Comments

jpegxguy commented on 2021-12-15 16:13 (UTC) (edited on 2021-12-15 16:26 (UTC) by jpegxguy)

Hi guys,

I found this documentation on kernel.org which points to a different repo:

https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git

I'm thinking this might be why the tree we knew moved to mmc-utils-old

I'll probably end up changing the source to that newer repo after testing for a bit, because the new tree seems more active.

UPDATE: The new tree builds fine for me. Also, make is part of the group base-devel, which is an implied make dependency of any AUR package.

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

FabioLolix commented on 2021-12-15 17:12 (UTC)

adding epoc is a matter of versioning, not related to develop tree etc.

So r88.a1b233c is a superior version to a1b233c (it is correctly seen as an update) However if someone builded this package with the resulting pkgver starting with a number, they will never be notified about updates if you are not adding epoc

jpegxguy commented on 2021-12-15 16:57 (UTC) (edited on 2021-12-15 17:05 (UTC) by jpegxguy)

It shouldn't need an epoch since the new tree is basically some commits ahead of the old tree, right? They seem to have the same git history up until the point where the old one was essentially "retired". That said, you do have to clone fresh...

The pkgver though it's true, it needs to be standardized, I'll update

EDIT: I'll update epoch as well anyway, since the version scheme changed.

FabioLolix commented on 2021-12-15 16:48 (UTC)

Hello, the pkgver currently used is sub-optimal, this pkgbuild need epoc=1 and printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" as pkgver since there aren't git tags and git commits hash are not sequential https://wiki.archlinux.org/title/VCS_package_guidelines#Git

jpegxguy commented on 2021-12-15 16:13 (UTC) (edited on 2021-12-15 16:26 (UTC) by jpegxguy)

Hi guys,

I found this documentation on kernel.org which points to a different repo:

https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git

I'm thinking this might be why the tree we knew moved to mmc-utils-old

I'll probably end up changing the source to that newer repo after testing for a bit, because the new tree seems more active.

UPDATE: The new tree builds fine for me. Also, make is part of the group base-devel, which is an implied make dependency of any AUR package.

sickcodes commented on 2021-12-15 08:01 (UTC)

@jpegxguy this should work

# Maintainer: Leo Papadakos <jpegxguy@outlook.com>
# Contributor: Vincent Bernardoff <vb AT luminar.eu.org>

pkgname=mmc-utils-git
_pkgname=mmc-utils-old
pkgver=73d6c59
pkgrel=1
pkgdesc="Userspace tools for MMC/SD devices"
arch=(arm armv6h armv7h aarch64 x86_64 i686)
url="https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils-old.git/"
license=('GPL')
depends=()
makedepends=('git' 'make')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
install=
source=('git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils-old.git')
noextract=()
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/${_pkgname}"
    git describe --always --dirty --tags | sed -e 's/-/./g'
}

build() {
    cd "${_pkgname}"
    make all
}

package() {
    cd "${_pkgname}"
    make DESTDIR="$pkgdir/" prefix=/usr install
    install -D man/mmc.1 "$pkgdir/usr/share/man/man1/mmc.1"
}

mctom commented on 2021-11-08 20:42 (UTC) (edited on 2021-11-08 20:45 (UTC) by mctom)

The source is now at https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils-old.git/

I can't tell why repo changed its name like that, I couldn't find deprecation notice or anything.

Anyway, a simple make / make install routine worked for me on this repo.

greyltc commented on 2021-09-10 07:49 (UTC)

The source moved to https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git

and here's a patch that lets it build today:

diff --git a/mmc_cmds.c b/mmc_cmds.c
index 205e6e5..ace215c 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -1835,7 +1835,10 @@ int do_read_extcsd(int nargs, char **argv)

    if (ext_csd_rev >= 7) {
                 memset(lbuf, 0, sizeof(lbuf));
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstringop-truncation"
        strncpy(lbuf, (char*)&ext_csd[EXT_CSD_FIRMWARE_VERSION], 8);
+#pragma GCC diagnostic pop
        printf("eMMC Firmware Version: %s\n", lbuf);
        printf("eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x%02x\n",
            ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]);

bartus commented on 2020-10-28 09:51 (UTC)

@Mettacrawer: Tested with pacman:5.2.2 and current source works perfectly fine.

bashdb.log

If you want to use bashdb on makepkg comment out this line in makepkg

Mettacrawer commented on 2020-07-11 19:15 (UTC) (edited on 2020-07-11 19:16 (UTC) by Mettacrawer)

Got

==> ERROR: Failure while downloading mmc-utils git repo

Fixed by modifying PKGBUILD

Changed this:

source=('git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git')

To this:

source=('git+https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git')

uglym8 commented on 2019-07-17 09:46 (UTC)

Regarding failed build (see comment by dibiv on 2019-01-10):

Just comment out the patch invocation in PKGBUILD i.e.: prepare() { cd "${pkgname%-git}" #patch -p1 < ../lsmmc.patch }