FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 09-21-2008, 12:16 PM
"Roman Kyrylych"
 
Default devtools: double slashes in mkarchroot

Hi all!

Got to chrooting today, to get my packaging process correct.
Here's what I've got:

[root@vostro ~]# echo $CHROOT_SHELL
/chroot64
[root@vostro ~]# mkarchroot $CHROOT_SHELL/root base base-devel sudo
mounting sysfs : /sys
mounting procfs : /proc
binding device nodes : /dev
binding pacman cache : /var/cache/pacman
installing packages:
base
base-devel
sudo
Root : /chroot64/root/
Conf File : /etc/pacman.conf
DB Path : /chroot64/root//var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/
Lock File : /chroot64/root//var/lib/pacman/db.lck
Log File : /chroot64/root//var/log/pacman.log
Targets : base base-devel sudo

Notice the //
I've looked into the source, but haven't found what causes / to appear
after /chroot64/root

--
Roman Kyrylych (*оман Кирилич)
 
Old 09-22-2008, 11:41 AM
Jrgen Htzel
 
Default devtools: double slashes in mkarchroot

Hi
On Sun, Sep 21, 2008 at 03:16:02PM +0300, Roman Kyrylych wrote:
> Hi all!
>
> Got to chrooting today, to get my packaging process correct.
> Here's what I've got:
>
> [root@vostro ~]# echo $CHROOT_SHELL
> /chroot64
> [root@vostro ~]# mkarchroot $CHROOT_SHELL/root base base-devel sudo
> mounting sysfs : /sys
> mounting procfs : /proc
> binding device nodes : /dev
> binding pacman cache : /var/cache/pacman
> installing packages:
> base
> base-devel
> sudo
> Root : /chroot64/root/
> Conf File : /etc/pacman.conf
> DB Path : /chroot64/root//var/lib/pacman/
> Cache Dirs: /var/cache/pacman/pkg/
> Lock File : /chroot64/root//var/lib/pacman/db.lck
> Log File : /chroot64/root//var/log/pacman.log
> Targets : base base-devel sudo
>
> Notice the //
> I've looked into the source, but haven't found what causes / to appear
> after /chroot64/root

I also ran in this issue. libalpm always ensures that paths end with
"/". Dan, can you check the fix?

Jrgen
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 155f8da..37e586e 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -262,11 +262,11 @@ static void setlibpaths(void)
cleanup(ret);
}
if(!config->dbpath) {
- snprintf(path, PATH_MAX, "%s%s", alpm_option_get_root(), DBPATH);
+ snprintf(path, PATH_MAX, "%s%s", alpm_option_get_root(), DBPATH + 1);
config->dbpath = strdup(path);
}
if(!config->logfile) {
- snprintf(path, PATH_MAX, "%s%s", alpm_option_get_root(), LOGFILE);
+ snprintf(path, PATH_MAX, "%s%s", alpm_option_get_root(), LOGFILE + 1);
config->logfile = strdup(path);
}
}
 
Old 09-23-2008, 01:59 AM
"Aaron Griffin"
 
Default devtools: double slashes in mkarchroot

On Sun, Sep 21, 2008 at 7:16 AM, Roman Kyrylych
<roman.kyrylych@gmail.com> wrote:
> Hi all!
>
> Got to chrooting today, to get my packaging process correct.
> Here's what I've got:
>
> [root@vostro ~]# echo $CHROOT_SHELL
> /chroot64
> [root@vostro ~]# mkarchroot $CHROOT_SHELL/root base base-devel sudo
> mounting sysfs : /sys
> mounting procfs : /proc
> binding device nodes : /dev
> binding pacman cache : /var/cache/pacman
> installing packages:
> base
> base-devel
> sudo
> Root : /chroot64/root/
> Conf File : /etc/pacman.conf
> DB Path : /chroot64/root//var/lib/pacman/
> Cache Dirs: /var/cache/pacman/pkg/
> Lock File : /chroot64/root//var/lib/pacman/db.lck
> Log File : /chroot64/root//var/log/pacman.log
> Targets : base base-devel sudo
>
> Notice the //
> I've looked into the source, but haven't found what causes / to appear
> after /chroot64/root

Does this cause any issues? Or is it just cosmetic?
 
Old 09-28-2008, 11:33 AM
"Roman Kyrylych"
 
Default devtools: double slashes in mkarchroot

2008/9/23 Aaron Griffin <aaronmgriffin@gmail.com>:
> On Sun, Sep 21, 2008 at 7:16 AM, Roman Kyrylych
> <roman.kyrylych@gmail.com> wrote:
>> Hi all!
>>
>> Got to chrooting today, to get my packaging process correct.
>> Here's what I've got:
>>
>> [root@vostro ~]# echo $CHROOT_SHELL
>> /chroot64
>> [root@vostro ~]# mkarchroot $CHROOT_SHELL/root base base-devel sudo
>> mounting sysfs : /sys
>> mounting procfs : /proc
>> binding device nodes : /dev
>> binding pacman cache : /var/cache/pacman
>> installing packages:
>> base
>> base-devel
>> sudo
>> Root : /chroot64/root/
>> Conf File : /etc/pacman.conf
>> DB Path : /chroot64/root//var/lib/pacman/
>> Cache Dirs: /var/cache/pacman/pkg/
>> Lock File : /chroot64/root//var/lib/pacman/db.lck
>> Log File : /chroot64/root//var/log/pacman.log
>> Targets : base base-devel sudo
>>
>> Notice the //
>> I've looked into the source, but haven't found what causes / to appear
>> after /chroot64/root
>
> Does this cause any issues? Or is it just cosmetic?
>

It doesn't cause issues, I've successfully built a package
that required many (make)depends in that chroot,
so double slashes seem to had no effect on chrooted pacman's paths.
So it just cosmetics, but it's weird that I couldn't found what causes it.

--
Roman Kyrylych (*оман Кирилич)
 

Thread Tools




All times are GMT. The time now is 04:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org