xbps: merge patch from master to restore file timestamps as regular user.

This commit is contained in:
Juan RP 2015-02-21 16:58:21 +01:00
parent 32ff8ecbb9
commit 0605205971
3 changed files with 43 additions and 2 deletions

View file

@ -3,7 +3,7 @@
# NOTE: keep this package synchronized with "srcpkgs/xbps".
pkgname=xbps-static
version=0.43.1
revision=8
revision=9
build_style=configure
short_desc="The XBPS package system utilities - static binaries"
maintainer="Juan RP <xtraeme@gmail.com>"

View file

@ -0,0 +1,41 @@
From ae8ce645421962402b046cd2a34c27aa3c38609a Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Sat, 21 Feb 2015 16:52:27 +0100
Subject: [PATCH] Restore pkg file timestamps while unpacking as regular user.
Requested by @dominikh.
---
NEWS | 3 +++
include/xbps_api_impl.h | 10 +++++-----
tests/xbps/xbps-create/basic_test.sh | 25 +++++++++++++++++++++++++
3 files changed, 33 insertions(+), 5 deletions(-)
diff --git a/include/xbps_api_impl.h b/include/xbps_api_impl.h
index b177bf8..a9fb07c 100644
--- include/xbps_api_impl.h
+++ include/xbps_api_impl.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2010-2014 Juan Romero Pardines.
+ * Copyright (c) 2010-2015 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -46,10 +46,10 @@
#include "compat.h"
#define EXTRACT_FLAGS ARCHIVE_EXTRACT_SECURE_NODOTDOT | \
- ARCHIVE_EXTRACT_SECURE_SYMLINKS
-#define FEXTRACT_FLAGS ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | \
- ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_UNLINK | \
- EXTRACT_FLAGS
+ ARCHIVE_EXTRACT_SECURE_SYMLINKS | \
+ ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_PERM | \
+ ARCHIVE_EXTRACT_UNLINK
+#define FEXTRACT_FLAGS ARCHIVE_EXTRACT_OWNER | EXTRACT_FLAGS
#ifndef __UNCONST
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
--
2.3.0

View file

@ -1,7 +1,7 @@
# Template file for 'xbps'
pkgname=xbps
version=0.43.1
revision=8
revision=9
bootstrap=yes
build_style=configure
short_desc="The XBPS package system utilities"