Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmpfs folder in /lib folder #62

Open
tele1 opened this issue Mar 3, 2015 · 9 comments
Open

tmpfs folder in /lib folder #62

tele1 opened this issue Mar 3, 2015 · 9 comments

Comments

@tele1
Copy link

tele1 commented Mar 3, 2015

/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 ;-)

@xrmx
Copy link
Owner

xrmx commented Mar 3, 2015

/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?

@tele1
Copy link
Author

tele1 commented Mar 4, 2015

  • 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.

@xrmx
Copy link
Owner

xrmx commented Mar 4, 2015

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.

@tele1
Copy link
Author

tele1 commented Mar 4, 2015

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)

@xrmx
Copy link
Owner

xrmx commented Mar 4, 2015

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.

@tele1
Copy link
Author

tele1 commented Mar 4, 2015

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.

@xrmx
Copy link
Owner

xrmx commented Mar 4, 2015

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

@tele1
Copy link
Author

tele1 commented Mar 4, 2015

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.

@xrmx
Copy link
Owner

xrmx commented Mar 4, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants