Compare commits

...

73 Commits
f10 ... master

Author SHA1 Message Date
Parag Nemade 26423f95b1
Add BuildRequires: gcc as per packaging guidelines 2018-02-19 18:37:42 +05:30
Than Ngo 2184ad9d71 fixed FTBS 2018-02-13 17:16:02 +01:00
Fedora Release Engineering d584361f88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 12:55:04 +00:00
Igor Gnatenko cc4241b4f1
bump release
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-03 10:52:55 +01:00
Miro Hrončok 8bb47e4e7f greps are now in /usr/bin
See https://bugzilla.redhat.com/show_bug.cgi?id=1540485
2018-02-02 17:04:10 +00:00
Sébastien Santoro 3eebfea3c5 /usr/bin/mailx -> /bin/mailx
The mailx command is still located in /bin
2017-11-13 20:20:37 +01:00
Igor Gnatenko 75ae095e91 /usr/bin/*grep are in /bin still
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-13 18:08:28 +01:00
Igor Gnatenko 1d41f7557e /bin/ed is in /usr/bin/ed now
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-13 18:01:18 +01:00
Ondřej Vašík 73bc43b9f7 change /bin requirements to /usr/bin 2017-11-09 14:56:49 +01:00
Igor Gnatenko b47268f632 /bin -> /usr/bin
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-09 14:01:35 +01:00
Ondřej Vašík 272ed478e7 Merge Fedora Release Engineering commits 2017-11-06 14:53:21 +01:00
Ondřej Vašík 5b49ebde9c drop the postscriptlet specific for itanium completely(#1508613) 2017-11-06 14:51:21 +01:00
Fedora Release Engineering 57ec8c59a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 07:38:00 +00:00
Fedora Release Engineering 61ac859d2b - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 13:02:05 +00:00
Fedora Release Engineering a71add7120 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 11:37:30 +00:00
Ondřej Vašík 5bd31bfddf require ncurses-compat-libs - as LSB strictly requires libncurses.so.5 (#1392972) 2016-11-10 15:11:49 +01:00
Petr Písař fb170cb733 Mandatory Perl build-requires added <https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl> 2016-06-24 09:41:36 +02:00
Parag Nemade 8974c13df2 Resolves:rh#1307989: FTBFS in rawhide by adding perl-Getopt-Long in BuildRequires
- Drop Group: tag
- Added %license tag
- Changed %define -> %global
2016-02-23 14:34:26 +05:30
Fedora Release Engineering 50cbb32048 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 22:03:21 +00:00
Dennis Gilmore 7aa55d9705 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 22:12:32 +00:00
Parag Nemade c6610dc0a8 Resolves:rh#1133536 - redhat-lsb does not requires /usr/sbin/sendmail 2014-08-27 22:58:22 +05:30
Peter Robinson 6d42d7cc5e - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 23:44:39 +00:00
Dennis Gilmore 6aed244b49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 21:09:22 -05:00
Ondřej Vašík 2273ca963a add support for ppc64le (#1094371) 2014-05-06 16:32:42 +02:00
Peter Robinson b8280d2b1f Update aarch64 patch 2014-04-23 16:33:48 +01:00
Ondřej Vašík 5363ff93d8 Remove nsswitch handling - broken and unnecessary - (#986728, #915147) 2013-11-25 18:18:26 +01:00
Ondřej Vašík 7a74cc2a2c fuser moved from /sbin to /usr/sbin/ (#1023283) 2013-10-29 20:11:00 +01:00
Ondřej Vašík 7b5e4f8e57 pidof moved from /sbin to /usr/bin/ as part of the transfer to procps-ng package 2013-10-17 18:06:43 +02:00
Ondřej Vašík d49dc014c8 fix the broken dependency caused by hostname move after recent post UsrMove cleanup 2013-10-16 14:43:17 +02:00
Ondřej Vašík f4d0ef2c0b fix the patch for aarch64 support to be not patch of patch but real patch (sorry, simply, fix aarch64 build) 2013-08-13 16:09:15 +02:00
Ondřej Vašík bc35b8acdb Require sil-abyssinica-fonts in supplemental(#994341), Fully specify requirements on subpackages(#971386) 2013-08-08 15:09:41 +02:00
Petr Písař 09676c29c4 Perl 5.18 rebuild 2013-08-03 14:18:51 +02:00
Dennis Gilmore 4d697b4a6a dont use -static when compiling redhat_lsb_trigger on arm 2013-07-26 18:42:02 -05:00
Petr Písař 98c0adc862 Perl 5.18 rebuild 2013-07-17 23:16:51 +02:00
Ondřej Vašík 471189bbce fix the aarch64 ldso name 2013-06-11 16:54:13 -04:00
Ondřej Vašík d8dec5998f fix build on aarch64 (#973343), fix the defines for arm and aarch64 (may need adjustment) 2013-06-11 14:51:00 -04:00
Ondřej Vašík 85b071a0f6 require spax instead of pax (more POSIX compatible) (#965658), require another set of perl modules in -languages (#959129), polish a bit the nsswitch.conf hack - include mdns4_minimal (#915147) 2013-05-23 15:48:45 +02:00
Ondřej Vašík 2337dccebe require /usr/bin/cpio (binary moved as part of UsrMove) 2013-03-12 16:17:54 +01:00
Ondřej Vašík d4d4682753 spec file sanity cleanup 2013-03-01 10:57:43 +01:00
Ondřej Vašík d4af354b87 require perl(Pod::Checker), perl(B::Lint) and perl(Text::Soundex) in languages (#916898) 2013-03-01 10:31:44 +01:00
Ondřej Vašík aeb2710293 require perl(Pod::LaTeX) in languages (#908705), require xorg-x11-server-Xvfb in supplemental (#896058) 2013-02-08 14:10:54 +01:00
Ondřej Vašík ef6ff2fadc require abattis-cantarell-fonts in supplemental (#892998) 2013-01-10 15:43:35 +01:00
Ondřej Vašík a1d0ecadfd ship README and COPYING file in -core subpackage (actually it is main package) 2012-12-14 15:15:19 +01:00
Ondřej Vašík aeb6e37c31 really require libpng12.so.0 in other architectures (#881596, oops, I probably had unsaved spec file 2012-12-13 07:36:21 +01:00
Ondřej Vašík 1f2021f336 require xorg-x11-fonts-ISO8859-1-{75,100}dpi in -supplemental (#883385), require perl(XML::LibXML) (#880954), keep usermodified /etc/nsswitch.conf as /etc/nsswitch.conf.rpmsave, warn about modification (#867124), require libpng12.so.0 in other architectures (#881596) 2012-12-05 14:51:02 +01:00
Ondřej Vašík c36b09775a add new subpackage -supplemental for LSB testuite-only dependencies, Require net-tools in -supplemental (#882122) 2012-12-05 14:09:29 +01:00
Parag Nemade e9fbb7c0e5 Resolves:rh#873066 - missing dependency /bin/su moved to /usr/bin/su 2012-11-05 08:51:42 +05:30
Dennis Gilmore 060d47760b - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 10:22:53 -05:00
Parag Nemade d9bd2fe6ce Resolves:rh:#825261: redhat-lsb scripts blow away my /etc/nsswitch.conf 2012-05-30 10:57:03 +05:30
Parag Nemade adeb067197 Resolves:rh#824305: Dependency glibc-common%{?_isa} should be changed to glibc-common only 2012-05-23 20:22:25 +05:30
Parag Nemade b974bc4681 Resolves:rh:#806190: gethostbyaddr sets h_errno to 3, not HOST_NOT_FOUND
- Resolves:rh:#799284: perl(Pod::Plainer) is required by LSB 4.1
- Resolves:rh:#821308: redhat-lsb 4.1 test libpn12.so.0 failed on fedora 17
2012-05-15 14:14:30 +05:30
Parag Nemade 4d8d159f61 Update to 4.1 release
- Added -core, -cxx, -desktop, -languages, -printing modules as subpackages
- Added submod-security, -submod-multimedia subpackages
- Implements http://refspecs.linux-foundation.org/LSB_4.1.0/
- Resolves:rh#800249: new package update review by Parag.
2012-03-19 14:45:39 +05:30
Dennis Gilmore 8575c04370 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 20:46:00 -06:00
Parag Nemade e6ba58c4e4 Resolves:rh#758383:- redhat-lsb does not pull in required perl-Pod-Perldoc 2011-11-30 18:43:46 +05:30
Parag Nemade 290d7c034e Resolves:rh#738256:- redhat-lsb fails to build on ARM 2011-11-30 15:52:57 +05:30
Parag Nemade 1952ce74b5 Resolves:rh#745100: Add requires: perl-Digest-MD5 2011-10-13 12:17:06 +05:30
Parag Nemade ad03696cdb Resolves:rh#654689,rh#736822
Added dependencies for perl-Locale-Codes and perl-Class-ISA
2011-10-12 16:31:08 +05:30
Dennis Gilmore 7d112f9e4a - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-09 00:53:20 -06:00
Fedora Release Engineering 5f5eeb114a dist-git conversion 2010-07-29 11:22:43 +00:00
pnemade e7eea08bdb - Fix directory ownership issue for %%{_sysconfdir}/lsb-release.d
- Fix duplicate files issue as reported in bodhi testing for 4.0-4
2010-07-09 07:06:18 +00:00
pnemade f60f4e6030 - Revert license back to GPLv2 2010-06-25 09:30:40 +00:00
pnemade 15a51765cf - Resolves:rh#585858:-redhat-lsb-graphics broken 2010-06-25 04:38:30 +00:00
Lawrence Lim a8a0434ebf split package into core, graphics and printing 2010-01-15 03:37:52 +00:00
Lawrence Lim 292edb7ae1 sources 2010-01-08 07:20:29 +00:00
Bill Nottingham 4da35e5447 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 23:13:17 +00:00
Tom Callaway 3618b39753 fix 514760 2009-10-28 13:43:48 +00:00
Tom Callaway fc95d68b97 fix bz485367 2009-10-21 15:46:22 +00:00
Ville Skyttä 263e64498d Remove unused tarballs from CVS. 2009-08-08 21:23:30 +00:00
Jesse Keating 7d51a1bebf - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 02:54:57 +00:00
Jens Petersen 134fc67818 improve url to LSB WG 2009-04-24 06:34:08 +00:00
Jens Petersen b114c53935 - use dist tag (Debarshi, #496553) 2009-04-23 06:34:39 +00:00
Christopher Aillon 39c62e603a BR glibc-static, Fix ExclusiveArch 2009-04-22 01:57:49 +00:00
Jesse Keating 4adb617a76 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-25 19:29:56 +00:00
10 changed files with 1146 additions and 484 deletions

View File

@ -1 +0,0 @@
redhat-lsb-3.2-1.tar.bz2

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
redhat-lsb-4.0-1.tar.bz2
/redhat-lsb-4.1-1.tar.bz2

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: redhat-lsb
# $Id: Makefile,v 1.1 2004/09/09 11:25:19 cvsdist Exp $
NAME := redhat-lsb
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

Binary file not shown.

131
redhat-lsb-aarch64.patch Normal file
View File

@ -0,0 +1,131 @@
diff --git a/redhat_lsb_trigger.c b/redhat_lsb_trigger.c
index 76db260..f76e5a5 100644
--- a/redhat_lsb_trigger.c
+++ b/redhat_lsb_trigger.c
@@ -424,6 +424,102 @@ register void *__thread_self __asm ("g7");
: inline_syscall_clobbers, "$20", "$21"); \
_sc_ret = _sc_0, _sc_err = _sc_19; \
}
+#elif defined __aarch64__
+#undef SYS_ify
+#define SYS_ify(syscall_name) (__NR_##syscall_name)
+
+# undef INLINE_SYSCALL
+# define INLINE_SYSCALL(name, nr, args...) \
+ ({ unsigned long _sys_result = INTERNAL_SYSCALL (name, , nr, args); \
+ if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (_sys_result, ), 0))\
+ { \
+ __set_errno (INTERNAL_SYSCALL_ERRNO (_sys_result, )); \
+ _sys_result = (unsigned long) -1; \
+ } \
+ (long) _sys_result; })
+
+# undef INTERNAL_SYSCALL_DECL
+# define INTERNAL_SYSCALL_DECL(err) do { } while (0)
+
+# undef INTERNAL_SYSCALL_RAW
+# define INTERNAL_SYSCALL_RAW(name, err, nr, args...) \
+ ({ unsigned long _sys_result; \
+ { \
+ LOAD_ARGS_##nr (args) \
+ register long _x8 asm ("x8") = (name); \
+ asm volatile ("svc 0 // syscall " # name \
+ : "+r" (_x0), "+r" (_x8) \
+ : ASM_ARGS_##nr \
+ : "memory", CLOBBER_ARGS_##nr); \
+ _sys_result = _x0; \
+ } \
+ (long) _sys_result; })
+
+# undef INTERNAL_SYSCALL
+# define INTERNAL_SYSCALL(name, err, nr, args...) \
+ INTERNAL_SYSCALL_RAW(SYS_ify(name), err, nr, args)
+
+# undef INTERNAL_SYSCALL_ERROR_P
+# define INTERNAL_SYSCALL_ERROR_P(val, err) \
+ ((unsigned long) (val) >= (unsigned long) -4095)
+
+# undef INTERNAL_SYSCALL_ERRNO
+# define INTERNAL_SYSCALL_ERRNO(val, err) (-(val))
+
+# define CLOBBER_ARGS_0 CLOBBER_ARGS_1
+# define CLOBBER_ARGS_1 "x1", CLOBBER_ARGS_2
+# define CLOBBER_ARGS_2 "x2", CLOBBER_ARGS_3
+# define CLOBBER_ARGS_3 "x3", CLOBBER_ARGS_4
+# define CLOBBER_ARGS_4 "x4", CLOBBER_ARGS_5
+# define CLOBBER_ARGS_5 "x5", CLOBBER_ARGS_6
+# define CLOBBER_ARGS_6 "x6", CLOBBER_ARGS_7
+# define CLOBBER_ARGS_7 \
+ "x7", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", "x17", "x18"
+
+# define LOAD_ARGS_0() \
+ register long _x0 asm ("x0");
+
+# define ASM_ARGS_0
+# define LOAD_ARGS_1(x0) \
+ long _x0tmp = (long) (x0); \
+ LOAD_ARGS_0 () \
+ _x0 = _x0tmp;
+# define ASM_ARGS_1 "r" (_x0)
+# define LOAD_ARGS_2(x0, x1) \
+ long _x1tmp = (long) (x1); \
+ LOAD_ARGS_1 (x0) \
+ register long _x1 asm ("x1") = _x1tmp;
+# define ASM_ARGS_2 ASM_ARGS_1, "r" (_x1)
+# define LOAD_ARGS_3(x0, x1, x2) \
+ long _x2tmp = (long) (x2); \
+ LOAD_ARGS_2 (x0, x1) \
+ register long _x2 asm ("x2") = _x2tmp;
+# define ASM_ARGS_3 ASM_ARGS_2, "r" (_x2)
+# define LOAD_ARGS_4(x0, x1, x2, x3) \
+ long _x3tmp = (long) (x3); \
+ LOAD_ARGS_3 (x0, x1, x2) \
+ register long _x3 asm ("x3") = _x3tmp;
+# define ASM_ARGS_4 ASM_ARGS_3, "r" (_x3)
+# define LOAD_ARGS_5(x0, x1, x2, x3, x4) \
+ long _x4tmp = (long) (x4); \
+ LOAD_ARGS_4 (x0, x1, x2, x3) \
+ register long _x4 asm ("x4") = _x4tmp;
+# define ASM_ARGS_5 ASM_ARGS_4, "r" (_x4)
+# define LOAD_ARGS_6(x0, x1, x2, x3, x4, x5) \
+ long _x5tmp = (long) (x5); \
+ LOAD_ARGS_5 (x0, x1, x2, x3, x4) \
+ register long _x5 asm ("x5") = _x5tmp;
+# define ASM_ARGS_6 ASM_ARGS_5, "r" (_x5)
+# define LOAD_ARGS_7(x0, x1, x2, x3, x4, x5, x6)\
+ long _x6tmp = (long) (x6); \
+ LOAD_ARGS_6 (x0, x1, x2, x3, x4, x5) \
+ register long _x6 asm ("x6") = _x6tmp;
+# define ASM_ARGS_7 ASM_ARGS_6, "r" (_x6)
+
+# undef INTERNAL_SYSCALL_NCS
+# define INTERNAL_SYSCALL_NCS(number, err, nr, args...) \
+ INTERNAL_SYSCALL_RAW (number, err, nr, args)
+
#endif
#ifdef __i386__
@@ -539,10 +635,14 @@ int main (int argc, char **argv)
p = mempcpy (p, LSBLDSO, sizeof LSBLDSO - 1);
*p++ = '.';
strcpy (p, LSBVER);
+#if defined(__NR_symlink)
if (is_ia64 ())
INTERNAL_SYSCALL (symlink, err, 2, "/emul/ia32-linux/lib/" LDSO, buf);
else
INTERNAL_SYSCALL (symlink, err, 2, LDSO, buf);
+#elif defined(__NR_symlinkat)
+ INTERNAL_SYSCALL (symlinkat, err, 3, AT_FDCWD, LDSO, buf);
+#endif
p = NULL;
}
INTERNAL_SYSCALL (exit, err, 1, 0);
@@ -682,7 +682,7 @@ int __libc_start_main (int argc, char **argv, char **ev,
void *auxvec, void (*rtld_fini) (void),
struct startup_info *stinfo,
char **stack_on_entry)
-#elif defined __arm__
+#elif defined __arm__ || defined __aarch64__
int ___libc_start_main (int (*main) (int argc, char **argv),
int argc, char **argv,

45
redhat-lsb-arm.patch Normal file
View File

@ -0,0 +1,45 @@
--- redhat-lsb-3.2.orig/redhat_lsb_trigger.c 2008-04-16 13:50:14.000000000 -0400
+++ redhat-lsb-3.2/redhat_lsb_trigger.c 2009-02-03 04:39:06.000000000 -0500
@@ -223,6 +223,42 @@ register void *__thread_self __asm ("g7"
# define ASMFMT_1 , "0" (gpr2)
# define ASMFMT_2 , "0" (gpr2), "d" (gpr3)
# define ASMFMT_3 , "0" (gpr2), "d" (gpr3), "d" (gpr4)
+#elif defined __arm__
+# if defined (__ARM_EABI__)
+#undef INTERNAL_SYSCALL_DECL
+#define INTERNAL_SYSCALL_DECL(err) do { } while (0)
+#undef INTERNAL_SYSCALL_RAW
+#define INTERNAL_SYSCALL_RAW(name, err, nr, args...) \
+ ({ \
+ register int _a1 asm ("r0"), _nr asm ("r7"); \
+ LOAD_ARGS_##nr (args) \
+ _nr = name; \
+ asm volatile ("swi 0x0 @ syscall " #name \
+ : "=r" (_a1) \
+ : "r" (_nr) ASM_ARGS_##nr \
+ : "memory"); \
+ _a1; })
+
+#undef INTERNAL_SYSCALL
+#define INTERNAL_SYSCALL(name, err, nr, args...) \
+ INTERNAL_SYSCALL_RAW(SYS_ify(name), err, nr, args)
+
+#define LOAD_ARGS_0()
+#define ASM_ARGS_0
+#define LOAD_ARGS_1(a1) \
+ int _a1tmp = (int) (a1); \
+ LOAD_ARGS_0 () \
+ _a1 = _a1tmp;
+#define ASM_ARGS_1 ASM_ARGS_0, "r" (_a1)
+#define LOAD_ARGS_2(a1, a2) \
+ int _a2tmp = (int) (a2); \
+ LOAD_ARGS_1 (a1) \
+ register int _a2 asm ("a2") = _a2tmp;
+#define ASM_ARGS_2 ASM_ARGS_1, "r" (_a2)
+#undef SYS_ify
+#define SWI_BASE (0x900000)
+#define SYS_ify(syscall_name) (__NR_##syscall_name)
+#endif
#elif defined __sparc__
# ifndef __arch64__
# define __INTERNAL_SYSCALL_STRING \

View File

@ -0,0 +1,43 @@
diff -up redhat-lsb-3.1/lsb_start_daemon.orig redhat-lsb-3.1/lsb_start_daemon
--- redhat-lsb-3.1/lsb_start_daemon.orig 2009-05-15 11:20:17.000000000 -0400
+++ redhat-lsb-3.1/lsb_start_daemon 2009-05-15 11:33:03.000000000 -0400
@@ -4,6 +4,9 @@
nice=
force=
+pidfile=
+user=
+check=
RETVAL=
while [ "$1" != "${1##[-+]}" ]; do
case $1 in
@@ -15,7 +18,28 @@ while [ "$1" != "${1##[-+]}" ]; do
nice=$2
shift 2
;;
+ -p)
+ pidfile="--pidfile $2"
+ shift 2
+ ;;
+ -u)
+ user="--user $2"
+ shift 2
+ ;;
+ -c)
+ check="--check $2"
+ shift 2
+ ;;
+ *)
+ echo "Unknown Option $1"
+ echo "Options are:"
+ echo "-f"
+ echo "-p {pidfile}"
+ echo "-n [+/-nicelevel]"
+ echo "-u {user}"
+ echo "-c {base}"
+ exit 1;;
esac
done
-LSB=LSB-1.1 daemon ${force:-} ${nice:-} $*
+LSB=LSB-1.1 daemon ${force:-} ${nice:-} ${pidfile:-} ${user:-} ${check:-} $*
exit $?

134
redhat-lsb-trigger.patch Normal file
View File

@ -0,0 +1,134 @@
--- redhat_lsb_trigger.c.triggerfix 2008-04-16 18:50:14.000000000 +0100
+++ redhat_lsb_trigger.c 2011-09-14 11:50:42.563080000 +0100
@@ -423,10 +423,76 @@
#define is_ia64() 0
#endif
+char *
+strtok (char *p, const char *delim)
+{
+ static char *olds;
+ const char *d;
+ char *token;
+ if (p == NULL)
+ p = olds;
+ while (*p)
+ {
+ for (d = delim; *d; d++)
+ if (*p == *d)
+ break;
+ if (!*d)
+ break;
+ p++;
+ }
+ if (!*p)
+ {
+ olds = p;
+ return NULL;
+ }
+ token = p;
+ while (*p)
+ {
+ for (d = delim; *d; d++)
+ if (*p == *d)
+ break;
+ if (*d)
+ break;
+ p++;
+ }
+ if (!*p)
+ olds = p;
+ else
+ {
+ *p = '\0';
+ olds = p + 1;
+ }
+ return token;
+}
+
+size_t
+strlen (const char *s)
+{
+ const char *p;
+ for (p = s; *p; ++p);
+ return p - s;
+}
+
+void *
+mempcpy (void *dst, const void *src, size_t n)
+{
+ char *d = dst;
+ const char *s = src;
+ while (n--)
+ *d++ = *s++;
+ return d;
+}
+
+char *
+strcpy (char *dst, const char *src)
+{
+ char *ret = dst;
+ while ((*dst++ = *src++) != '\0');
+ return ret;
+}
+
int main (int argc, char **argv)
{
-/* redhat_lsb_trigger.c:428: warning: unused variable 'ret' */
-/* long ret; */
INTERNAL_SYSCALL_DECL (err);
char lsbsover[] = LSBSOVER;
char *LSBVER, *p = lsbsover;
@@ -450,15 +516,38 @@
int __libc_multiple_threads __attribute__((nocommon));
int __libc_enable_asynccancel (void) { return 0; }
void __libc_disable_asynccancel (int x) { }
+#ifndef __arm__
void __libc_csu_init (void) { }
void __libc_csu_fini (void) { }
+#endif
pid_t __fork (void) { return -1; }
char thr_buf[65536];
-#ifndef __powerpc__
+void
+__attribute__ ((noreturn))
+__stack_chk_fail (void)
+{
+ INTERNAL_SYSCALL_DECL (err);
+ while (1)
+ INTERNAL_SYSCALL (exit, err, 1, 1);
+}
+
+#if defined __powerpc__
+
+struct startup_info
+{
+ void *sda_base;
+ int (*main) (int, char **, char **, void *);
+ int (*init) (int, char **, char **, void *);
+ void (*fini) (void);
+};
+
+int __libc_start_main (int argc, char **argv, char **ev,
+ void *auxvec, void (*rtld_fini) (void),
+ struct startup_info *stinfo,
+ char **stack_on_entry)
+#elif defined __arm__
-/* /usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib64/libc.a(libc-start.o): In function `__libc_start_main':
- * * (.opd+0x10): multiple definition of `__libc_start_main' */
int ___libc_start_main (int (*main) (int argc, char **argv),
int argc, char **argv,
void (*init) (void), void (*fini) (void),
@@ -472,9 +561,7 @@
void (*fini) (void);
};
-/* /usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib64/libc.a(libc-start.o): In function `__libc_start_main':
- * (.opd+0x10): multiple definition of `__libc_start_main' */
-int ___libc_start_main (int argc, char **argv, char **ev,
+int __libc_start_main (int argc, char **argv, char **ev,
void *auxvec, void (*rtld_fini) (void),
struct startup_info *stinfo,
char **stack_on_entry)

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
5b3be7112275d0f5fc604539a8cd3c89 redhat-lsb-3.2-1.tar.bz2
9c1e474cb81c0ee1941c3129e0e50ea1 redhat-lsb-4.1-1.tar.bz2