[lfs-support] lfs-uefi

2020-11-04 Thread Alexey Orishko
Hi all,

In lfs-uefi.txt (hints) file it was mentioned that before entering chroot
one has to check if host is booted in uefi mode.
Could someone clarify if build must be done on the same pc where lfs would
be used?
i.e. could I build lfs on my "legacy mode" desktop to be used on uefi
laptop?

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] meson build failure

2020-07-16 Thread Alexey Orishko
On Thu, Jul 16, 2020 at 10:24 PM Ken Moffat  wrote:
>
> On Thu, Jul 16, 2020 at 07:35:47PM +0200, Alexey Orishko wrote:
> > Hi guys,
> >
> > I have a problem building meson (chapter 6.53) in LFS 9.1. I've tried the
> > original meson version and the one from the LFS dev branch (v.0.55.0). I
> > got the following error in v.0.55.0:
> >
> > python3 setup.py build
> > Traceback (most recent call last):
> >   File "setup.py", line 24, in 
> > from setuptools import setup
> >   File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 20,
> > in 
> > from setuptools.dist import Distribution, Feature
> >   File "/usr/lib/python3.8/site-packages/setuptools/dist.py", line 35, in
> > 
> > from setuptools import windows_support
> >   File "/usr/lib/python3.8/site-packages/setuptools/windows_support.py",
> > line 2, in 
> > import ctypes
> >   File "/usr/lib/python3.8/ctypes/__init__.py", line 7, in 
> > from _ctypes import Union, Structure, Array
> > ModuleNotFoundError: No module named '_ctypes'
> >
> > Quick web search indicated that on ubuntu such a problem could be solved by
> > installing libffi-dev. I see only one reference to libffi in LFS and it was
> > built successfully. I was unable to find any threads in the forum, thus I
> > wonder if anyone could help to sort it out.
> >
> > Regards,
> > Alexey
>
> I don't have any obvious suggestions for fixing this, but a couple
> of comments:
>
> First, randomly updating to the latest version of a package which
> did not build (meson in this case) might bring its own problems.  On
> very rare occasions a newer version does solve the problem, but most
> of the time the problem will turn out to be elsewhere.
>
> For libffi, you should have
>
> /usr/include/ffi.h
> /usr/include/ffitarget.h
> /usr/lib/libffi.so
> /usr/lib/libffi.so.7
> /usr/lib/libffi.so.7.1.0
> /usr/lib/pkgconfig/libffi.pc
>
> If any of those are missing then the libffi install is not good.

Yep, files were missing. Thanks for pointing out the place to check.
After fixing build script both libffi and meson are built ok.

> Hmm, libffi shares the same problem as gmp (it makes assumptions
> about what the CPU supports, and on low-end intel CPUs (typically,
> those branded celeron or pentium) it might be a bit too optimistic
> about what op-codes are available.  No idea if that could be
> relevant to your problem.
>
> ĸen
Just for reference, I build on Intel Core i9-9900K.

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] meson build failure

2020-07-16 Thread Alexey Orishko
Hi guys,

I have a problem building meson (chapter 6.53) in LFS 9.1. I've tried the
original meson version and the one from the LFS dev branch (v.0.55.0). I
got the following error in v.0.55.0:

python3 setup.py build
Traceback (most recent call last):
  File "setup.py", line 24, in 
from setuptools import setup
  File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 20,
in 
from setuptools.dist import Distribution, Feature
  File "/usr/lib/python3.8/site-packages/setuptools/dist.py", line 35, in

from setuptools import windows_support
  File "/usr/lib/python3.8/site-packages/setuptools/windows_support.py",
line 2, in 
import ctypes
  File "/usr/lib/python3.8/ctypes/__init__.py", line 7, in 
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'

Quick web search indicated that on ubuntu such a problem could be solved by
installing libffi-dev. I see only one reference to libffi in LFS and it was
built successfully. I was unable to find any threads in the forum, thus I
wonder if anyone could help to sort it out.

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] LFS 9.1 GMP-6.2.0 test suite

2020-06-22 Thread Alexey Orishko
Hi all,

While building LFS 9.1 I got a problem with the description of GMP-6.2.0
test suite results in ch.6.19. In both LFS books it is said that there are
190 tests, but I got 197 "PASS"es. It does not prevent me from going
forwards, but it might be worth fixing in book description.

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] expr core dump

2015-06-22 Thread Alexey Orishko
On Sun, Jun 21, 2015 at 8:17 PM, Armin K.  wrote:
>
> That may be the problem. GMP optimizes itself for a currently running machine.
> Illegal instructions means you are trying to use a CPU instruction from a
> newer architecture. You may want to try to rebuild GMP for generic target
> --build=x86_64-unknown-linux-gnu
>

I've tried to recompile gmp package on the live target with the option
you've mentioned, but make failed with
# make
./gen-fac  0 >fac_table.h || (rm -f fac_table.h; exit 1)
Usage: gen-fac_ui limbbits nailbits
Makefile:1328: recipe for target 'fac_table.h' failed
make: *** [fac_table.h] Error 1

The only explanation I have that it is due to the incorrect gmp
library which was installed earlier. It also failed on the target with
--build=atom-unknown-linux-gnu or without any build option.

However I can rebuild gmp in chroot on the host where LFS was
originally built, copy dir to the target and install gmp from it.
Doesn't look nice, but at least it's a way to fix live systems...

By the way, are there any other packages where I have to specify
target host architecture?

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] expr core dump

2015-06-21 Thread Alexey Orishko
On Sun, Jun 21, 2015 at 8:17 PM, Armin K.  wrote:

>> I'm building LFS in chroot on Intel Core™ i5-3570, but target system
>> is Intel Atom D2550.
>>
>> Alexey
>>
>
> That may be the problem. GMP optimizes itself for a currently running machine.
> Illegal instructions means you are trying to use a CPU instruction from a
> newer architecture. You may want to try to rebuild GMP for generic target
> --build=x86_64-unknown-linux-gnu

Thanks for the hint, I'll try to rebuild it tomorrow.

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] expr core dump

2015-06-21 Thread Alexey Orishko
On Sun, Jun 21, 2015 at 8:09 PM, Armin K.  wrote:
>
> Alexey, was your system built on a machine that has newer hardware
> than the one you're trying to run this on?

I'm building LFS in chroot on Intel Core™ i5-3570, but target system
is Intel Atom D2550.

Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] expr core dump

2015-06-21 Thread Alexey Orishko
On Sun, Jun 21, 2015 at 7:45 PM, Bruce Dubbs  wrote:
>
> Are you trying it in a partial chroot or a complete one?  It's really a
> pretty simple program.
>
> $ ldd /usr/bin/expr
> linux-vdso.so.1 (0x7ffdd7897000)
> libgmp.so.10 => /usr/lib/libgmp.so.10 (0x7fede2217000)
> libc.so.6 => /lib/libc.so.6 (0x7fede1e75000)
> /lib64/ld-linux-x86-64.so.2 (0x7fede248c000)
>

I have a complete BLFS-7.7 with some minor changes (terminal only
version). I've noticed this problem compiling modified kernel:

kernel/sys.c:1118:28: error: expected expression before ‘>>’ token
   v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 40;
^
scripts/Makefile.build:257: recipe for target 'kernel/sys.o' failed
make[1]: *** [kernel/sys.o] Error 1
Makefile:937: recipe for target 'kernel' failed
make: *** [kernel] Error 2

I can see LINUX_VERSION_CODE is blank in include/generated/uapi/linux/version.h

cat include/generated/uapi/linux/version.h
#define LINUX_VERSION_CODE
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

Colleague of mine pointed to expr as a source of the problem during
kernel compile...

Actually, after double checking, the same problem exists on the live
system (kernel 3.18.11 64bit):
# expr 7 \* 9
Illegal instruction

I wonder if we use expr from /tools during initial kernel build in LFS
(coz that part works fine) and after re-entering chroot during BLFS
build or while using real system I'm using a different version of
expr...

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] expr core dump

2015-06-21 Thread Alexey Orishko
On Sun, Jun 21, 2015 at 6:54 PM, Bruce Dubbs  wrote:
>
> I tried that in several systems from the latest svn to one going back to
> 2012 and they all work properly.

Have you tried it in chroot or on real systems?
I get 100% repeatable coredump in chroot.. Do you have any ideas what
could lead to such a result?

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] expr core dump

2015-06-21 Thread Alexey Orishko
Hi guys,

I had a problem to recompile a kernel in LFS-7.7 chroot and after some
debug efforts got to conclusion that it is due to expr problem. If I
run a simple example I get a core dump:

$ expr 7 \* 9
Illegal instruction (core dumped)

$ expr --version
expr (GNU coreutils) 8.23

If I run the same in Ubuntu, it works fine.
$ expr 7 \* 9
63
$ expr --version
expr (GNU coreutils) 8.21

Have anyone noticed such a problem with expr/coreutils latest version?

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Regeneration of udev net rules

2015-06-06 Thread Alexey Orishko
On Thu, Jun 4, 2015 at 10:16 PM, Bruce Dubbs  wrote:
>
> Note that the init-net-rules.sh script will not generate rules in a virtual
> box.  There is generally no guarantee that the MAC address will be the same
> for different instances.

Can the same behaviour be applied when booting from USB Stick?
It is handy to have stick for maintenance purposes and be able to boot
on different hosts, but I had to manually remove all these rules to
make nw working.

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] config files from shadow package

2015-04-08 Thread Alexey Orishko
Hi guys,

If I'm not mistaken, file /etc/login.defs is created in LFS during
installation of shadow package.

I found an odd setting in that file, which is not correct for my build:
ENV_HZHZ=100

The question is: do I need to set it during LFS build to the proper value?
I currently have 250 in the kernel config.

Does anyone know if this value used by any other application or it is
yet another misleading thing in that package? (as core file size is)

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] error: /dev/sdc: No medium found

2015-03-27 Thread Alexey Orishko
On Tue, Mar 24, 2015 at 11:46 PM, Bruce Dubbs  wrote:
> Perhaps you need to raise an issue:
>
> https://github.com/gentoo/eudev/issues

Well, after more digging I found this sh*t is all over net and folks
are complaining about it and blaming systemd/udev.
It looks like this "feature" was introduced around udev 217
See
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1398025

Is it a time to switch to Win-doze?

Cheers,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] error: /dev/sdc: No medium found

2015-03-24 Thread Alexey Orishko
On Sat, Mar 21, 2015 at 3:47 AM, Bruce Dubbs  wrote:
> Bruce Dubbs wrote:
>
> I did report upstream, ...

Did you mention both issues?
Could you provide any link to the report?

I did build 7.7 with eudev version 3.0, but it didn't help me with
neither ICH10 nor C224 chipsets. Even if I have a single disk
connected to it, it complains about some ghost drivers which are
missing.

USB related message is not seen after rules patch.

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] error: /dev/sdc: No medium found

2015-03-20 Thread Alexey Orishko
> On Fri, Mar 20, 2015 at 10:51 PM, Bruce Dubbs  wrote:
  From LFS7.7SVN (chroot):
 # udevadm test /sys/block/sdc 2>&1 | grep error
 error: /dev/sdc: No medium found
>>>
>>>
>>> I also have several messages like this printed on console right after
>>> login prompt appeared, but I've never seen them in 7.5...
>>
>>
>> Yes, I've seen that too.  The message is in eudev.  It appears that it
>> happens when the media is removed.  It's looking at /sys/block/sdc, but it's
>> been removed.  This is something that needs to be sent upstream.
>
> Thanks for the hint. I have removable SCSI disks and it looks like the
> reason for eudev to complain...

Btw, I see that gentoo has a version 3.0 for eudev
http://dev.gentoo.org/~blueness/eudev/eudev-3.0.tar.gz

Could it be used with 7.7 version or should I expect some complication
for stepping version?
Will you take that version in lfs svn branch?

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] error: /dev/sdc: No medium found

2015-03-20 Thread Alexey Orishko
On Fri, Mar 20, 2015 at 10:51 PM, Bruce Dubbs  wrote:
>>>  From LFS7.7SVN (chroot):
>>> # udevadm test /sys/block/sdc 2>&1 | grep error
>>> error: /dev/sdc: No medium found
>>
>>
>> I also have several messages like this printed on console right after
>> login prompt appeared, but I've never seen them in 7.5...
>
>
> Yes, I've seen that too.  The message is in eudev.  It appears that it
> happens when the media is removed.  It's looking at /sys/block/sdc, but it's
> been removed.  This is something that needs to be sent upstream.

Thanks for the hint. I have removable SCSI disks and it looks like the
reason for eudev to complain...

/alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] error: /dev/sdc: No medium found

2015-03-20 Thread Alexey Orishko
On Sun, Mar 15, 2015 at 7:31 PM, Fernando de Oliveira
 wrote:
>>> "error opening USB device 'descriptord' file".

The moment I've switched from 7.5 to 7.7 I got this messages. I have a
few HID devices connected and sometimes I use libusb and in some cases
directly /dev/hidraw. I didn't check the exact scenario when error
appeared on the console.

> From LFS7.7SVN (chroot):
> # udevadm test /sys/block/sdc 2>&1 | grep error
> error: /dev/sdc: No medium found

I also have several messages like this printed on console right after
login prompt appeared, but I've never seen them in 7.5...

/Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Issues with LFS and Cygwin

2015-02-14 Thread Alexey Orishko
On Sat, Feb 14, 2015 at 3:47 AM, Bruce Dubbs  wrote:
> Patricia Holden wrote:
>> prior to the actual build/install processes won't work.  So I'm wondering
>> if that's the root cause of the problem.  Has anyone tried doing this
>> under
>> Cygwin?
>
> The root cause?  A virus named Windows.

Problem is solved easily even on Windoze: do install Ubuntu with
VMware Player (free).
Then you would be able to build LFS in native Linux environment.
You can build system on 16Gb USB stick, USB HDD attached or simply local fs.

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] /etc/limits settings

2015-01-29 Thread Alexey Orishko
Hi all,

It looks like by default no core dump file would be generated on LFS
system. I wonder if someone had any experience with core dump
settings.

If I add something like "* C5000" in the /etc/limits file would it
keep all other values as default ones?
Does this setting affect user space app/daemons only or kernel core
dump is affected as well?
Any recommendation for dump size?

Can something related to core dump settings be stated in /etc/sysctrl.conf?
Is there a full list of parameters available for that file?

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] vfat support

2014-11-26 Thread Alexey Orishko
Hi guys,

Suddenly I've realized that I can mount, but can't format partition
neither with fat not vfat option to mkfs.

I see that support for some fs types provided by util-linux and e2fsprogs:
mkfs.bfs,mkfs.cramfs,mkfs.ext2,mkfs.ext3,mkfs.ext4,mkfs.ext4dev,mkfs.minix.

I also have ntfs-3g package from blfs, but still no vfat support.

Does anyone know, which package provides mkfs.vfat?

BR Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] message text in /etc/rc.d/init.d/rc

2014-11-13 Thread Alexey Orishko
Hi guys,

I've noticed some repeating part of the sentence "the files provided
by the files provided by" in print_error_msg() function of the rc
file:

   MSG="${MSG}If you're able to track this error down to a bug in one of\n"
   MSG="${MSG}the files provided by the files provided by\n"

Just in case someone cares to correct it in "D.1. /etc/rc.d/init.d/rc".

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] HW issues

2014-11-08 Thread Alexey Orishko
On Sat, Nov 8, 2014 at 5:30 AM, Bruce Dubbs  wrote:
> I upgraded an older system's version of seamonkey today and noticed that it
> was causing some swapping.  I had 2G of RAM, but the system can take up to
> 4G.

> In other words, Linux only sees 3112504k.  I suspect a kernel
> misconfiguration, but what?

Just in case, do you have 64-bit kernel set 'y' on the first page on menuconfig?

/alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] dns settings in the static configuration

2014-11-02 Thread Alexey Orishko
On Sun, Nov 2, 2014 at 5:54 PM, Bruce Dubbs  wrote:
> If you set MTU in /etc/ifconfig.* it will be honored.  Although I have no
> way of testing, I believe that using a IPv6 addresses in
> /etc/ifconfig.* will also be honored.

Yes, MTU was set in both dhcp and static mode (done by ifup).
I'll check IPv6 later when I get test setup up and running.

> Network bonding is a fairly advanced capability.  A hint would be more
> appropriate for that.  Do you care to write it?
Yes, why not? I have a working setup for IPv4 and it is quite simple.
I plan to adjust it for more generic use and then I can share results.

Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] dns settings in the static configuration

2014-11-02 Thread Alexey Orishko
On Sun, Nov 2, 2014 at 12:34 AM, Ken Moffat  wrote:
>  What I do not understand is the *concept* of switching between
> static and dhcp as a regular thing to do.  My experience is that ALL
> modern broadband connection devices seem to offer dhcp

It is not about home setup at all.
When a new machine is connected to the alien LAN, dhcp is the easiest
way to get it working for the users without admin access.
At some later point, user could switch to dedicated static ip address
via web interface.

>  If you are building a distro for other people, I am sure you can
> script things, in your preferred scripting language, to do what you
> suggest.

Yes, this is the plan so far.
However I do miss some handy things in LFS/BLFS books which helps to
tune a box: bonding setup, ipv6, mtu, etc.
And I don't believe they are "too advanced" to be included in the book.

cheers,
alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] dns settings in the static configuration

2014-11-01 Thread Alexey Orishko
On Sat, Nov 1, 2014 at 8:57 PM, Bruce Dubbs  wrote:
> How would someone dynamically create resolv.conf without some daemon like
> dhcpcd?

If DNS servers are stated in ifconfig.eth0, why can't ipv4-static
create resolv.conf?
Thus all required configuration would be kept in the single file.
It also helps to maintain all settings intact while switching between
static/dhcp configs (since resolv.conf would be overwritten)
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] dns settings in the static configuration

2014-11-01 Thread Alexey Orishko
On Sat, Nov 1, 2014 at 6:04 PM, Chris Staub  wrote:
>>
> That same page also has mentions creating resolv.conf.

Ok I'll rephrase. In DHCP case resolv.conf generated dynamically. Is
there a way to generate resolv.conf dynamically for the static
configuration variant based on the settings from ifconfig.eth0?
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] dns settings in the static configuration

2014-11-01 Thread Alexey Orishko
Hi all,

Chapter 7 provides an example of the static IPv4 network interface
configuration.
However there is no dns settings in that file and I don't see any
reference neither in ifup manual nor in ipv4-static.

I seem to recall that /etc/resolv.conf suppose to be dynamically
generated, but I can't figure any other way to configure dns servers
than manually edit that file.

Is there any other way to configure dns servers in the LFS∕BLFS static
configuration?

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] 64-bit Blues

2014-10-14 Thread Alexey Orishko
On Tue, Oct 14, 2014 at 4:40 PM, Роберт Киммель  wrote:
> So my problem is, can I build a 64-bit kernel under a 32-bit LFS, following
> the standard LFS instructions?

I have a bit different proposal for you: get 64-bit Knoppix or Ubuntu
(or whateven distro you like) on 16-32GB USB stick and do a build of
64bit LFS+BLFS. You can either use a spare partition of your hdd (if
you have one), use USB hdd or another USB stick.
After build is finished, make cpio archive of LFS partition and then
you can put LFS on any other disk.
Problem with using CLFS as I see it is incompatibility of its init
scripts with BLFS setup/scripts.

Cheers,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] How about adding some introductory content of partition operations to LFS Book Section 2.4?

2014-10-06 Thread Alexey Orishko
On Sat, Oct 4, 2014 at 7:23 PM, Bruce Dubbs  wrote:
> Really, about the only difference is the tool used for modifying the
> partition.  Creating partitions is something the user should already know
> how to do.
>

You would have some troubles with 3TB disks formatted as MBR. It's
also nice to mention...

/alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] issue with 6.9.2. Configuring Glibc - localtime

2014-10-02 Thread Alexey Orishko
On Thu, Oct 2, 2014 at 12:37 AM, Bruce Dubbs  wrote:
> What would you suggest should be added to the
> LFS book and still support a separate /usr partition?

At the end of ch.6.9.2 after this passage:
" ..Then create the /etc/localtime file by running:
cp -v /usr/share/zoneinfo/ /etc/localtime
Replace  with the name of the time zone selected (e.g., Canada/Eastern). "

add something like:
"If you don't plan to have a separate /usr partition, you can create a
symbolic link instead:
ln -sf /usr/share/zoneinfo/ /etc/localtime
This would help your applications to track back original zone location
information with readlink (e.g. "America/Los_Angeles”)."

/alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] issue with 6.9.2. Configuring Glibc - localtime

2014-10-02 Thread Alexey Orishko
On Thu, Oct 2, 2014 at 9:33 AM, Steve Crosby  wrote:
> You can just use zdump to see what timezone setting is being set in
> your localtime file
>
> $ zdump /etc/localtime
> /etc/localtime  Wed Aug  7 23:52:25 2013 EDT

Getting offset from GMT is not the point.
How could you track the original city user selected, if file is a copy?

/alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] issue with 6.9.2. Configuring Glibc - localtime

2014-10-01 Thread Alexey Orishko
On Wed, Oct 1, 2014 at 1:08 PM, akhiezer  wrote:
> Do you mean that it's not easy for progs to know which original file
> had been copied over to /etc/localtime ? If yes, then ref e.g.
> '/etc/localtime-copied-from' symlink below.

As proposed by soemone online, one way to map copied file is to
compare md5 checksum. However the result is not a single entry:

$ md5sum /etc/localtime
410c65079e6d14f4eedf50c19bd073f8  /etc/localtime

$ find /usr/share/zoneinfo -type f | xargs md5sum | grep
410c65079e6d14f4eedf50c19bd073f8
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/GB
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/posix/GB
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/posix/GB-Eire
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/posix/Europe/Belfast
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/posix/Europe/Guernsey
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/posix/Europe/Jersey
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/posix/Europe/Isle_of_Man
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/posix/Europe/London
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/GB-Eire
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/Europe/Belfast
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/Europe/Guernsey
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/Europe/Jersey
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/Europe/Isle_of_Man
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/Europe/London

Another example:
$ cp  /usr/share/zoneinfo/Europe/Oslo  /etc/localtime
$ md5sum /etc/localtime
bf4f10e6703e5142a7c4d23dc4cd7ef0  /etc/localtime

$ find /usr/share/zoneinfo -type f | xargs md5sum | grep
bf4f10e6703e5142a7c4d23dc4cd7ef0
bf4f10e6703e5142a7c4d23dc4cd7ef0  /usr/share/zoneinfo/Atlantic/Jan_Mayen
bf4f10e6703e5142a7c4d23dc4cd7ef0  /usr/share/zoneinfo/posix/Atlantic/Jan_Mayen
bf4f10e6703e5142a7c4d23dc4cd7ef0  /usr/share/zoneinfo/posix/Arctic/Longyearbyen
bf4f10e6703e5142a7c4d23dc4cd7ef0  /usr/share/zoneinfo/posix/Europe/Oslo
bf4f10e6703e5142a7c4d23dc4cd7ef0  /usr/share/zoneinfo/Arctic/Longyearbyen
bf4f10e6703e5142a7c4d23dc4cd7ef0  /usr/share/zoneinfo/Europe/Oslo

How application (user interface/c/bash/etc) uniquely and reliably
present a location set by user earlier, if /etc/localtime is a copy
instead of sym link?

- On Debian-based systems (including Ubuntu), /etc/timezone contains
the right answer.
- On some Redhat-based systems (CentOS, RHEL, Fedora), /etc/localtime
is a symlink to (for example) /usr/share/zoneinfo/Europe/London.
- OpenBSD seems to use the same scheme as RedHat.

As I see it, several major distros provide a solution to this problem,
but LFS does not.
A few additions lines would help others who will end up with this
problem at some point later.

Cheers,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] issue with 6.9.2. Configuring Glibc - localtime

2014-10-01 Thread Alexey Orishko
Hi,

While using LFS system I found one problem related to recommendations in ch.
6.9.2. Configuring Glibc (ch. number from devel book):
it is impossible for C-application (or bash script) to track down
timezone/location if original file is copied to /etc/localtime.

I would recommend to change suggestion in the book from copying to
making a symbolic link, thus allowing to use readlink(3) to track down
an original file:

"Then create the /etc/localtime file by running:
ln -sf /usr/share/zoneinfo/ /etc/localtime"

Comment might also be provided in the errata of the current book.

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Why not always use a longterm support kernel?

2014-09-28 Thread Alexey Orishko
On Sun, Sep 28, 2014 at 9:38 AM, Simon Geard  wrote:
> Yeah... it's whatever the current stable kernel was when that version of
> the book was released. It wouldn't make much sense for a project like
> LFS to stick to the long-term-support releases, since unless there's
> good reason not to, LFS tends to stay current with *everything*.

For private use and just for fun, one can even use LFS with linux-next.

However, if building commercial system based on LFS it's preferable to
have bug fixes for a couple of years guaranteed and avoid kernel
upgrade. For example, I had to pick to 3.12.x coz it was the latest
long-term release last March.

Anyway, using something like log-term kernel release in the book is nice,
but not necessary if kernel version can be changed during LFS build.

/alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] [blfs-support] LFS and BLFS Version 7.6 is released

2014-09-25 Thread Alexey Orishko
On Tue, Sep 23, 2014 at 8:12 AM, Bruce Dubbs  wrote:
> The Linux From Scratch community is pleased to announce the release of LFS
> Version 7.6, BLFS Version 7.6, LFS Systemd Version 7.6, and BLFS Systemd
> Version 7.6.
>
> This release is a major update to both LFS and BLFS and now includes
> separate versions for systemd.
>
> The LFS releases include toolchain updates to glibc-2.20 and gcc-4.9.1. In
> total, 26 packages were updated and 8 packages added from LFS 7.5. [0][1]
>

I would recommend to add a note about bash vulnerability for both LFS
and BLFS 7.6.
See http://seclists.org/oss-sec/2014/q3/649,

Check your bash with:
env x='() { :;}; echo vulnerable' bash -c 'echo hello'

Reagrds,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [blfs-support] BLFS 7.5 broken link in Apache chapter

2014-04-28 Thread Alexey Orishko
On Mon, Apr 28, 2014 at 11:22 AM, Bruce Dubbs  wrote:
>
> It looks like browsers are helping and adding the host.  The actual html is
>
> See 
> /usr/share/httpd/manual/configuring.html

Thanks, I was not aware, that browsers are so "smart".

Regards,
Alexey
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page