Re: problem?

"tjoen" ([email protected] via blfs-support Mailing List) <[email protected]> Mon, 23 Mar 2026 11:42:59 +0100
Newsgroups gmane.linux.lfs.beyond.support
Organization dds.nl
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1774262590-1253-18106
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 3/23/26 8:14 AM, Maurice van der Stee ([email protected] via 
blfs-support Mailing List) wrote:
..
>> I think the problem is the huge bash because build with LFS method.
>> Hence the stack error.
>>
> How large is your bash executable 3.6 Mb build as in LFS. This size
> won't cause stack errors.

Too late. I have deleted all

>> I am thinking about building .rpms and installing all the .rpms with
>> the
>> --root= option,
>>
> How do you want to build the rpms ? What spec file are you going to
> use. If you use one derived from LFS nothing will change, and when you
> use one from elsewhere it may cause any kind of problem.

I wrote my own .spec

>> That way I won't ruin my current system.
>> My expectation is that .rpms are compatible
>>
> What do you mean by compatible ?

That the rpm-db still the same. Here my bash.spec
%define debug_package %{nil}
Release: 1
Version: 5.2.32
Group: System Environment/Shells
License: GPL
Name: bash
Source: ftp.gnu.org/pub/bash/%name-%version.tar.gz
Summary: Bourne Again SHell
%description

%prep
%setup -q

%build
./configure --prefix=/usr --bindir=/bin --without-bash-malloc \
   --with-installed-readline
make

%install
[ -d "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf 
$RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install-strip
install -m644 COPYING doc/article.ms $RPM_BUILD_ROOT/usr/share/doc/bash/
install examples/misc/aliasconv.sh $RPM_BUILD_ROOT/usr/share/doc/bash/
cd $RPM_BUILD_ROOT/
install -d etc/skel
cat > etc/profile <<"EOF"
if [ "`id -u`" -eq 0 ]; then
   PATH=/usr/bin:/usr/sbin:/bin:/sbin
else
   PATH=/usr/bin:/bin
fi
PS1='\w \$ '
export PATH PS1
EOF
cat > etc/skel/.bashrc <<"EOF"
EOF
ln -s bash bin/sh
rm -f usr/share/info/dir

%clean
[ -d "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf 
\$RPM_BUILD_ROOT

%post
install-info --dir-file=/usr/share/info/dir /usr/share/info/bash.info.gz

%files
%defattr(-,root,root)
/bin/*
%config(noreplace) /etc/profile
%config /etc/skel/.bashrc
/usr/include/bash
/usr/lib/bash
/usr/lib/pkgconfig/bash.pc
%doc /usr/share/doc/bash
%doc /usr/share/info/bash.info.gz
/usr/share/locale/*/LC_MESSAGES/bash.mo
%doc /usr/share/man/man1/bash*.1.gz

%changelog
* Sat Jan 11 2025 tjoen
- 5.2.32
* Wed May 11 2022 tjoen
- 5.1.16
* Sun Apr 25 2021 tjoen
- 5.1
* Wed Jul 22 2020 tjoen
- 5.0.18



------------=_1774262590-1253-18106
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-support
Unsubscribe: See the above information page

------------=_1774262590-1253-18106--