ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] LFS
@ 2005-05-12  8:13 Alexey Tourbin
  2005-05-12 10:12 ` Victor Forsyuk
  2005-05-12 13:12 ` Dmitry V. Levin
  0 siblings, 2 replies; 11+ messages in thread
From: Alexey Tourbin @ 2005-05-12  8:13 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 127 bytes --]

По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
Не включить ли поддержку LFS в %optflags по умолчанию?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] LFS
  2005-05-12  8:13 [devel] LFS Alexey Tourbin
@ 2005-05-12 10:12 ` Victor Forsyuk
  2005-05-12 13:12 ` Dmitry V. Levin
  1 sibling, 0 replies; 11+ messages in thread
From: Victor Forsyuk @ 2005-05-12 10:12 UTC (permalink / raw)
  To: ALT Devel discussion list

On Thu, May 12, 2005 at 12:13:54PM +0400, Alexey Tourbin wrote:
> По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
> Не включить ли поддержку LFS в %optflags по умолчанию?

Альтернативное предложение - для дискуссии: а может включить LFSные флаги
в секцию predefines файла specs от gcc?

;-)



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] LFS
  2005-05-12  8:13 [devel] LFS Alexey Tourbin
  2005-05-12 10:12 ` Victor Forsyuk
@ 2005-05-12 13:12 ` Dmitry V. Levin
  2005-05-12 14:17   ` [devel] LFS Alexey Tourbin
  1 sibling, 1 reply; 11+ messages in thread
From: Dmitry V. Levin @ 2005-05-12 13:12 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

On Thu, May 12, 2005 at 12:13:54PM +0400, Alexey Tourbin wrote:
> По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
> Не включить ли поддержку LFS в %optflags по умолчанию?

Нет, спасибо.
Use AC_SYS_LARGEFILE.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [devel] Re: LFS
  2005-05-12 13:12 ` Dmitry V. Levin
@ 2005-05-12 14:17   ` Alexey Tourbin
  2005-05-12 15:31     ` Alexey I. Froloff
  2005-05-12 15:47     ` Dmitry V. Levin
  0 siblings, 2 replies; 11+ messages in thread
From: Alexey Tourbin @ 2005-05-12 14:17 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

On Thu, May 12, 2005 at 05:12:24PM +0400, Dmitry V. Levin wrote:
> On Thu, May 12, 2005 at 12:13:54PM +0400, Alexey Tourbin wrote:
> > По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
> > Не включить ли поддержку LFS в %optflags по умолчанию?
> 
> Нет, спасибо.

Обоснование?  Сейчас на каждый N-ый пакет можно повесить багу, что он не
работает с "большими файлами".  А в эпоху 300-гиговых винтов файлы в 2 Гб 
уже и не кажутся большими, кто-то и 29-гиговый бэкап elinks'ом качает,
как в rh #125064.

> Use AC_SYS_LARGEFILE.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Re: LFS
  2005-05-12 14:17   ` [devel] LFS Alexey Tourbin
@ 2005-05-12 15:31     ` Alexey I. Froloff
  2005-05-12 15:50       ` Alexey Tourbin
  2005-05-12 15:47     ` Dmitry V. Levin
  1 sibling, 1 reply; 11+ messages in thread
From: Alexey I. Froloff @ 2005-05-12 15:31 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

* Alexey Tourbin <at@> [050512 19:08]:
> > > По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
> > > Не включить ли поддержку LFS в %optflags по умолчанию?
> > Нет, спасибо.
> Обоснование?
А не сорвёт ли крышу произвольной программе от этого?

> > Use AC_SYS_LARGEFILE.
А вот тут автор знает, что не сорвёт.

-- 
Regards, Sir Raorn.
-------------------
> ALT Linux Team проделала большую работу, теперь
...уже проведённая _профессионально_...
> сборка ядра доступна даже для новичков
...в виде бинарных пакетов :-)
		-- mike in community@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Re: LFS
  2005-05-12 14:17   ` [devel] LFS Alexey Tourbin
  2005-05-12 15:31     ` Alexey I. Froloff
@ 2005-05-12 15:47     ` Dmitry V. Levin
  1 sibling, 0 replies; 11+ messages in thread
From: Dmitry V. Levin @ 2005-05-12 15:47 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

On Thu, May 12, 2005 at 06:17:09PM +0400, Alexey Tourbin wrote:
> On Thu, May 12, 2005 at 05:12:24PM +0400, Dmitry V. Levin wrote:
> > On Thu, May 12, 2005 at 12:13:54PM +0400, Alexey Tourbin wrote:
> > > По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
> > > Не включить ли поддержку LFS в %optflags по умолчанию?
> > 
> > Нет, спасибо.
> 
> Обоснование?  Сейчас на каждый N-ый пакет можно повесить багу, что он не
> работает с "большими файлами".  А в эпоху 300-гиговых винтов файлы в 2 Гб 
> уже и не кажутся большими, кто-то и 29-гиговый бэкап elinks'ом качает,
> как в rh #125064.

Я считаю, что работу по проверке работоспособности софта с LFS не надо
перекладывать с upstream+maintainer на обычных пользователей.

Пусть лучше не поддерживает LFS, чем якобы поддерживает, до первого
большого файла.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [devel] Re: LFS
  2005-05-12 15:31     ` Alexey I. Froloff
@ 2005-05-12 15:50       ` Alexey Tourbin
  2005-05-12 18:03         ` Dmitry V. Levin
  0 siblings, 1 reply; 11+ messages in thread
From: Alexey Tourbin @ 2005-05-12 15:50 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 2654 bytes --]

On Thu, May 12, 2005 at 07:31:47PM +0400, Alexey I. Froloff wrote:
> * Alexey Tourbin <at@> [050512 19:08]:
> > > > По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
> > > > Не включить ли поддержку LFS в %optflags по умолчанию?
> > > Нет, спасибо.
> > Обоснование?
> А не сорвёт ли крышу произвольной программе от этого?

Обоснуй.  Каким именно образом произвольной программе может сорвать крышу?

$ cat test.c
#include <stdio.h>
$ diff -u =(gcc -E test.c) =(gcc -E -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 test.c) 
--- /proc/self/fd/11	2005-05-12 19:49:59 +0400
+++ /proc/self/fd/12	2005-05-12 19:49:59 +0400
@@ -518,9 +518,9 @@
 # 86 "/usr/include/stdio.h" 3 4
 
 
-typedef _G_fpos_t fpos_t;
 
 
+typedef _G_fpos64_t fpos_t;
 
 
 # 138 "/usr/include/stdio.h" 3 4
@@ -548,12 +548,8 @@
 
 
 
-
-
-
-
-
-extern FILE *tmpfile (void);
+# 169 "/usr/include/stdio.h" 3 4
+extern FILE *tmpfile (void) __asm__ ("" "tmpfile64");
 # 180 "/usr/include/stdio.h" 3 4
 extern char *tmpnam (char *__s) ;
 
@@ -584,21 +580,17 @@
 extern int fflush_unlocked (FILE *__stream);
 # 237 "/usr/include/stdio.h" 3 4
 
+# 254 "/usr/include/stdio.h" 3 4
+extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64");
 
+extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64");
 
 
 
 
-extern FILE *fopen (__const char *__restrict __filename,
-      __const char *__restrict __modes);
-
 
 
 
-extern FILE *freopen (__const char *__restrict __filename,
-        __const char *__restrict __modes,
-        FILE *__restrict __stream);
-# 264 "/usr/include/stdio.h" 3 4
 
 # 275 "/usr/include/stdio.h" 3 4
 extern FILE *fdopen (int __fd, __const char *__modes) ;
@@ -823,20 +815,29 @@
 
 extern void rewind (FILE *__stream);
 
-# 688 "/usr/include/stdio.h" 3 4
+# 677 "/usr/include/stdio.h" 3 4
+extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64");
+
+
+extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64");
+
+
+
+
+
 
 
 
+# 702 "/usr/include/stdio.h" 3 4
+extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64");
 
+extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64");
 
 
-extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
 
 
 
 
-extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
-# 711 "/usr/include/stdio.h" 3 4
 
 # 720 "/usr/include/stdio.h" 3 4
 

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Re: LFS
  2005-05-12 15:50       ` Alexey Tourbin
@ 2005-05-12 18:03         ` Dmitry V. Levin
  2005-05-13 12:52           ` Victor Forsyuk
  2005-05-14 12:46           ` Alexey Tourbin
  0 siblings, 2 replies; 11+ messages in thread
From: Dmitry V. Levin @ 2005-05-12 18:03 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

On Thu, May 12, 2005 at 07:50:56PM +0400, Alexey Tourbin wrote:
> On Thu, May 12, 2005 at 07:31:47PM +0400, Alexey I. Froloff wrote:
> > * Alexey Tourbin <at@> [050512 19:08]:
> > > > > По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
> > > > > Не включить ли поддержку LFS в %optflags по умолчанию?
> > > > Нет, спасибо.
> > > Обоснование?
> > А не сорвёт ли крышу произвольной программе от этого?
> 
> Обоснуй.  Каким именно образом произвольной программе может сорвать крышу?

Примерно по той же причине, по которой кривые программы не работают на
64-битных платформах: записывают off_t в int.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Re: LFS
  2005-05-12 18:03         ` Dmitry V. Levin
@ 2005-05-13 12:52           ` Victor Forsyuk
  2005-05-14 12:46           ` Alexey Tourbin
  1 sibling, 0 replies; 11+ messages in thread
From: Victor Forsyuk @ 2005-05-13 12:52 UTC (permalink / raw)
  To: ALT Devel discussion list

On Thu, May 12, 2005 at 10:03:14PM +0400, Dmitry V. Levin wrote:
> On Thu, May 12, 2005 at 07:50:56PM +0400, Alexey Tourbin wrote:
> > On Thu, May 12, 2005 at 07:31:47PM +0400, Alexey I. Froloff wrote:
> > > * Alexey Tourbin <at@> [050512 19:08]:
> > > > > > По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
> > > > > > Не включить ли поддержку LFS в %optflags по умолчанию?
> > > > > Нет, спасибо.
> > > > Обоснование?
> > > А не сорвёт ли крышу произвольной программе от этого?
> > 
> > Обоснуй.  Каким именно образом произвольной программе может сорвать крышу?
> 
> Примерно по той же причине, по которой кривые программы не работают на
> 64-битных платформах: записывают off_t в int.

Среди всех программ собранных для KSI Linux Mandrake с LFS-флагами таких
кривых программ не было, никому крышу не рвало. Было правда одно
"противопоказание" - с такими флагами glibc тогдашняя не собиралась...




^ permalink raw reply	[flat|nested] 11+ messages in thread

* [devel] Re: LFS
  2005-05-12 18:03         ` Dmitry V. Levin
  2005-05-13 12:52           ` Victor Forsyuk
@ 2005-05-14 12:46           ` Alexey Tourbin
  2005-05-14 13:21             ` Dmitry V. Levin
  1 sibling, 1 reply; 11+ messages in thread
From: Alexey Tourbin @ 2005-05-14 12:46 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

On Thu, May 12, 2005 at 10:03:14PM +0400, Dmitry V. Levin wrote:
> > Обоснуй.  Каким именно образом произвольной программе может сорвать крышу?
> 
> Примерно по той же причине, по которой кривые программы не работают на
> 64-битных платформах: записывают off_t в int.

Я правильно понимаю, что stdio никогда на будет правильно работать с
"большими файлами" из-за прототипов:

       int fseek(FILE *stream, long offset, int whence);
       long ftell(FILE *stream);

т.к. long на %ix86 -- 32 бита и 2^31==2Gb ?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [devel] Re: LFS
  2005-05-14 12:46           ` Alexey Tourbin
@ 2005-05-14 13:21             ` Dmitry V. Levin
  0 siblings, 0 replies; 11+ messages in thread
From: Dmitry V. Levin @ 2005-05-14 13:21 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]

On Sat, May 14, 2005 at 04:46:02PM +0400, Alexey Tourbin wrote:
> On Thu, May 12, 2005 at 10:03:14PM +0400, Dmitry V. Levin wrote:
> > > Обоснуй.  Каким именно образом произвольной программе может сорвать крышу?
> > 
> > Примерно по той же причине, по которой кривые программы не работают на
> > 64-битных платформах: записывают off_t в int.
> 
> Я правильно понимаю, что stdio никогда на будет правильно работать с
> "большими файлами" из-за прототипов:
> 
>        int fseek(FILE *stream, long offset, int whence);
>        long ftell(FILE *stream);
> 
> т.к. long на %ix86 -- 32 бита и 2^31==2Gb ?

"The fgetpos and fsetpos functions are alternate interfaces equivalent
to ftell and fseek (with whence set to SEEK_SET), setting and storing
the current value of the file offset into or from the object referenced
by pos."


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-05-14 13:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-12  8:13 [devel] LFS Alexey Tourbin
2005-05-12 10:12 ` Victor Forsyuk
2005-05-12 13:12 ` Dmitry V. Levin
2005-05-12 14:17   ` [devel] LFS Alexey Tourbin
2005-05-12 15:31     ` Alexey I. Froloff
2005-05-12 15:50       ` Alexey Tourbin
2005-05-12 18:03         ` Dmitry V. Levin
2005-05-13 12:52           ` Victor Forsyuk
2005-05-14 12:46           ` Alexey Tourbin
2005-05-14 13:21             ` Dmitry V. Levin
2005-05-12 15:47     ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git