Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

'./configure --prefix=/usr' put /etc directory in /usr/etc #1

Closed
sputnick-dev opened this issue Oct 8, 2015 · 6 comments
Closed

'./configure --prefix=/usr' put /etc directory in /usr/etc #1

sputnick-dev opened this issue Oct 8, 2015 · 6 comments
Assignees
Labels

Comments

@sputnick-dev
Copy link

$ wget https://github.com/HeyuX10Automation/heyu/archive/v2.11-rc2.tar.gz
$ tar zxvf archive/v2.11-rc2.tar.gz
$ cd heyu-2.11-rc2/
$ ./configure --prefix=/tmp/usr
$ make
$ make install
$ find /tmp/usr
/tmp/usr
/tmp/usr/etc
/tmp/usr/etc/heyu
/tmp/usr/etc/heyu/x10.sched.sample
/tmp/usr/etc/heyu/x10config.sample
/tmp/usr/share
...

As you can see, /etc should not be in */usr/etc but /etc

(/tmp is there for debug purpose, feel free to strip it)

@jkrzyszt
Copy link
Contributor

Please try:
./configure --prefix=/tmp/usr --sysconfdir=/etc
You can also run sh ./Configure.sh instead.
More info can be found in README file.

Thanks,
Janusz

@sputnick-dev
Copy link
Author

Ok, it works, but this is the first time (for 10 years as dev/sysadmin) I see an application that install /etc files elsewhere than /etc. Seems not standard...

@jkrzyszt
Copy link
Contributor

Please have a look at this discussion:
https://lists.gnu.org/archive/html/automake/2007-01/msg00069.html

Thanks,
Janusz

@sputnick-dev
Copy link
Author

AFAIK, this seems quite non standard.

To be able to have each part where it should, I finally wrote :

  ./configure --localstatedir=/var --mandir=/usr/share/man --enable-postinst=./post-install.sh --sysconfdir=/etc --prefix=/usr
  make

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=heyu

@jkrzyszt
Copy link
Contributor

AFAIK, this seems quite non standard.

If still not convinced, please have a look at the relevant section of GNU Coding Standards document:
https://www.gnu.org/prep/standards/standards.html#Directory-Variables

./configure --localstatedir=/var --mandir=/usr/share/man --enable-postinst=./post-install.sh --sysconfdir=/etc --prefix=/usr
make

That's pretty similar to what sh Configure.sh --prefix=/usr would do for Linux.

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=heyu

Thanks a lot for packaging Heyu for Arch Linux !!!
Janusz

@jkrzyszt
Copy link
Contributor

Correcting myself:

./configure --localstatedir=/var --mandir=/usr/share/man --enable-postinst=./post-install.sh --sysconfdir=/etc --prefix=/usr
make

That's pretty similar to what sh Configure.sh --prefix=/usr would do for Linux.

That actually doesn't work that way, sorry. Configure.sh itself doesn't accept Autoconf specific options. Being a wrapper over configure, it mimics behaviour of Heyu historical (pre-Autoconf) Configure script. For Linux that means /usr/local prefix is used.

Either use Configure.sh with traditional Heyu directory layout, or fine tune it up to your needs by calling configure with your preferred options directly.

Thanks,
Janusz

@jkrzyszt jkrzyszt self-assigned this Nov 19, 2016
@HeyuX10Automation HeyuX10Automation locked and limited conversation to collaborators Nov 10, 2022
@jkrzyszt jkrzyszt converted this issue into discussion #57 Nov 10, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants