Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
b82e609e
Commit
b82e609e
authored
Jul 11, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logrotate: support cygwin
parent
7f382a26
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
10 deletions
+30
-10
component/logrotate/buildout.cfg
component/logrotate/buildout.cfg
+8
-10
component/logrotate/logrotate-3.7.9-cygwin.patch
component/logrotate/logrotate-3.7.9-cygwin.patch
+22
-0
No files found.
component/logrotate/buildout.cfg
View file @
b82e609e
...
...
@@ -3,21 +3,19 @@ extends =
../popt/buildout.cfg
parts = logrotate
[logrotate-3.7.9-O_CLOEXEC.optional.patch]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
download-only = true
md5sum = 6beac248c978b767d4bccc1b7eebe6bd
filename = ${:_buildout_section_name_}
[logrotate]
recipe = slapos.recipe.cmmi
url = https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.7.9.tar.gz
md5sum = eeba9dbca62a9210236f4b83195e4ea5
patch-options = -p1
patches
=
${
logrotate-3.7.9-O_CLOEXEC.optional.patch:location}/${logrotate-3.7.9-O_CLOEXEC.optional.patch:filename}
patches=
${
:_profile_base_location_}/logrotate-3.7.9-O_CLOEXEC.optional.patch
configure-command = true
make-options = PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
environment =
POPT_DIR=${popt:location}/include -L${popt:location}/lib -Wl,-rpath=${popt:location}/lib
[logrotate:cygwin]
patches =
${logrotate:patches}
${:_profile_base_location_}/logrotate-3.7.9-cygwin.patch
component/logrotate/logrotate-3.7.9-cygwin.patch
0 → 100644
View file @
b82e609e
diff --git a/config.c b/config.c
index e6d5d1d..a526d64 100644
--- a/config.c
+++ b/config.c
@@ -547,7 +547,7 @@
static int readConfigFile(const char *configFile, struct logInfo *defConfig)
length = sb.st_size;
buf = mmap(NULL, (size_t)(length + 2), PROT_READ | PROT_WRITE,
- MAP_PRIVATE | MAP_POPULATE, fd, (off_t) 0);
+ MAP_PRIVATE, fd, (off_t) 0);
if (buf == MAP_FAILED) {
message(MESS_ERROR, "Error mapping config file %s: %s\n",
configFile, strerror(errno));
@@ -559,7 +559,7 @@
static int readConfigFile(const char *configFile, struct logInfo *defConfig)
buf[length + 1] = '\0';
buf[length] = '\n';
madvise(buf, (size_t)(length + 2),
- MADV_SEQUENTIAL | MADV_WILLNEED | MADV_DONTFORK);
+ MADV_SEQUENTIAL | MADV_WILLNEED);
message(MESS_DEBUG, "reading config file %s\n", configFile);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment