Package Details: smem 1.5-6

Git Clone URL: https://aur.archlinux.org/smem.git (read-only, click to copy)
Package Base: smem
Description: Generate reports on memory usage.
Upstream URL: https://www.selenic.com/smem/
Licenses: GPL
Submitter: arojas
Maintainer: bbaovanc
Last Packager: bbaovanc
Votes: 16
Popularity: 2.38
First Submitted: 2023-04-01 17:34 (UTC)
Last Updated: 2024-10-14 20:59 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

bbaovanc commented on 2024-10-14 20:59 (UTC)

That makes a lot more sense now, it did feel like something was missing before. I incremented the pkgrel as well just in case, even though it should build the same.

jansuX2 commented on 2024-10-14 11:43 (UTC) (edited on 2024-10-14 11:43 (UTC) by jansuX2)

yes, though local files in '.patch', urls in "https://...", sha values one below the other, that's how I learned it :)

nines commented on 2024-10-13 16:21 (UTC)

source=("$pkgname-$pkgver.tgz::https://www.selenic.com/repo/smem/archive/$pkgver.tar.gz" "0001-Fix-xrange-in-Python-3.patch")
sha256sums=('5c3907b0ac9d3252cbbc5cb9ebe93f0c2b602df67376d9050c09146871822293' 'efa7c105a60d0a345aec981c534d79c8c1e35988d527bd3a8e28a728c5de8ea8')

prepare() {
  cd "$pkgname-$pkgver"
  patch -N -p1 -i ../0001-Fix-xrange-in-Python-3.patch
}

jansuX2 commented on 2024-10-13 12:38 (UTC)

oh and just: patch -N -p1 -i ../0001-Fix-xrange-in-Python-3.patch

jansuX2 commented on 2024-10-13 12:35 (UTC)

You need to put the name of the .patch file to the source array so that it is copied into the src directory and add its SHA256 to sha256sums, otherwise the file will not be found if one uses another build environment: https://wiki.archlinux.org/title/Makepkg#Building_from_files_in_memory

bbaovanc commented on 2024-10-13 10:31 (UTC)

I don't think so, the Patching packages wiki page didn't mention anything about it. I think the sources key is just for anything remote that has to be downloaded.

jansuX2 commented on 2024-10-13 09:46 (UTC)

shouldn't you upload the .patch itself to 'Sources' for it to work?

bbaovanc commented on 2024-10-13 08:16 (UTC)

@tobek Added patch to fix this in 94f3f7e83d73. Sorry it took so long, it got buried at the bottom of my email.

tobek commented on 2024-03-15 22:58 (UTC)

Seems like this was written for Python 2, and running smem to generate graphs fails with NameError: name 'xrange' is not defined. Did you mean: 'range'? (see https://bugs.archlinux.org/task/75489). Project seems unmaintained (last updated in 2015) and there's nowhere to report this bug or submit an update, but heads up that this can be fixed by simply renaming xrange to range in /usr/bin/smem, and then it works.