Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 177181 Details for
Bug 249582
sys-apps/util-linux-2.14.1 + uclibc - scriptreplay.c:39: error: `program_invocation_short_name' undeclared (first use in this function)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ported patch from 2.13
util-linux-2.14-uclibc.patch (text/plain), 2.60 KB, created by
Simon Schäfer
on 2009-01-03 02:59:15 UTC
(
hide
)
Description:
ported patch from 2.13
Filename:
MIME Type:
Creator:
Simon Schäfer
Created:
2009-01-03 02:59:15 UTC
Size:
2.60 KB
patch
obsolete
>--- configure 2008-09-10 12:13:51.000000000 +0200 >+++ configure 2009-01-03 02:08:44.000000000 +0100 >@@ -9185,6 +9185,9 @@ > int > main () > { >+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 >+#error taskset unusable >+#endif > int test = SYS_sched_getaffinity; > ; > return 0; >--- misc-utils/scriptreplay.c 2008-08-13 19:15:45.000000000 +0200 >+++ misc-utils/scriptreplay.c 2009-01-03 03:23:11.000000000 +0100 >@@ -30,6 +30,10 @@ > > #include "nls.h" > >+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 >+static const char *program_invocation_short_name; >+#endif >+ > #define SCRIPT_MIN_DELAY 0.0001 /* from original sripreplay.pl */ > > void __attribute__((__noreturn__)) >@@ -133,6 +137,14 @@ > bindtextdomain(PACKAGE, LOCALEDIR); > textdomain(PACKAGE); > >+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 >+ program_invocation_short_name = strrchr(argv[0],'/'); >+ if (program_invocation_short_name) >+ program_invocation_short_name++; >+ else >+ program_invocation_short_name = argv[0]; >+#endif >+ > if (argc < 2 && argc > 4) > usage(EXIT_FAILURE); > >--- sys-utils/ldattach.c 2008-05-29 01:01:02.000000000 +0200 >+++ sys-utils/ldattach.c 2009-01-03 03:40:55.000000000 +0100 >@@ -43,6 +43,10 @@ > # define TIOCSETD 0x5423 > #endif > >+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 >+static const char *program_invocation_short_name; >+#endif >+ > static const char *progname; > static int debug = 0; > >@@ -145,6 +149,14 @@ > bindtextdomain(PACKAGE, LOCALEDIR); > textdomain(PACKAGE); > >+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 >+ program_invocation_short_name = strrchr(argv[0],'/'); >+ if (program_invocation_short_name) >+ program_invocation_short_name++; >+ else >+ program_invocation_short_name = argv[0]; >+#endif >+ > /* parse options */ > progname = program_invocation_short_name; > >--- sys-utils/setarch.c 2008-05-29 01:01:02.000000000 +0200 >+++ sys-utils/setarch.c 2009-01-03 02:12:22.000000000 +0100 >@@ -37,6 +37,10 @@ > #include <sys/utsname.h> > #include "nls.h" > >+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 >+static const char *program_invocation_short_name; >+#endif >+ > #define set_pers(pers) ((long)syscall(SYS_personality, pers)) > > /* Option --4gb has no equivalent short option, use a non-character as a >@@ -245,6 +249,14 @@ > bindtextdomain(PACKAGE, LOCALEDIR); > textdomain(PACKAGE); > >+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 >+ program_invocation_short_name = strrchr(argv[0],'/'); >+ if (program_invocation_short_name) >+ program_invocation_short_name++; >+ else >+ program_invocation_short_name = argv[0]; >+#endif >+ > if (argc < 1) > show_usage(_("Not enough arguments")); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249582
: 177181 |
211050
|
214341
|
214343
|
228597
|
228599