• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libpwquality/0001-Fix-build-with-disable-nls-on-platforms-without-libi.patch
Stefan SørensenStefan Sørensen committed 462040443ca05 May 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From fd1694c9d85666a39fe39e76518581b1ccd5a6c5 Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <stefan.sorensen@spectralink.com>
3
Date: Thu, 2 Feb 2017 11:16:49 +0100
4
Subject: [PATCH] Fix build with --disable-nls on platforms without libintl
5
 included in libc.
6
​
7
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
8
​
9
---
10
​
11
Status: accepted upstream, not yet released.
12
​
13
diff --git a/src/pwmake.c b/src/pwmake.c
14
index 5b8cfb8..81f7cd3 100644
15
--- a/src/pwmake.c
16
+++ b/src/pwmake.c
17
@@ -33,9 +33,11 @@ main(int argc, char *argv[])
18
         int bits;
19
         void *auxerror;
20
 
21
+#ifdef ENABLE_NLS
22
         setlocale(LC_ALL, "");
23
         bindtextdomain("libpwquality", "/usr/share/locale");
24
         textdomain("libpwquality");
25
+#endif
26
 
27
         if (argc != 2) {
28
                 usage(basename(argv[0]));
29
diff --git a/src/pwscore.c b/src/pwscore.c
30
index 219a175..24c13f2 100644
31
--- a/src/pwscore.c
32
+++ b/src/pwscore.c
33
@@ -34,9 +34,11 @@ main(int argc, char *argv[])
34
         size_t len;
35
         char *user = NULL;
36
 
37
+#ifdef ENABLE_NLS
38
         setlocale(LC_ALL, "");
39
         bindtextdomain("libpwquality", "/usr/share/locale");
40
         textdomain("libpwquality");
41
+#endif
42
 
43
         if (argc > 2) {
44
                 usage(basename(argv[0]));
45
-- 
46
2.9.3
47
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.