oprofile: update to 1.3.0.
Use account _oprofile.
This commit is contained in:
parent
b49fd85130
commit
19757b51c3
3 changed files with 18 additions and 20 deletions
|
@ -1,13 +0,0 @@
|
||||||
Use internal op_basename function rather than basename.
|
|
||||||
|
|
||||||
--- pp/oparchive.cpp 2017-08-08 13:32:18.667327870 -0400
|
|
||||||
+++ pp/oparchive.cpp 2017-08-08 13:36:09.502600880 -0400
|
|
||||||
@@ -261,7 +262,7 @@
|
|
||||||
/* determine the session name of sample file */
|
|
||||||
int offset = sample_name.find('{');
|
|
||||||
string base_samples_dir = sample_name.substr(0, offset-1);
|
|
||||||
- string session = basename(base_samples_dir.c_str());
|
|
||||||
+ string session = op_basename(base_samples_dir);
|
|
||||||
/* Get rid of the the archive_path from the name */
|
|
||||||
string sample_base = sample_name.substr(offset);
|
|
||||||
string sample_archive_file = dest_samples_dir + "/" + session + "/" + sample_base;
|
|
11
srcpkgs/oprofile/patches/system-account.patch
Normal file
11
srcpkgs/oprofile/patches/system-account.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- opjitconv/opjitconv.c.orig
|
||||||
|
+++ opjitconv/opjitconv.c
|
||||||
|
@@ -659,7 +659,7 @@
|
||||||
|
if (non_root) {
|
||||||
|
pw_oprofile = NULL;
|
||||||
|
} else {
|
||||||
|
- pw_oprofile = getpwnam("oprofile");
|
||||||
|
+ pw_oprofile = getpwnam("_oprofile");
|
||||||
|
if (pw_oprofile == NULL) {
|
||||||
|
printf("opjitconv: User information for special user oprofile cannot be found.\n");
|
||||||
|
rc = OP_JIT_CONV_FAIL;
|
|
@ -1,17 +1,17 @@
|
||||||
# Template file for 'oprofile'
|
# Template file for 'oprofile'
|
||||||
pkgname=oprofile
|
pkgname=oprofile
|
||||||
version=1.2.0
|
version=1.3.0
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="popt-devel binutils-devel"
|
makedepends="popt-devel binutils-devel"
|
||||||
system_accounts="oprofile"
|
system_accounts="_oprofile"
|
||||||
oprofile_homedir="/var/lib/oprofile"
|
oprofile_homedir="/var/lib/oprofile"
|
||||||
make_dirs="/var/lib/oprofile 0750 oprofile oprofile"
|
make_dirs="/var/lib/oprofile 0750 _oprofile _oprofile"
|
||||||
short_desc="Transparent low-overhead system-wide profiler for Linux"
|
short_desc="Transparent low-overhead system-wide profiler for Linux"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2.0-only"
|
||||||
homepage="http://oprofile.sourceforge.net"
|
homepage="http://oprofile.sourceforge.net"
|
||||||
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=eb95f98c40b7d0ee29b45fba3565d9f8381747528aa6b6159e37d4fa0c8ca57d
|
checksum=95ded8bde1ec39922f0af015981a67aec63e025a501e4dc04cd65d38f73647e6
|
||||||
|
|
Loading…
Reference in a new issue