bootchart icon indicating copy to clipboard operation
bootchart copied to clipboard

tmpfs folder in /lib folder

Open tele1 opened this issue 9 years ago • 9 comments

/lib/bootchart/tmpfs

This not good place for tmpfs, REALLY :-) Maybe /tmp folder will better than /lib ?

When I builded rpm package, tmpfs folder not exist. I added this hand to spec file

%make_install

this fix bug with not installed folder

install -m 755 -d %{buildroot}/lib/bootchart/tmpfs

PS: debug option for bootchart will be great idea ;-)

tele1 avatar Mar 03 '15 10:03 tele1

/lib may be not the best but served us well during this years :) make install should already take care of creating the dir, so possibly something is wrong in the packaging perhaps? What do you mean by debug option?

xrmx avatar Mar 03 '15 14:03 xrmx

  • About make install, I don't know, this is log from compile: http://wklej.org/id/1654122/

    In line 21 you have make

    make CFLAGS="$RPM_OPT_FLAGS"

What do optflags macro:

$ rpm --eval=%{optflags} -O2 -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables

In line 123 you have make_install

%make_install

What do %make_install macro:

$ rpm --eval=%make_install make install DESTDIR=/home/gg/src/rpm/BUILDROOT/%{name}-%{version}-%{release}.i386

     In line 130 you see this folder is created but not have permission.

When I installed bootchart hand , this also not have permission, but I checked folder in file manager and it have , so maybe when I installed hand "make install" copied permission from above command to this folder.

But when I tried build package this folder not exist. From 146 to 166 line I see scripts, maybe this scripts removed this folder, but I don't know why.

  • About debug option... I want log , for example in ~/tmp folder or /tmp how it working, I want see errors because I have problem with bootchart2
  1. I have problem run this in my system PCLinuxOS 32bit from Grub2 OpenSuse I see files in /lib/bootchart/tmpfs so it run , but I don't know why not working. (scripts run in default for all rpm build, I can not remove it)
  2. I tested on virtualbox with PCLinuxOS, bootchart2 working with Grub1 and Grub2 (from pclinuxos) but my colleague from forum have chart compressed to right
    http://postimg.org/image/smwqdc0vr/full/ ( I don't remember this problem in virtualbox , but I'm not sure ) He probably use grub2 from Fedora and this is chart PCLinuxOS.

tele1 avatar Mar 04 '15 08:03 tele1

The rpm specfile you are mentioning is not made by us. It's a distro specific one so you should resolve with whome has actually packaged bootchart2 for your distro.

xrmx avatar Mar 04 '15 09:03 xrmx

rpm spec file is very similar for all distro, the difference is on version rpm, and sometimes in macro if is build new, and name dependencies. If this is not problem with rpm in OpenSuse and Fedora maybe this is problem version rpm. Or maybe what you said It's a distro specific because use own also scripts. (if this is true)

tele1 avatar Mar 04 '15 10:03 tele1

i mean that we cannot fix something that is not in this repository :) make install properly creates the directory, so the issue is not in our build scripts but in the packaging.

xrmx avatar Mar 04 '15 10:03 xrmx

This is my spec file bootchart2: http://wklej.org/id/1654216/

I not added only script which will add bootchart2 to Grub1 and Grub2 because I don't know how.

Use " e " key when Grub started and add option hand is more easy.

tele1 avatar Mar 04 '15 10:03 tele1

I don't know anything about rpm but google found this opensuse factory rpm you can use as reference: ftp://www.rpmfind.net/linux/RPM/opensuse/factory/aarch64/aarch64/bootchart-2.0.14.7-1.1.aarch64.html src rpm link: http://download.opensuse.org/ports/aarch64/source/factory/repo/oss/suse/src/bootchart-2.0.14.7-1.1.src.rpm

xrmx avatar Mar 04 '15 11:03 xrmx

This macro

%service_add_pre looks like systemd command/ macro (I'm not sure) , Fedora also use systemd. PCLinuxOS can use only Grub1 , Grub2 and maybe LILO, but not systemd. I tried find grub command how add bootchart2 to Grub but maybe not exist.

tele1 avatar Mar 04 '15 11:03 tele1

The rules for grub should be both in the man page and in the README

xrmx avatar Mar 04 '15 15:03 xrmx