LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-16-2017, 08:19 AM   #1
percy_vere_uk
Member
 
Registered: Oct 2008
Location: Dorset, UK
Distribution: Arch, Lfs, Gentoo, Debian, Slackware
Posts: 98

Rep: Reputation: 12
jhalfs sed: -e expression #1, char 55:Invalid preceding regular expression


Hi

I have sucessfully built jhalfs using book Version 8.0

Now I am trying to build wicd from blfs Version 8.0 .

Quite a few packages have built ok, but I am now getting the folowing error when building '002-z-xorg-env'.

Code:
cd /home/blfs_root
# make
# cd work
# ../gen-makefile.sh
# make

Code:
/home/blfs_root/work/logs/002-z-xorg-env

sed: -e expression #1, char 55: Invalid preceding regular expression

Code:
/home/blfs_root/work/Makfile

002-z-xorg-env:  
	@$(call echo_message, Building)
	@/bin/bash progress_bar.sh $@ $$PPID &
	@source ../envars.conf && ../scripts/$@ >logs/$@ 2>&1
	@xsltproc --stringparam packages ../packages.xml \
	--stringparam package xorg-env \
	-o track.tmp \
	../xsl/bump.xsl $(TRACKING_FILE) && \
	sed -i 's@PACKDESC@/home/blfs_root/packdesc.dtd@' track.tmp && \
	xmllint --format --postvalid track.tmp > $(TRACKING_FILE) && \
        rm track.tmp && \
	touch  $@ && \
	sleep .25 && \
	echo -e "\n\n "$(BOLD)Target $(BLUE)$@ $(BOLD)OK && \
	echo --------------------------------------------------------------------------------$(WHITE)

Any help on this would be appreciated.


percy
 
Old 07-16-2017, 08:24 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
if I understood it well:
Code:
	@source ../envars.conf && ../scripts/$@ >logs/$@ 2>&1
this line caused that error message and ../scripts/002-z-xorg-env contains that sed script.
 
1 members found this post helpful.
Old 07-16-2017, 08:45 AM   #3
percy_vere_uk
Member
 
Registered: Oct 2008
Location: Dorset, UK
Distribution: Arch, Lfs, Gentoo, Debian, Slackware
Posts: 98

Original Poster
Rep: Reputation: 12
pan64

Thanks for your quick reply.

Looking down at the next few Makefiles to be built they all seem to contain the same line.

So is there a way over this so I can continue building.
 
Old 07-17-2017, 02:17 AM   #4
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Sounds like it could be another unicode issue. Try changing the LC_CTYPE in front of those commands.

Code:
LC_CTYPE=en_US.UTF-8 ../gen-makefile.sh
LC_CTYPE=en_US.UTF-8 make
Be sure to start from a fresh untar though...

PS: Wait, if it is Python or some such you might have to LANG=en_US.UTF-8 instead.

Last edited by Luridis; 07-17-2017 at 02:18 AM.
 
Old 07-18-2017, 08:40 AM   #5
percy_vere_uk
Member
 
Registered: Oct 2008
Location: Dorset, UK
Distribution: Arch, Lfs, Gentoo, Debian, Slackware
Posts: 98

Original Poster
Rep: Reputation: 12
Luridis

Thanks for your input I will try this as soon as I can.
 
Old 07-21-2017, 04:58 AM   #6
percy_vere_uk
Member
 
Registered: Oct 2008
Location: Dorset, UK
Distribution: Arch, Lfs, Gentoo, Debian, Slackware
Posts: 98

Original Poster
Rep: Reputation: 12
Luridis I have carried out a fresh untar and changed the LC_CTYPE as you suggested.

Code:
LC_CTYPE=en_US.UTF-8 ../gen-makefile.sh
LC_CTYPE=en_US.UTF-8 make
The error is the same.

I have been able to install some packages as long as they do not need the X Window System Environment.

I can only conclude that 002-z-xorg-env is the equivalent of 'Setting up the Xorg Build Environment' in the book.

Has anyone been able to build 002-z-xorg-env without this error?
 
Old 07-21-2017, 05:04 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
why don't you check the script itself, maybe you will find something useful?
 
Old 07-21-2017, 06:27 AM   #8
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Where is this z-org-env from? I just checked the Wicd package and there's no file of that name, or anything like it in the package.
 
Old 07-21-2017, 07:30 AM   #9
percy_vere_uk
Member
 
Registered: Oct 2008
Location: Dorset, UK
Distribution: Arch, Lfs, Gentoo, Debian, Slackware
Posts: 98

Original Poster
Rep: Reputation: 12
Thanks for your responses on this.

I can only conclude that 002-z-xorg-env is the equivalent of 'Setting up the Xorg Build Environment' in the blfs book.

Yes thats right you cannot find any information on z-xorg-env on the web. But if you do as below.

Code:
/home/blfs_root  
make    
X + Window and Display Managers --->  X Window System Environment --->  xorg-env
xorg-env is at the top of the choices and you will see I believe the packages are in the same order as the blfs book.

xorg-env is not in the book but 'Setting up the Xorg Build Environment' is the first thing you need to do from the book. And as jhalfs follows the book then I came to the conclusion that xorg-env does the same job as 'Setting up the Xorg Build Environment'

The log and makefile are as I originaly posted on here.
 
Old 07-21-2017, 02:33 PM   #10
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
There is no script to setup xorg in the book. There are build instructions, but no build scripts that I know of, unless you're using CLFS. (I am not familiar with that book's process.) If you're building, your best bet is to follow the book exactly as written until you've spent years building LFS. At that point scripting things is more reliable because you'll have developed instincts that will give you and idea what's wrong when something doesn't work.

Last edited by Luridis; 07-21-2017 at 02:34 PM.
 
1 members found this post helpful.
Old 07-22-2017, 07:15 AM   #11
percy_vere_uk
Member
 
Registered: Oct 2008
Location: Dorset, UK
Distribution: Arch, Lfs, Gentoo, Debian, Slackware
Posts: 98

Original Poster
Rep: Reputation: 12
Luridis

Yes I think jhalfs is beyond me at the moment. But I will continue with lfs.

Thanks for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sed: -e expression #1, char 57: unterminated `s' command TashiDuks Programming 9 12-13-2016 11:33 PM
[SOLVED] sed gives :sed: -e expression #1, char 1: unknown command: `'' samasat Linux - Newbie 10 06-09-2012 05:31 PM
sed - regular expression Vilmerok Programming 5 02-26-2009 08:44 AM
sed regular expression Ammad Linux - General 7 10-29-2008 05:52 PM
perl regular expression a char match richikiki Programming 8 07-19-2006 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration