Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Initial import
- Loading branch information
Carsten Munk
committed
Oct 4, 2011
0 parents
commit ef36d48
Showing
34 changed files
with
9,937 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
PKG_NAME := coreutils | ||
SPECFILE = $(addsuffix .spec, $(PKG_NAME)) | ||
YAMLFILE = $(addsuffix .yaml, $(PKG_NAME)) | ||
|
||
include /usr/share/packaging-tools/Makefile.common | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<attributes> | ||
<attribute namespace="Mer" name="MeeGoUpstreamRev"> | ||
<value>5cf648f0f7b6c29fd7a70bb366ef9f2e</value> | ||
</attribute> | ||
</attributes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<package project="Mer:Trunk:Base" name="coreutils"> | ||
<title>A set of basic GNU tools commonly used in shell scripts</title> | ||
<description>These are the GNU core utilities. This package is the combination of | ||
the old GNU fileutils, sh-utils, and textutils packages. | ||
|
||
</description> | ||
<url>http://www.gnu.org/software/coreutils/</url> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- coreutils-5.92/src/date.c.langinfo 2005-09-16 09:06:57.000000000 +0100 | ||
+++ coreutils-5.92/src/date.c 2005-10-24 18:09:16.000000000 +0100 | ||
@@ -451,14 +451,7 @@ | ||
format = DATE_FMT_LANGINFO (); | ||
if (! *format) | ||
{ | ||
- /* Do not wrap the following literal format string with _(...). | ||
- For example, suppose LC_ALL is unset, LC_TIME="POSIX", | ||
- and LANG="ko_KR". In that case, POSIX says that LC_TIME | ||
- determines the format and contents of date and time strings | ||
- written by date, which means "date" must generate output | ||
- using the POSIX locale; but adding _() would cause "date" | ||
- to use a Korean translation of the format. */ | ||
- format = "%a %b %e %H:%M:%S %Z %Y"; | ||
+ format = dcgettext(NULL, N_("%a %b %e %H:%M:%S %Z %Y"), LC_TIME); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- coreutils-5.97/src/uname.c.sysinfo 2005-09-15 20:57:04.000000000 +0100 | ||
+++ coreutils-5.97/src/uname.c 2006-08-24 17:15:56.000000000 +0100 | ||
@@ -155,7 +155,7 @@ | ||
main (int argc, char **argv) | ||
{ | ||
int c; | ||
- static char const unknown[] = "unknown"; | ||
+ static char unknown[] = "unknown"; | ||
|
||
/* Mask indicating which elements to print. */ | ||
unsigned int toprint = 0; | ||
@@ -249,13 +249,35 @@ | ||
|
||
if (toprint & PRINT_PROCESSOR) | ||
{ | ||
- char const *element = unknown; | ||
+ char *element = unknown; | ||
#if HAVE_SYSINFO && defined SI_ARCHITECTURE | ||
{ | ||
static char processor[257]; | ||
if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor)) | ||
element = processor; | ||
} | ||
+#else | ||
+ { | ||
+ struct utsname u; | ||
+ uname(&u); | ||
+ element = u.machine; | ||
+#ifdef linux | ||
+ if(!strcmp(element, "i686")) { /* Check for Athlon */ | ||
+ char cinfo[1024]; | ||
+ FILE *f=fopen("/proc/cpuinfo", "r"); | ||
+ if(f) { | ||
+ while(fgets(cinfo, 1024, f)) { | ||
+ if(!strncmp(cinfo, "vendor_id", 9)) { | ||
+ if(strstr(cinfo, "AuthenticAMD")) | ||
+ element="athlon"; | ||
+ break; | ||
+ } | ||
+ } | ||
+ fclose(f); | ||
+ } | ||
+ } | ||
+#endif | ||
+ } | ||
#endif | ||
#ifdef UNAME_PROCESSOR | ||
if (element == unknown) | ||
@@ -293,7 +315,7 @@ | ||
|
||
if (toprint & PRINT_HARDWARE_PLATFORM) | ||
{ | ||
- char const *element = unknown; | ||
+ char *element = unknown; | ||
#if HAVE_SYSINFO && defined SI_PLATFORM | ||
{ | ||
static char hardware_platform[257]; | ||
@@ -301,6 +323,14 @@ | ||
hardware_platform, sizeof hardware_platform)) | ||
element = hardware_platform; | ||
} | ||
+#else | ||
+ { | ||
+ struct utsname u; | ||
+ uname(&u); | ||
+ element = u.machine; | ||
+ if(strlen(element)==4 && element[0]=='i' && element[2]=='8' && element[3]=='6') | ||
+ element[1]='3'; | ||
+ } | ||
#endif | ||
#ifdef UNAME_HARDWARE_PLATFORM | ||
if (element == unknown) |
Oops, something went wrong.